Re: [PATCH v3 2/2] scsi: ufs: Add temperature notification exception handling

From: kernel test robot
Date: Sun Sep 12 2021 - 12:34:41 EST


Hi Avri,

I love your patch! Yet something to improve:

[auto build test ERROR on mkp-scsi/for-next]
[also build test ERROR on scsi/for-next next-20210910]
[cannot apply to v5.14]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url: https://github.com/0day-ci/linux/commits/Avri-Altman/Add-temperature-notification-support/20210912-212110
base: https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next
config: x86_64-randconfig-a001-20210912 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 261cbe98c38f8c1ee1a482fe76511110e790f58a)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/2aa54f753f44e119f4629ae015fedb3e12cebac6
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Avri-Altman/Add-temperature-notification-support/20210912-212110
git checkout 2aa54f753f44e119f4629ae015fedb3e12cebac6
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/scsi/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All error/warnings (new ones prefixed by >>):

In file included from drivers/scsi/ufs/ufshcd.c:22:
>> drivers/scsi/ufs/ufshcd.h:1070:6: warning: no previous prototype for function 'ufs_hwmon_notify_event' [-Wmissing-prototypes]
void ufs_hwmon_notify_event(struct ufs_hba *hba, u8 ee_mask) {}
^
drivers/scsi/ufs/ufshcd.h:1070:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void ufs_hwmon_notify_event(struct ufs_hba *hba, u8 ee_mask) {}
^
static
1 warning generated.
--
>> ld.lld: error: duplicate symbol: ufs_hwmon_notify_event
>>> defined at ufshcd.h:1070 (drivers/scsi/ufs/ufshcd.h:1070)
>>> drivers/scsi/ufs/ufshcd.o:(ufs_hwmon_notify_event)
>>> defined at ufshcd.h:1070 (drivers/scsi/ufs/ufshcd.h:1070)
>>> drivers/scsi/ufs/ufs-sysfs.o:(.text+0x0)
--
>> ld.lld: error: duplicate symbol: ufs_hwmon_notify_event
>>> defined at ufshcd.h:1070 (drivers/scsi/ufs/ufshcd.h:1070)
>>> drivers/scsi/ufs/ufshcd.o:(ufs_hwmon_notify_event)
>>> defined at ufshcd.h:1070 (drivers/scsi/ufs/ufshcd.h:1070)
>>> drivers/scsi/ufs/ufs-debugfs.o:(.text+0x0)

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip