Patch "platform/x86: dell: fix DELL_WMI_PRIVACY dependencies & build error" has been added to the 5.14-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    platform/x86: dell: fix DELL_WMI_PRIVACY dependencies & build error

to the 5.14-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     platform-x86-dell-fix-dell_wmi_privacy-dependencies-.patch
and it can be found in the queue-5.14 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 0d916b317205b9254de5279cbff1b89d0dc19f13
Author: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
Date:   Fri Sep 17 21:48:29 2021 -0700

    platform/x86: dell: fix DELL_WMI_PRIVACY dependencies & build error
    
    [ Upstream commit 5b72dafaca73b33416c82457ae615e6f2022e901 ]
    
    When DELL_WMI=y, DELL_WMI_PRIVACY=y, and LEDS_TRIGGER_AUDIO=m, there
    is a linker error since the LEDS trigger code is built as a loadable
    module. This happens because DELL_WMI_PRIVACY is a bool that depends
    on a tristate (LEDS_TRIGGER_AUDIO=m), which can be dangerous.
    
    ld: drivers/platform/x86/dell/dell-wmi-privacy.o: in function `dell_privacy_wmi_probe':
    dell-wmi-privacy.c:(.text+0x3df): undefined reference to `ledtrig_audio_get'
    
    Fixes: 8af9fa37b8a3 ("platform/x86: dell-privacy: Add support for Dell hardware privacy")
    Signed-off-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
    Cc: Perry Yuan <Perry.Yuan@xxxxxxxx>
    Cc: Dell.Client.Kernel@xxxxxxxx
    Cc: platform-driver-x86@xxxxxxxxxxxxxxx
    Cc: Hans de Goede <hdegoede@xxxxxxxxxx>
    Cc: Mark Gross <mgross@xxxxxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20210918044829.19222-1-rdunlap@xxxxxxxxxxxxx
    Reviewed-by: Hans de Goede <hdegoede@xxxxxxxxxx>
    Signed-off-by: Hans de Goede <hdegoede@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/platform/x86/dell/Kconfig b/drivers/platform/x86/dell/Kconfig
index 9e7314d90bea..1e3da9700005 100644
--- a/drivers/platform/x86/dell/Kconfig
+++ b/drivers/platform/x86/dell/Kconfig
@@ -166,8 +166,7 @@ config DELL_WMI
 
 config DELL_WMI_PRIVACY
 	bool "Dell WMI Hardware Privacy Support"
-	depends on DELL_WMI
-	depends on LEDS_TRIGGER_AUDIO
+	depends on LEDS_TRIGGER_AUDIO = y || DELL_WMI = LEDS_TRIGGER_AUDIO
 	help
 	  This option adds integration with the "Dell Hardware Privacy"
 	  feature of Dell laptops to the dell-wmi driver.



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux