drm/nouveau: Fix build error in nouveau_acpi.c
Subsystems (3)
PATCH 1/1 drm/nouveau: Fix build error in nouveau_acpi.c
From: Stratos Psomadakis <[email protected]>
Fix compilation failure when CONFIG_ACPI=y, but CONFIG_ACPI_VIDEO is not selected by Kconfig (ie CONFIG_ACPI_VIDEO=m|n)
When CONFIG_ACPI_VIDEO != y, nouveau_acpi_edid will fail to build, due to the call to the 'acpi_video_get_edid' function.
Signed-off-by Stratos Psomadakis <[email protected]>
--- drivers/gpu/drm/nouveau/nouveau_drv.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
drivers/gpu/drm/nouveau/nouveau_drv.h +4 -0
@@ -973,8 +973,12 @@ void nouveau_register_dsm_handler(void);void nouveau_unregister_dsm_handler (void );int nouveau_acpi_get_bios_chunk (uint8_t *bios,int offset,int len);bool nouveau_acpi_rom_supported (struct pci_dev *pdev); +#if defined(CONFIG_ACPI_VIDEO )int nouveau_acpi_edid (struct drm_device *,struct drm_connector *);#else +static inline int nouveau_acpi_edid (struct drm_device *dev,struct drm_connector *connector) {return -EINVAL ; } +#endif +#else static inline void nouveau_register_dsm_handler (void ) {}static inline void nouveau_unregister_dsm_handler (void ) {}static inline bool nouveau_acpi_rom_supported (struct pci_dev *pdev) {return false; }
Signature · 1 line
1.7.5.4