Skip to content

kernel 6.6.x compilation crash when CONFIG_BACKLIGHT_CLASS_DEVICE is not y #6198

@jlsalvador

Description

@jlsalvador

Describe the bug

When CONFIG_BACKLIGHT_CLASS_DEVICE is not y; backlight_set_display_name will not be defined (

#if IS_ENABLED(CONFIG_BACKLIGHT_CLASS_DEVICE)
struct backlight_device *devm_of_find_backlight(struct device *dev);
int backlight_set_display_name(struct backlight_device *bd, const char *name);
), so compiling drivers/gpu/drm/bridge/panel.o will crash with an backlight_set_display_name undefined

This issue was added by commit 573f8fd

Tested on the 6.6.x branch.

Steps to reproduce the behaviour

  • Generate a kernel config with CONFIG_BACKLIGHT_CLASS_DEVICE not set.
  • Generate a kernel config with CONFIG_BACKLIGHT_CLASS_DEVICE=m
  • Try to compile the kernel.

Device (s)

Raspberry Pi 4 Mod. B, Raspberry Pi 5, Other

System

Cross compiling kernel by Buildroot.

Logs

https://gist.github.com/jlsalvador/37316ff616a0428adbac7cc2cecdddab

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions