lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-Id: <20220226222457.13668-1-rdunlap@infradead.org> Date: Sat, 26 Feb 2022 14:24:57 -0800 From: Randy Dunlap <rdunlap@...radead.org> To: linux-kernel@...r.kernel.org Cc: Randy Dunlap <rdunlap@...radead.org>, Wei WANG <wei_wang@...lsil.com.cn>, Kai-Heng Feng <kai.heng.feng@...onical.com>, Greg Kroah-Hartman <gregkh@...uxfoundation.org>, Arnd Bergmann <arnd@...db.de> Subject: [PATCH -next] misc: rtsx: fix build for CONFIG_PM not set When CONFG_WERROR=y and CONFIG_PM is not set, there are fatal build errors, so surround these functions in an #ifdef CONFIG_PM block. ../drivers/misc/cardreader/rtsx_pcr.c:1057:13: error: ‘rtsx_enable_aspm’ defined but not used [-Werror=unused-function] static void rtsx_enable_aspm(struct rtsx_pcr *pcr) miscread001.out:../drivers/misc/cardreader/rtsx_pcr.c:1065:13: error: ‘rtsx_comm_pm_power_saving’ defined but not used [-Werror=unused-function] miscread001.out: static void rtsx_comm_pm_power_saving(struct rtsx_pcr *pcr) ../drivers/misc/cardreader/rtsx_pcr.c:1084:13: error: ‘rtsx_pm_power_saving’ defined but not used [-Werror=unused-function] static void rtsx_pm_power_saving(struct rtsx_pcr *pcr) Fixes: 597568e8df04 ("misc: rtsx: Rework runtime power management flow") Signed-off-by: Randy Dunlap <rdunlap@...radead.org> Cc: Wei WANG <wei_wang@...lsil.com.cn> Cc: Kai-Heng Feng <kai.heng.feng@...onical.com> Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org> Cc: Arnd Bergmann <arnd@...db.de> --- drivers/misc/cardreader/rtsx_pcr.c | 2 ++ 1 file changed, 2 insertions(+) --- linux-next-20220225.orig/drivers/misc/cardreader/rtsx_pcr.c +++ linux-next-20220225/drivers/misc/cardreader/rtsx_pcr.c @@ -1054,6 +1054,7 @@ static int rtsx_pci_acquire_irq(struct r return 0; } +#ifdef CONFIG_PM static void rtsx_enable_aspm(struct rtsx_pcr *pcr) { if (pcr->ops->set_aspm) @@ -1085,6 +1086,7 @@ static void rtsx_pm_power_saving(struct { rtsx_comm_pm_power_saving(pcr); } +#endif static void rtsx_base_force_power_down(struct rtsx_pcr *pcr) {
Powered by blists - more mailing lists