Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sysfs: Mark sysfs_attr_ns static

Nothing outside of fs/sysfs/file.c references this function, so mark it static.

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Josh Triplett and committed by
Greg Kroah-Hartman
1f20dfda 93058424

+2 -2
+2 -2
fs/sysfs/file.c
··· 485 485 .poll = sysfs_poll, 486 486 }; 487 487 488 - int sysfs_attr_ns(struct kobject *kobj, const struct attribute *attr, 489 - const void **pns) 488 + static int sysfs_attr_ns(struct kobject *kobj, const struct attribute *attr, 489 + const void **pns) 490 490 { 491 491 struct sysfs_dirent *dir_sd = kobj->sd; 492 492 const struct sysfs_ops *ops;