]> git.baikalelectronics.ru Git - kernel.git/commit
sysfs: remove redundant __compat_only_sysfs_link_entry_to_kobj fn
authorLinus Torvalds <torvalds@linux-foundation.org>
Sun, 5 Apr 2020 18:34:35 +0000 (11:34 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 5 Apr 2020 18:34:35 +0000 (11:34 -0700)
commit3ed8a8e30190965c8caabb11042d76a2666916b7
treeb9e85abbc90ddb10bfec2acfeaaa4350c4129649
parentc44c078e6c625cbf89835635847f61af0740b621
sysfs: remove redundant __compat_only_sysfs_link_entry_to_kobj fn

Commit c1aa51ee8b8a ("sysfs: Wrap __compat_only_sysfs_link_entry_to_kobj
function to change the symlink name") made this function a wrapper
around a new non-underscored function, which is a bit odd.  The normal
naming convention is the other way around: the underscored function is
the wrappee, and the non-underscored function is the wrapper.

There's only one single user (well, two call-sites in that user) of the
more limited double underscore version of this function, so just remove
the oddly named wrapper entirely and just add the extra NULL argument to
the user.

I considered just doing that in the merge, but that tends to make
history really hard to read.

Link: https://lore.kernel.org/lkml/CAHk-=wgkkmNV5tMzQDmPAQuNJBuMcry--Jb+h8H1o4RA3kF7QQ@mail.gmail.com/
Cc: Sourabh Jain <sourabhjain@linux.ibm.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/tpm/tpm-chip.c
fs/sysfs/group.c
include/linux/sysfs.h