linux/drivers/staging/exfat
Brendan Higgins 1af73a25e6 staging: exfat: fix multiple definition error of `rename_file'
`rename_file' was exported but not properly namespaced causing a
multiple definition error because `rename_file' is already defined in
fs/hostfs/hostfs_user.c:

ld: drivers/staging/exfat/exfat_core.o: in function `rename_file':
drivers/staging/exfat/exfat_core.c:2327: multiple definition of
`rename_file'; fs/hostfs/hostfs_user.o:fs/hostfs/hostfs_user.c:350:
first defined here
make: *** [Makefile:1077: vmlinux] Error 1

This error can be reproduced on ARCH=um by selecting:

CONFIG_EXFAT_FS=y
CONFIG_HOSTFS=y

Add a namespace prefix exfat_* to fix this error.

Reported-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Brendan Higgins <brendanhiggins@google.com>
Cc: stable <stable@vger.kernel.org>
Cc: Valdis Kletnieks <valdis.kletnieks@vt.edu>
Tested-by: David Gow <davidgow@google.com>
Reviewed-by: David Gow <davidgow@google.com>
Link: https://lore.kernel.org/r/20191204234522.42855-1-brendanhiggins@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-12-10 10:56:55 +01:00
..
exfat_blkdev.c staging: exfat: Clean up the namespace pollution part 2 2019-11-13 00:17:34 +01:00
exfat_cache.c staging: exfat: Clean up the namespace pollution part 8 2019-11-13 00:17:37 +01:00
exfat_core.c staging: exfat: fix multiple definition error of `rename_file' 2019-12-10 10:56:55 +01:00
exfat_nls.c staging: exfat: Remove FAT/VFAT mount support, part 4 2019-11-13 00:17:33 +01:00
exfat_super.c staging: exfat: fix multiple definition error of `rename_file' 2019-12-10 10:56:55 +01:00
exfat_upcase.c staging: exfat - fix SPDX tags.. 2019-10-01 08:15:57 +02:00
exfat.h staging: exfat: fix multiple definition error of `rename_file' 2019-12-10 10:56:55 +01:00
Kconfig staging: exfat: Remove FAT/VFAT mount support, part 1 2019-11-13 00:17:32 +01:00
Makefile staging: exfat - fix SPDX tags.. 2019-10-01 08:15:57 +02:00
TODO staging: exfat: Update the TODO file 2019-11-13 00:19:34 +01:00