Skip to content

Commit 0e796e3

Browse files
bjdooks-ctstellarhopper
authored andcommitted
nvdimm: make security_show static
The security_show function is not used outside of drivers/nvdimm/dimm_devs.c and the attribute it is for is also already static. Silence the sparse warning for this not being declared by making it static. Fixes: drivers/nvdimm/dimm_devs.c:352:9: warning: symbol 'security_show' was not declared. Should it be static? Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> Link: https://lore.kernel.org/r/20230616160925.17687-1-ben.dooks@codethink.co.uk Reviewed-by: Dave Jiang <dave.jiang@intel.com> Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
1 parent 191a9f3 commit 0e796e3

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
@@ -350,7 +350,7 @@ static ssize_t available_slots_show(struct device *dev,
350350
static DEVICE_ATTR_RO(available_slots);
351351

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

0 commit comments

Comments
 (0)