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
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Thu, 24 Mar 2022 16:06:53 +0800
From:   Zheng Bin <zhengbin13@...wei.com>
To:     <dan.j.williams@...el.com>, <vishal.l.verma@...el.com>,
        <dave.jiang@...el.com>, <ira.weiny@...el.com>,
        <nvdimm@...ts.linux.dev>, <linux-kernel@...r.kernel.org>
CC:     <tangyizhou@...wei.com>, <zhengbin13@...wei.com>
Subject: [PATCH -next] drivers/nvdimm: Fix build error without PERF_EVENTS

If PERF_EVENTS is not set, bulding fails:

drivers/nvdimm/nd_perf.o: In function `nvdimm_pmu_cpu_offline':
nd_perf.c:(.text+0x12c): undefined reference to `perf_pmu_migrate_context'
drivers/nvdimm/nd_perf.o: In function `register_nvdimm_pmu':
nd_perf.c:(.text+0x3c4): undefined reference to `perf_pmu_register'
drivers/nvdimm/nd_perf.o: In function `unregister_nvdimm_pmu':
nd_perf.c:(.text+0x4c0): undefined reference to `perf_pmu_unregister'

Make LIBNVDIMM depends on PERF_EVENTS to fix this.

Fixes: 0fab1ba6ad6b ("drivers/nvdimm: Add perf interface to expose nvdimm performance stats")
Reported-by: Hulk Robot <hulkci@...wei.com>
Signed-off-by: Zheng Bin <zhengbin13@...wei.com>
---
 drivers/nvdimm/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/nvdimm/Kconfig b/drivers/nvdimm/Kconfig
index 5a29046e3319..e93bd0b787e9 100644
--- a/drivers/nvdimm/Kconfig
+++ b/drivers/nvdimm/Kconfig
@@ -4,6 +4,7 @@ menuconfig LIBNVDIMM
 	depends on PHYS_ADDR_T_64BIT
 	depends on HAS_IOMEM
 	depends on BLK_DEV
+	depends on PERF_EVENTS
 	select MEMREGION
 	help
 	  Generic support for non-volatile memory devices including
--
2.31.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ