Hi Anand, [FYI, it's a private test report for your RFC patch.] [auto build test WARNING on linus/master] [also build test WARNING on v5.13-rc6 next-20210617] [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/Anand-Moon/Meson-8b-and-Meson-gxbb-USB-phy-code-re-structure/20210618-034534 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 39519f6a56e398544d270fcb548de99b54421d43 config: mips-randconfig-s032-20210617 (attached as .config) compiler: mips-linux-gcc (GCC) 9.3.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.3-341-g8af24329-dirty # https://github.com/0day-ci/linux/commit/e76fc9ed24b7659aab9a154de394a51a70de2bd8 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Anand-Moon/Meson-8b-and-Meson-gxbb-USB-phy-code-re-structure/20210618-034534 git checkout e76fc9ed24b7659aab9a154de394a51a70de2bd8 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=mips If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) command-line: note: in included file: builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQUIRE redefined builtin:0:0: sparse: this was the original definition builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_SEQ_CST redefined builtin:0:0: sparse: this was the original definition builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQ_REL redefined builtin:0:0: sparse: this was the original definition builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_RELEASE redefined builtin:0:0: sparse: this was the original definition >> drivers/phy/amlogic/phy-meson8b-usb2.c:203:25: sparse: sparse: mixing different enum types: >> drivers/phy/amlogic/phy-meson8b-usb2.c:203:25: sparse: unsigned int enum phy_mode >> drivers/phy/amlogic/phy-meson8b-usb2.c:203:25: sparse: unsigned int enum usb_dr_mode drivers/phy/amlogic/phy-meson8b-usb2.c:243:49: sparse: sparse: mixing different enum types: drivers/phy/amlogic/phy-meson8b-usb2.c:243:49: sparse: unsigned int enum usb_dr_mode drivers/phy/amlogic/phy-meson8b-usb2.c:243:49: sparse: unsigned int enum phy_mode vim +203 drivers/phy/amlogic/phy-meson8b-usb2.c 51c202a9ef028b Anand Moon 2021-06-17 175 ee40e59b658c4a Anand Moon 2021-06-17 176 static int phy_meson8b_usb2_setmode(struct phy *phy, enum phy_mode mode, ee40e59b658c4a Anand Moon 2021-06-17 177 int submode) 75c5cd9a01e14e Anand Moon 2021-06-17 178 { 75c5cd9a01e14e Anand Moon 2021-06-17 179 struct phy_meson8b_usb2_priv *priv = phy_get_drvdata(phy); 75c5cd9a01e14e Anand Moon 2021-06-17 180 u32 reg; 75c5cd9a01e14e Anand Moon 2021-06-17 181 ee40e59b658c4a Anand Moon 2021-06-17 182 switch (mode) { ee40e59b658c4a Anand Moon 2021-06-17 183 case PHY_MODE_USB_HOST: ee40e59b658c4a Anand Moon 2021-06-17 184 if (priv->match->host_enable_aca) { ee40e59b658c4a Anand Moon 2021-06-17 185 regmap_update_bits(priv->regmap, REG_ADP_BC, ee40e59b658c4a Anand Moon 2021-06-17 186 REG_ADP_BC_ACA_ENABLE, ee40e59b658c4a Anand Moon 2021-06-17 187 REG_ADP_BC_ACA_ENABLE); ee40e59b658c4a Anand Moon 2021-06-17 188 ee40e59b658c4a Anand Moon 2021-06-17 189 udelay(ACA_ENABLE_COMPLETE_TIME); ee40e59b658c4a Anand Moon 2021-06-17 190 ee40e59b658c4a Anand Moon 2021-06-17 191 regmap_read(priv->regmap, REG_ADP_BC, ®); ee40e59b658c4a Anand Moon 2021-06-17 192 if (reg & REG_ADP_BC_ACA_PIN_FLOAT) { ee40e59b658c4a Anand Moon 2021-06-17 193 dev_warn(&phy->dev, "USB ID detect failed!\n"); ee40e59b658c4a Anand Moon 2021-06-17 194 return -EINVAL; ee40e59b658c4a Anand Moon 2021-06-17 195 } ee40e59b658c4a Anand Moon 2021-06-17 196 } ee40e59b658c4a Anand Moon 2021-06-17 197 break; ee40e59b658c4a Anand Moon 2021-06-17 198 default: ee40e59b658c4a Anand Moon 2021-06-17 199 dev_warn(&phy->dev, "USB ID detect failed to setnode! %d\n", mode); ee40e59b658c4a Anand Moon 2021-06-17 200 return -EINVAL; ee40e59b658c4a Anand Moon 2021-06-17 201 } ee40e59b658c4a Anand Moon 2021-06-17 202 ee40e59b658c4a Anand Moon 2021-06-17 @203 priv->dr_mode = mode; ee40e59b658c4a Anand Moon 2021-06-17 204 ee40e59b658c4a Anand Moon 2021-06-17 205 return 0; ee40e59b658c4a Anand Moon 2021-06-17 206 } ee40e59b658c4a Anand Moon 2021-06-17 207 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org