1
0
Fork 0
alistair23-linux/drivers/staging/exfat
Brendan Higgins 6859c3c6bb staging: exfat: fix multiple definition error of `rename_file'
commit 1af73a25e6 upstream.

`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-17 19:55:33 +01:00
..
Kconfig staging: exfat: Fix a typo in Kconfig 2019-10-01 08:16:04 +02:00
Makefile staging: exfat - fix SPDX tags.. 2019-10-01 08:15:57 +02:00
TODO
exfat.h staging: exfat: fix multiple definition error of `rename_file' 2019-12-17 19:55:33 +01:00
exfat_blkdev.c staging: exfat - fix SPDX tags.. 2019-10-01 08:15:57 +02:00
exfat_cache.c staging: exfat - fix SPDX tags.. 2019-10-01 08:15:57 +02:00
exfat_core.c staging: exfat: fix multiple definition error of `rename_file' 2019-12-17 19:55:33 +01:00
exfat_nls.c staging: exfat - fix SPDX tags.. 2019-10-01 08:15:57 +02:00
exfat_super.c staging: exfat: fix multiple definition error of `rename_file' 2019-12-17 19:55:33 +01:00
exfat_upcase.c staging: exfat - fix SPDX tags.. 2019-10-01 08:15:57 +02:00