]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: avoid unused to_mp() function warning
authorAustin Kim <austindh.kim@gmail.com>
Tue, 24 Sep 2019 15:00:50 +0000 (08:00 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 24 Sep 2019 16:40:19 +0000 (09:40 -0700)
commit389a452037665f3b0f4a5027af2a28818c4e5964
treee8aaee8fab45be4a5afb64b216dc5eaf8c421c26
parent255877cb20ba1f74cf5e5de121f10bb981335bd5
xfs: avoid unused to_mp() function warning

to_mp() was first introduced with the following commit:
'commit bc7e2b05ce2d9 ("xfs: debug mode forced buffered write failure")'

But the user of to_mp() was removed by below commit:
'commit cf011b92dbb8d ("xfs: convert drop_writes to use the errortag
mechanism")'

So kernel build with clang throws below warning message:

   fs/xfs/xfs_sysfs.c:72:1: warning: unused function 'to_mp' [-Wunused-function]
   to_mp(struct kobject *kobject)

Hence to_mp() might be removed safely to get rid of warning message.

Signed-off-by: Austin Kim <austindh.kim@gmail.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_sysfs.c