lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202203261702.CNhXkyrF-lkp@intel.com>
Date:   Sat, 26 Mar 2022 17:52:32 +0800
From:   kernel test robot <lkp@...el.com>
To:     Bart Van Assche <bvanassche@....org>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org
Subject: [bvanassche:ufs-for-next 30/30]
 drivers/scsi/ufs-core/ufshcd-priv.h:32:20: error: redefinition of
 'ufs_hwmon_probe'

tree:   https://github.com/bvanassche/linux ufs-for-next
head:   0887a8d6392738ee048acd84471bf8c5c860fdab
commit: 0887a8d6392738ee048acd84471bf8c5c860fdab [30/30] scsi: ufs: Split the drivers/scsi/ufs directory
config: x86_64-randconfig-a014 (https://download.01.org/0day-ci/archive/20220326/202203261702.CNhXkyrF-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 0f6d9501cf49ce02937099350d08f20c4af86f3d)
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/bvanassche/linux/commit/0887a8d6392738ee048acd84471bf8c5c860fdab
        git remote add bvanassche https://github.com/bvanassche/linux
        git fetch --no-tags bvanassche ufs-for-next
        git checkout 0887a8d6392738ee048acd84471bf8c5c860fdab
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

   In file included from drivers/scsi/ufs-core/ufshcd.c:36:
   In file included from drivers/scsi/ufs-core/ufshcd-crypto.h:12:
>> drivers/scsi/ufs-core/ufshcd-priv.h:32:20: error: redefinition of 'ufs_hwmon_probe'
   static inline void ufs_hwmon_probe(struct ufs_hba *hba, u8 mask) {}
                      ^
   include/scsi/ufshcd.h:1081:20: note: previous definition is here
   static inline void ufs_hwmon_probe(struct ufs_hba *hba, u8 mask) {}
                      ^
   In file included from drivers/scsi/ufs-core/ufshcd.c:36:
   In file included from drivers/scsi/ufs-core/ufshcd-crypto.h:12:
>> drivers/scsi/ufs-core/ufshcd-priv.h:33:20: error: redefinition of 'ufs_hwmon_remove'
   static inline void ufs_hwmon_remove(struct ufs_hba *hba) {}
                      ^
   include/scsi/ufshcd.h:1082:20: note: previous definition is here
   static inline void ufs_hwmon_remove(struct ufs_hba *hba) {}
                      ^
   In file included from drivers/scsi/ufs-core/ufshcd.c:36:
   In file included from drivers/scsi/ufs-core/ufshcd-crypto.h:12:
>> drivers/scsi/ufs-core/ufshcd-priv.h:34:20: error: redefinition of 'ufs_hwmon_notify_event'
   static inline void ufs_hwmon_notify_event(struct ufs_hba *hba, u8 ee_mask) {}
                      ^
   include/scsi/ufshcd.h:1083:20: note: previous definition is here
   static inline void ufs_hwmon_notify_event(struct ufs_hba *hba, u8 ee_mask) {}
                      ^
   drivers/scsi/ufs-core/ufshcd.c:9494:44: warning: shift count >= width of type [-Wshift-count-overflow]
                   if (!dma_set_mask_and_coherent(hba->dev, DMA_BIT_MASK(64)))
                                                            ^~~~~~~~~~~~~~~~
   include/linux/dma-mapping.h:76:54: note: expanded from macro 'DMA_BIT_MASK'
   #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
                                                        ^ ~~~
   1 warning and 3 errors generated.
--
   In file included from drivers/scsi/ufs-core/ufs-sysfs.c:10:
>> drivers/scsi/ufs-core/ufshcd-priv.h:32:20: error: redefinition of 'ufs_hwmon_probe'
   static inline void ufs_hwmon_probe(struct ufs_hba *hba, u8 mask) {}
                      ^
   include/scsi/ufshcd.h:1081:20: note: previous definition is here
   static inline void ufs_hwmon_probe(struct ufs_hba *hba, u8 mask) {}
                      ^
   In file included from drivers/scsi/ufs-core/ufs-sysfs.c:10:
>> drivers/scsi/ufs-core/ufshcd-priv.h:33:20: error: redefinition of 'ufs_hwmon_remove'
   static inline void ufs_hwmon_remove(struct ufs_hba *hba) {}
                      ^
   include/scsi/ufshcd.h:1082:20: note: previous definition is here
   static inline void ufs_hwmon_remove(struct ufs_hba *hba) {}
                      ^
   In file included from drivers/scsi/ufs-core/ufs-sysfs.c:10:
>> drivers/scsi/ufs-core/ufshcd-priv.h:34:20: error: redefinition of 'ufs_hwmon_notify_event'
   static inline void ufs_hwmon_notify_event(struct ufs_hba *hba, u8 ee_mask) {}
                      ^
   include/scsi/ufshcd.h:1083:20: note: previous definition is here
   static inline void ufs_hwmon_notify_event(struct ufs_hba *hba, u8 ee_mask) {}
                      ^
   3 errors generated.


vim +/ufs_hwmon_probe +32 drivers/scsi/ufs-core/ufshcd-priv.h

25d1c9ae8f23a80 drivers/scsi/ufs/ufshcd-priv.h Bart Van Assche 2022-03-21  26  
25d1c9ae8f23a80 drivers/scsi/ufs/ufshcd-priv.h Bart Van Assche 2022-03-21  27  #ifdef CONFIG_SCSI_UFS_HWMON
25d1c9ae8f23a80 drivers/scsi/ufs/ufshcd-priv.h Bart Van Assche 2022-03-21  28  void ufs_hwmon_probe(struct ufs_hba *hba, u8 mask);
25d1c9ae8f23a80 drivers/scsi/ufs/ufshcd-priv.h Bart Van Assche 2022-03-21  29  void ufs_hwmon_remove(struct ufs_hba *hba);
25d1c9ae8f23a80 drivers/scsi/ufs/ufshcd-priv.h Bart Van Assche 2022-03-21  30  void ufs_hwmon_notify_event(struct ufs_hba *hba, u8 ee_mask);
25d1c9ae8f23a80 drivers/scsi/ufs/ufshcd-priv.h Bart Van Assche 2022-03-21  31  #else
25d1c9ae8f23a80 drivers/scsi/ufs/ufshcd-priv.h Bart Van Assche 2022-03-21 @32  static inline void ufs_hwmon_probe(struct ufs_hba *hba, u8 mask) {}
25d1c9ae8f23a80 drivers/scsi/ufs/ufshcd-priv.h Bart Van Assche 2022-03-21 @33  static inline void ufs_hwmon_remove(struct ufs_hba *hba) {}
25d1c9ae8f23a80 drivers/scsi/ufs/ufshcd-priv.h Bart Van Assche 2022-03-21 @34  static inline void ufs_hwmon_notify_event(struct ufs_hba *hba, u8 ee_mask) {}
25d1c9ae8f23a80 drivers/scsi/ufs/ufshcd-priv.h Bart Van Assche 2022-03-21  35  #endif
25d1c9ae8f23a80 drivers/scsi/ufs/ufshcd-priv.h Bart Van Assche 2022-03-21  36  

:::::: The code at line 32 was first introduced by commit
:::::: 25d1c9ae8f23a80278721a9b66383128a51af746 scsi: ufs: Split the ufshcd.h header file

:::::: TO: Bart Van Assche <bvanassche@....org>
:::::: CC: Bart Van Assche <bvanassche@....org>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ