Skip to content

Commit 7f80ab3

Browse files
arndbdjbw
authored andcommitted
libnvdimm: mark 'security_show' static again
The security_show() function was made global and __weak at some point to allow overriding it. The override was removed later, but it remains global, which causes a warning about the missing declaration: drivers/nvdimm/dimm_devs.c:352:9: error: no previous prototype for 'security_show' This is also not an appropriate name for a global symbol in the kernel, so just make it static again. Fixes: 15a8348 ("libnvdimm: Introduce CONFIG_NVDIMM_SECURITY_TEST flag") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Dave Jiang <dave.jiang@intel.com> Link: https://lore.kernel.org/r/20230516201415.556858-3-arnd@kernel.org Signed-off-by: Dan Williams <dan.j.williams@intel.com>
1 parent 9e46e54 commit 7f80ab3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/nvdimm/dimm_devs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ static ssize_t available_slots_show(struct device *dev,
349349
}
350350
static DEVICE_ATTR_RO(available_slots);
351351

352-
ssize_t security_show(struct device *dev,
352+
static ssize_t security_show(struct device *dev,
353353
struct device_attribute *attr, char *buf)
354354
{
355355
struct nvdimm *nvdimm = to_nvdimm(dev);

0 commit comments

Comments
 (0)