All of lore.kernel.org
 help / color / mirror / Atom feed
* arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
@ 2022-08-01 17:47 kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2022-08-01 17:47 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 6557 bytes --]

:::::: 
:::::: Manual check reason: "low confidence static check first_new_problem: arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow"
:::::: 

CC: kbuild-all(a)lists.01.org
BCC: lkp(a)intel.com
CC: linux-kernel(a)vger.kernel.org
TO: Dmitry Osipenko <digetx@gmail.com>
CC: Daniel Lezcano <daniel.lezcano@linaro.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   0fac198def2b41138850867b6aa92044c76ff802
commit: 8f8d8b0334cc4e7908b78e73936a7673bbef0411 thermal/drivers/tegra: Correct compile-testing of drivers
date:   12 months ago
:::::: branch date: 2 hours ago
:::::: commit date: 12 months ago
config: mips-randconfig-s043-20220801 (https://download.01.org/0day-ci/archive/20220802/202208020134.fBi5w6ss-lkp(a)intel.com/config)
compiler: mips-linux-gcc (GCC) 12.1.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.4-39-gce1a6720-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8f8d8b0334cc4e7908b78e73936a7673bbef0411
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 8f8d8b0334cc4e7908b78e73936a7673bbef0411
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=mips SHELL=/bin/bash drivers/thermal/tegra/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

sparse warnings: (new ones prefixed by >>)
   drivers/thermal/tegra/soctherm.c: note: in included file (through include/linux/bitops.h, include/linux/kernel.h, include/linux/list.h, ...):
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow

vim +445 arch/mips/include/asm/bitops.h

6590326505e3f7 include/asm-mips/bitops.h      Ralf Baechle       2005-07-12  431  
6590326505e3f7 include/asm-mips/bitops.h      Ralf Baechle       2005-07-12  432  /*
bc818247203a7b include/asm-mips/bitops.h      Atsushi Nemoto     2006-04-17  433   * ffs - find first bit set.
6590326505e3f7 include/asm-mips/bitops.h      Ralf Baechle       2005-07-12  434   * @word: The word to search
6590326505e3f7 include/asm-mips/bitops.h      Ralf Baechle       2005-07-12  435   *
bc818247203a7b include/asm-mips/bitops.h      Atsushi Nemoto     2006-04-17  436   * This is defined the same way as
bc818247203a7b include/asm-mips/bitops.h      Atsushi Nemoto     2006-04-17  437   * the libc and compiler builtin ffs routines, therefore
99b40ced9ef63c arch/mips/include/asm/bitops.h Geert Uytterhoeven 2021-01-08  438   * differs in spirit from the below ffz (man ffs).
6590326505e3f7 include/asm-mips/bitops.h      Ralf Baechle       2005-07-12  439   */
bc818247203a7b include/asm-mips/bitops.h      Atsushi Nemoto     2006-04-17  440  static inline int ffs(int word)
6590326505e3f7 include/asm-mips/bitops.h      Ralf Baechle       2005-07-12  441  {
bc818247203a7b include/asm-mips/bitops.h      Atsushi Nemoto     2006-04-17  442  	if (!word)
bc818247203a7b include/asm-mips/bitops.h      Atsushi Nemoto     2006-04-17  443  		return 0;
2caf190002770b include/asm-mips/bitops.h      Ralf Baechle       2006-01-30  444  
bc818247203a7b include/asm-mips/bitops.h      Atsushi Nemoto     2006-04-17 @445  	return fls(word & -word);
6590326505e3f7 include/asm-mips/bitops.h      Ralf Baechle       2005-07-12  446  }
6590326505e3f7 include/asm-mips/bitops.h      Ralf Baechle       2005-07-12  447  

:::::: The code at line 445 was first introduced by commit
:::::: bc818247203a7bfc40296a3f5b760de84fb8e0d1 [MIPS] Fix bitops for MIPS32/MIPS64 CPUs.

:::::: TO: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
:::::: CC: Ralf Baechle <ralf@linux-mips.org>

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

^ permalink raw reply	[flat|nested] 4+ messages in thread
* arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
@ 2022-08-03 22:03 kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2022-08-03 22:03 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 6562 bytes --]

:::::: 
:::::: Manual check reason: "low confidence static check first_new_problem: arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow"
:::::: 

CC: kbuild-all(a)lists.01.org
BCC: lkp(a)intel.com
CC: linux-kernel(a)vger.kernel.org
TO: Dmitry Osipenko <digetx@gmail.com>
CC: Daniel Lezcano <daniel.lezcano@linaro.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   ff89dd08c0f0a3fd330c9ef9d775e880f82c291e
commit: 8f8d8b0334cc4e7908b78e73936a7673bbef0411 thermal/drivers/tegra: Correct compile-testing of drivers
date:   12 months ago
:::::: branch date: 51 minutes ago
:::::: commit date: 12 months ago
config: mips-randconfig-s052-20220801 (https://download.01.org/0day-ci/archive/20220804/202208040526.IREZlE2g-lkp(a)intel.com/config)
compiler: mipsel-linux-gcc (GCC) 12.1.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.4-39-gce1a6720-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8f8d8b0334cc4e7908b78e73936a7673bbef0411
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 8f8d8b0334cc4e7908b78e73936a7673bbef0411
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=mips SHELL=/bin/bash drivers/thermal/tegra/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

sparse warnings: (new ones prefixed by >>)
   drivers/thermal/tegra/soctherm.c: note: in included file (through include/linux/bitops.h, include/linux/kernel.h, include/linux/list.h, ...):
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow

vim +445 arch/mips/include/asm/bitops.h

6590326505e3f7 include/asm-mips/bitops.h      Ralf Baechle       2005-07-12  431  
6590326505e3f7 include/asm-mips/bitops.h      Ralf Baechle       2005-07-12  432  /*
bc818247203a7b include/asm-mips/bitops.h      Atsushi Nemoto     2006-04-17  433   * ffs - find first bit set.
6590326505e3f7 include/asm-mips/bitops.h      Ralf Baechle       2005-07-12  434   * @word: The word to search
6590326505e3f7 include/asm-mips/bitops.h      Ralf Baechle       2005-07-12  435   *
bc818247203a7b include/asm-mips/bitops.h      Atsushi Nemoto     2006-04-17  436   * This is defined the same way as
bc818247203a7b include/asm-mips/bitops.h      Atsushi Nemoto     2006-04-17  437   * the libc and compiler builtin ffs routines, therefore
99b40ced9ef63c arch/mips/include/asm/bitops.h Geert Uytterhoeven 2021-01-08  438   * differs in spirit from the below ffz (man ffs).
6590326505e3f7 include/asm-mips/bitops.h      Ralf Baechle       2005-07-12  439   */
bc818247203a7b include/asm-mips/bitops.h      Atsushi Nemoto     2006-04-17  440  static inline int ffs(int word)
6590326505e3f7 include/asm-mips/bitops.h      Ralf Baechle       2005-07-12  441  {
bc818247203a7b include/asm-mips/bitops.h      Atsushi Nemoto     2006-04-17  442  	if (!word)
bc818247203a7b include/asm-mips/bitops.h      Atsushi Nemoto     2006-04-17  443  		return 0;
2caf190002770b include/asm-mips/bitops.h      Ralf Baechle       2006-01-30  444  
bc818247203a7b include/asm-mips/bitops.h      Atsushi Nemoto     2006-04-17 @445  	return fls(word & -word);
6590326505e3f7 include/asm-mips/bitops.h      Ralf Baechle       2005-07-12  446  }
6590326505e3f7 include/asm-mips/bitops.h      Ralf Baechle       2005-07-12  447  

:::::: The code at line 445 was first introduced by commit
:::::: bc818247203a7bfc40296a3f5b760de84fb8e0d1 [MIPS] Fix bitops for MIPS32/MIPS64 CPUs.

:::::: TO: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
:::::: CC: Ralf Baechle <ralf@linux-mips.org>

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

^ permalink raw reply	[flat|nested] 4+ messages in thread
* arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
@ 2022-07-09 20:17 kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2022-07-09 20:17 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 6597 bytes --]

:::::: 
:::::: Manual check reason: "low confidence static check first_new_problem: arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow"
:::::: 

CC: kbuild-all(a)lists.01.org
BCC: lkp(a)intel.com
CC: linux-kernel(a)vger.kernel.org
TO: Dmitry Osipenko <digetx@gmail.com>
CC: Daniel Lezcano <daniel.lezcano@linaro.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   b1c428b6c3684ee8ddf4137d68b3e8d51d2a700f
commit: 8f8d8b0334cc4e7908b78e73936a7673bbef0411 thermal/drivers/tegra: Correct compile-testing of drivers
date:   11 months ago
:::::: branch date: 2 hours ago
:::::: commit date: 11 months ago
config: mips-randconfig-s032-20220710 (https://download.01.org/0day-ci/archive/20220710/202207100423.zYyrwHvy-lkp(a)intel.com/config)
compiler: mips-linux-gcc (GCC) 11.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.4-39-gce1a6720-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8f8d8b0334cc4e7908b78e73936a7673bbef0411
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 8f8d8b0334cc4e7908b78e73936a7673bbef0411
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=mips SHELL=/bin/bash drivers/remoteproc/ drivers/soc/qcom/ drivers/thermal/tegra/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>


sparse warnings: (new ones prefixed by >>)
   drivers/thermal/tegra/soctherm.c: note: in included file (through include/linux/bitops.h, include/linux/kernel.h, include/linux/list.h, ...):
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow

vim +445 arch/mips/include/asm/bitops.h

6590326505e3f7 include/asm-mips/bitops.h      Ralf Baechle       2005-07-12  431  
6590326505e3f7 include/asm-mips/bitops.h      Ralf Baechle       2005-07-12  432  /*
bc818247203a7b include/asm-mips/bitops.h      Atsushi Nemoto     2006-04-17  433   * ffs - find first bit set.
6590326505e3f7 include/asm-mips/bitops.h      Ralf Baechle       2005-07-12  434   * @word: The word to search
6590326505e3f7 include/asm-mips/bitops.h      Ralf Baechle       2005-07-12  435   *
bc818247203a7b include/asm-mips/bitops.h      Atsushi Nemoto     2006-04-17  436   * This is defined the same way as
bc818247203a7b include/asm-mips/bitops.h      Atsushi Nemoto     2006-04-17  437   * the libc and compiler builtin ffs routines, therefore
99b40ced9ef63c arch/mips/include/asm/bitops.h Geert Uytterhoeven 2021-01-08  438   * differs in spirit from the below ffz (man ffs).
6590326505e3f7 include/asm-mips/bitops.h      Ralf Baechle       2005-07-12  439   */
bc818247203a7b include/asm-mips/bitops.h      Atsushi Nemoto     2006-04-17  440  static inline int ffs(int word)
6590326505e3f7 include/asm-mips/bitops.h      Ralf Baechle       2005-07-12  441  {
bc818247203a7b include/asm-mips/bitops.h      Atsushi Nemoto     2006-04-17  442  	if (!word)
bc818247203a7b include/asm-mips/bitops.h      Atsushi Nemoto     2006-04-17  443  		return 0;
2caf190002770b include/asm-mips/bitops.h      Ralf Baechle       2006-01-30  444  
bc818247203a7b include/asm-mips/bitops.h      Atsushi Nemoto     2006-04-17 @445  	return fls(word & -word);
6590326505e3f7 include/asm-mips/bitops.h      Ralf Baechle       2005-07-12  446  }
6590326505e3f7 include/asm-mips/bitops.h      Ralf Baechle       2005-07-12  447  

:::::: The code at line 445 was first introduced by commit
:::::: bc818247203a7bfc40296a3f5b760de84fb8e0d1 [MIPS] Fix bitops for MIPS32/MIPS64 CPUs.

:::::: TO: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
:::::: CC: Ralf Baechle <ralf@linux-mips.org>

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

^ permalink raw reply	[flat|nested] 4+ messages in thread
* arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
@ 2022-03-09  5:17 kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2022-03-09  5:17 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 6990 bytes --]

CC: kbuild-all(a)lists.01.org
BCC: lkp(a)intel.com
CC: linux-kernel(a)vger.kernel.org
TO: Dmitry Osipenko <digetx@gmail.com>
CC: Daniel Lezcano <daniel.lezcano@linaro.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   92f90cc9fe0e7a984ea3d4bf3d120e30ba8a2118
commit: 8f8d8b0334cc4e7908b78e73936a7673bbef0411 thermal/drivers/tegra: Correct compile-testing of drivers
date:   7 months ago
:::::: branch date: 12 hours ago
:::::: commit date: 7 months ago
config: mips-randconfig-s031-20220302 (https://download.01.org/0day-ci/archive/20220309/202203091323.ZH5QynBW-lkp(a)intel.com/config)
compiler: mips-linux-gcc (GCC) 11.2.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.4-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8f8d8b0334cc4e7908b78e73936a7673bbef0411
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 8f8d8b0334cc4e7908b78e73936a7673bbef0411
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=mips SHELL=/bin/bash

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


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/thermal/tegra/soctherm.c: note: in included file (through include/linux/bitops.h, include/linux/kernel.h, include/linux/list.h, ...):
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow
>> arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow

vim +445 arch/mips/include/asm/bitops.h

6590326505e3f7b include/asm-mips/bitops.h      Ralf Baechle       2005-07-12  431  
6590326505e3f7b include/asm-mips/bitops.h      Ralf Baechle       2005-07-12  432  /*
bc818247203a7bf include/asm-mips/bitops.h      Atsushi Nemoto     2006-04-17  433   * ffs - find first bit set.
6590326505e3f7b include/asm-mips/bitops.h      Ralf Baechle       2005-07-12  434   * @word: The word to search
6590326505e3f7b include/asm-mips/bitops.h      Ralf Baechle       2005-07-12  435   *
bc818247203a7bf include/asm-mips/bitops.h      Atsushi Nemoto     2006-04-17  436   * This is defined the same way as
bc818247203a7bf include/asm-mips/bitops.h      Atsushi Nemoto     2006-04-17  437   * the libc and compiler builtin ffs routines, therefore
99b40ced9ef63ce arch/mips/include/asm/bitops.h Geert Uytterhoeven 2021-01-08  438   * differs in spirit from the below ffz (man ffs).
6590326505e3f7b include/asm-mips/bitops.h      Ralf Baechle       2005-07-12  439   */
bc818247203a7bf include/asm-mips/bitops.h      Atsushi Nemoto     2006-04-17  440  static inline int ffs(int word)
6590326505e3f7b include/asm-mips/bitops.h      Ralf Baechle       2005-07-12  441  {
bc818247203a7bf include/asm-mips/bitops.h      Atsushi Nemoto     2006-04-17  442  	if (!word)
bc818247203a7bf include/asm-mips/bitops.h      Atsushi Nemoto     2006-04-17  443  		return 0;
2caf190002770b5 include/asm-mips/bitops.h      Ralf Baechle       2006-01-30  444  
bc818247203a7bf include/asm-mips/bitops.h      Atsushi Nemoto     2006-04-17 @445  	return fls(word & -word);
6590326505e3f7b include/asm-mips/bitops.h      Ralf Baechle       2005-07-12  446  }
6590326505e3f7b include/asm-mips/bitops.h      Ralf Baechle       2005-07-12  447  

:::::: The code at line 445 was first introduced by commit
:::::: bc818247203a7bfc40296a3f5b760de84fb8e0d1 [MIPS] Fix bitops for MIPS32/MIPS64 CPUs.

:::::: TO: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
:::::: CC: Ralf Baechle <ralf@linux-mips.org>

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-08-03 22:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-01 17:47 arch/mips/include/asm/bitops.h:445:27: sparse: sparse: constant integer operation overflow kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2022-08-03 22:03 kernel test robot
2022-07-09 20:17 kernel test robot
2022-03-09  5:17 kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.