Re: [PATCH V6] scsi: ufs: Add configfs support for UFS provisioning

From: kbuild test robot
Date: Mon Jul 16 2018 - 10:30:08 EST


Hi Sayali,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on mkp-scsi/for-next]
[also build test ERROR on v4.18-rc5 next-20180716]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/Sayali-Lokhande/scsi-ufs-Add-configfs-support-for-UFS-provisioning/20180716-212258
base: https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next
config: i386-randconfig-x005-201828 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
reproduce:
# save the attached .config to linux build tree
make ARCH=i386

All errors (new ones prefixed by >>):

drivers/scsi/ufs/ufs-sysfs.o: In function `ufshcd_configfs_init':
>> drivers/scsi/ufs/ufshcd.h:900: multiple definition of `ufshcd_configfs_init'
drivers/scsi/ufs/ufshcd.o:drivers/scsi/ufs/ufshcd.h:900: first defined here
drivers/scsi/ufs/ufs-sysfs.o: In function `ufshcd_configfs_exit':
>> drivers/scsi/ufs/ufshcd.h:905: multiple definition of `ufshcd_configfs_exit'
drivers/scsi/ufs/ufshcd.o:drivers/scsi/ufs/ufshcd.h:905: first defined here

vim +900 drivers/scsi/ufs/ufshcd.h

893
894 /* Expose UFS configfs API's */
895 #ifdef CONFIG_UFS_PROVISION
896 int ufshcd_configfs_init(struct ufs_hba *hba, const char *name);
897 void ufshcd_configfs_exit(void);
898 #else
899 int ufshcd_configfs_init(struct ufs_hba *hba, const char *name)
> 900 {
901 return 0;
902 }
903
904 void ufshcd_configfs_exit(void)
> 905 {
906 }
907 #endif
908

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip