Skip to content

Commit

Permalink
nvdimm: make security_show static
Browse files Browse the repository at this point in the history
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Dave Jiang <[email protected]>
Signed-off-by: Vishal Verma <[email protected]>
  • Loading branch information
bjdooks-ct authored and stellarhopper committed Jun 23, 2023
1 parent 191a9f3 commit 0e796e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/nvdimm/dimm_devs.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ static ssize_t available_slots_show(struct device *dev,
static DEVICE_ATTR_RO(available_slots);

static ssize_t security_show(struct device *dev,
struct device_attribute *attr, char *buf)
struct device_attribute *attr, char *buf)
{
struct nvdimm *nvdimm = to_nvdimm(dev);

Expand Down

0 comments on commit 0e796e3

Please sign in to comment.