mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Sedat Dilek <sedat.dilek@gmail.com>,
	Masahiro Yamada <masahiroy@kernel.org>,
	"Steven Rostedt (VMware)" <rostedt@goodmis.org>,
	Masami Hiramatsu <mhiramat@kernel.org>, Tejun Heo <tj@kernel.org>,
	Jessica Yu <jeyu@kernel.org>,
	Mauro Carvalho Chehab <mchehab@kernel.org>,
	"Joel Fernandes (Google)" <joel@joelfernandes.org>,
	Patrick Bellasi <patrick.bellasi@arm.com>,
	Krzysztof Kozlowski <krzk@kernel.org>,
	Dan Williams <dan.j.williams@intel.com>,
	"Eric W. Biederman" <ebiederm@xmission.com>,
	linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com
Cc: kbuild-all@lists.01.org, linux-media@vger.kernel.org
Subject: Re: [PATCH] kbuild: Set CLANG_VERSION only when Clang is used
Date: Tue, 21 Apr 2020 17:52:23 +0800	[thread overview]
Message-ID: <202004211757.rLRWoxrI%lkp@intel.com> (raw)
In-Reply-To: <20200419123612.173187-1-sedat.dilek@gmail.com>

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

Hi Sedat,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on kbuild/for-next]
[also build test ERROR on jeyu/modules-next linus/master v5.7-rc2 next-20200420]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]

url:    https://github.com/0day-ci/linux/commits/Sedat-Dilek/kbuild-Set-CLANG_VERSION-only-when-Clang-is-used/20200421-110637
base:   https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git for-next
config: mips-fuloong2e_defconfig (attached as .config)
compiler: mips64el-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
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=mips 

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

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

   In file included from include/linux/kernel.h:11,
                    from include/linux/cpu_pm.h:12,
                    from arch/mips/mm/c-r4k.c:10:
   arch/mips/include/asm/r4kcache.h: In function 'blast_dcache16':
>> arch/mips/include/asm/unroll.h:29:9: error: 'CONFIG_CLANG_VERSION' undeclared (first use in this function); did you mean 'CONFIG_LD_VERSION'?
      29 |         CONFIG_CLANG_VERSION >= 80000) &&  \
         |         ^~~~~~~~~~~~~~~~~~~~
   include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
     330 |   if (!(condition))     \
         |         ^~~~~~~~~
   include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
     350 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |  ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
      39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
>> arch/mips/include/asm/unroll.h:28:2: note: in expansion of macro 'BUILD_BUG_ON'
      28 |  BUILD_BUG_ON((CONFIG_GCC_VERSION >= 40700 ||  \
         |  ^~~~~~~~~~~~
>> arch/mips/include/asm/r4kcache.h:203:2: note: in expansion of macro 'unroll'
     203 |  unroll(times, _cache_op, insn, op, (addr) + (i++ * (lsize))); \
         |  ^~~~~~
>> arch/mips/include/asm/r4kcache.h:219:4: note: in expansion of macro 'cache_unroll'
     219 |    cache_unroll(32, kernel_cache, indexop,  \
         |    ^~~~~~~~~~~~
>> arch/mips/include/asm/r4kcache.h:250:1: note: in expansion of macro '__BUILD_BLAST_CACHE'
     250 | __BUILD_BLAST_CACHE(d, dcache, Index_Writeback_Inv_D, Hit_Writeback_Inv_D, 16, )
         | ^~~~~~~~~~~~~~~~~~~
   arch/mips/include/asm/unroll.h:29:9: note: each undeclared identifier is reported only once for each function it appears in
      29 |         CONFIG_CLANG_VERSION >= 80000) &&  \
         |         ^~~~~~~~~~~~~~~~~~~~
   include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
     330 |   if (!(condition))     \
         |         ^~~~~~~~~
   include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
     350 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |  ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
      39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
>> arch/mips/include/asm/unroll.h:28:2: note: in expansion of macro 'BUILD_BUG_ON'
      28 |  BUILD_BUG_ON((CONFIG_GCC_VERSION >= 40700 ||  \
         |  ^~~~~~~~~~~~
>> arch/mips/include/asm/r4kcache.h:203:2: note: in expansion of macro 'unroll'
     203 |  unroll(times, _cache_op, insn, op, (addr) + (i++ * (lsize))); \
         |  ^~~~~~
>> arch/mips/include/asm/r4kcache.h:219:4: note: in expansion of macro 'cache_unroll'
     219 |    cache_unroll(32, kernel_cache, indexop,  \
         |    ^~~~~~~~~~~~
>> arch/mips/include/asm/r4kcache.h:250:1: note: in expansion of macro '__BUILD_BLAST_CACHE'
     250 | __BUILD_BLAST_CACHE(d, dcache, Index_Writeback_Inv_D, Hit_Writeback_Inv_D, 16, )
         | ^~~~~~~~~~~~~~~~~~~
   arch/mips/include/asm/r4kcache.h: In function 'blast_dcache16_page':
>> arch/mips/include/asm/unroll.h:29:9: error: 'CONFIG_CLANG_VERSION' undeclared (first use in this function); did you mean 'CONFIG_LD_VERSION'?
      29 |         CONFIG_CLANG_VERSION >= 80000) &&  \
         |         ^~~~~~~~~~~~~~~~~~~~
   include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
     330 |   if (!(condition))     \
         |         ^~~~~~~~~
   include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
     350 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |  ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
      39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
>> arch/mips/include/asm/unroll.h:28:2: note: in expansion of macro 'BUILD_BUG_ON'
      28 |  BUILD_BUG_ON((CONFIG_GCC_VERSION >= 40700 ||  \
         |  ^~~~~~~~~~~~
>> arch/mips/include/asm/r4kcache.h:203:2: note: in expansion of macro 'unroll'
     203 |  unroll(times, _cache_op, insn, op, (addr) + (i++ * (lsize))); \
         |  ^~~~~~
   arch/mips/include/asm/r4kcache.h:229:3: note: in expansion of macro 'cache_unroll'
     229 |   cache_unroll(32, kernel_cache, hitop, start, lsize); \
         |   ^~~~~~~~~~~~
>> arch/mips/include/asm/r4kcache.h:250:1: note: in expansion of macro '__BUILD_BLAST_CACHE'
     250 | __BUILD_BLAST_CACHE(d, dcache, Index_Writeback_Inv_D, Hit_Writeback_Inv_D, 16, )
         | ^~~~~~~~~~~~~~~~~~~
   arch/mips/include/asm/r4kcache.h: In function 'blast_dcache16_page_indexed':
>> arch/mips/include/asm/unroll.h:29:9: error: 'CONFIG_CLANG_VERSION' undeclared (first use in this function); did you mean 'CONFIG_LD_VERSION'?
      29 |         CONFIG_CLANG_VERSION >= 80000) &&  \
         |         ^~~~~~~~~~~~~~~~~~~~
   include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
     330 |   if (!(condition))     \
         |         ^~~~~~~~~
   include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
     350 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |  ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
      39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
>> arch/mips/include/asm/unroll.h:28:2: note: in expansion of macro 'BUILD_BUG_ON'
      28 |  BUILD_BUG_ON((CONFIG_GCC_VERSION >= 40700 ||  \
         |  ^~~~~~~~~~~~
>> arch/mips/include/asm/r4kcache.h:203:2: note: in expansion of macro 'unroll'
     203 |  unroll(times, _cache_op, insn, op, (addr) + (i++ * (lsize))); \
         |  ^~~~~~
   arch/mips/include/asm/r4kcache.h:246:4: note: in expansion of macro 'cache_unroll'
     246 |    cache_unroll(32, kernel_cache, indexop,  \
         |    ^~~~~~~~~~~~
>> arch/mips/include/asm/r4kcache.h:250:1: note: in expansion of macro '__BUILD_BLAST_CACHE'
     250 | __BUILD_BLAST_CACHE(d, dcache, Index_Writeback_Inv_D, Hit_Writeback_Inv_D, 16, )
         | ^~~~~~~~~~~~~~~~~~~
   arch/mips/include/asm/r4kcache.h: In function 'blast_icache16':
>> arch/mips/include/asm/unroll.h:29:9: error: 'CONFIG_CLANG_VERSION' undeclared (first use in this function); did you mean 'CONFIG_LD_VERSION'?
      29 |         CONFIG_CLANG_VERSION >= 80000) &&  \
         |         ^~~~~~~~~~~~~~~~~~~~
   include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
     330 |   if (!(condition))     \
         |         ^~~~~~~~~
   include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
     350 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |  ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
      39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
>> arch/mips/include/asm/unroll.h:28:2: note: in expansion of macro 'BUILD_BUG_ON'
      28 |  BUILD_BUG_ON((CONFIG_GCC_VERSION >= 40700 ||  \
         |  ^~~~~~~~~~~~
>> arch/mips/include/asm/r4kcache.h:203:2: note: in expansion of macro 'unroll'
     203 |  unroll(times, _cache_op, insn, op, (addr) + (i++ * (lsize))); \
         |  ^~~~~~
   arch/mips/include/asm/r4kcache.h:219:4: note: in expansion of macro 'cache_unroll'
     219 |    cache_unroll(32, kernel_cache, indexop,  \
         |    ^~~~~~~~~~~~
   arch/mips/include/asm/r4kcache.h:251:1: note: in expansion of macro '__BUILD_BLAST_CACHE'
     251 | __BUILD_BLAST_CACHE(i, icache, Index_Invalidate_I, Hit_Invalidate_I, 16, )
         | ^~~~~~~~~~~~~~~~~~~
   arch/mips/include/asm/r4kcache.h: In function 'blast_icache16_page':
   arch/mips/include/asm/unroll.h:29:9: error: 'CONFIG_CLANG_VERSION' undeclared (first use in this function); did you mean 'CONFIG_LD_VERSION'?
      29 |         CONFIG_CLANG_VERSION >= 80000) &&  \
         |         ^~~~~~~~~~~~~~~~~~~~
   include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
     330 |   if (!(condition))     \
         |         ^~~~~~~~~
   include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
     350 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |  ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
      39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
   arch/mips/include/asm/unroll.h:28:2: note: in expansion of macro 'BUILD_BUG_ON'
      28 |  BUILD_BUG_ON((CONFIG_GCC_VERSION >= 40700 ||  \
         |  ^~~~~~~~~~~~
   arch/mips/include/asm/r4kcache.h:203:2: note: in expansion of macro 'unroll'
     203 |  unroll(times, _cache_op, insn, op, (addr) + (i++ * (lsize))); \
         |  ^~~~~~
   arch/mips/include/asm/r4kcache.h:229:3: note: in expansion of macro 'cache_unroll'
     229 |   cache_unroll(32, kernel_cache, hitop, start, lsize); \
         |   ^~~~~~~~~~~~
   arch/mips/include/asm/r4kcache.h:251:1: note: in expansion of macro '__BUILD_BLAST_CACHE'
     251 | __BUILD_BLAST_CACHE(i, icache, Index_Invalidate_I, Hit_Invalidate_I, 16, )
         | ^~~~~~~~~~~~~~~~~~~
   arch/mips/include/asm/r4kcache.h: In function 'blast_icache16_page_indexed':
   arch/mips/include/asm/unroll.h:29:9: error: 'CONFIG_CLANG_VERSION' undeclared (first use in this function); did you mean 'CONFIG_LD_VERSION'?
      29 |         CONFIG_CLANG_VERSION >= 80000) &&  \
         |         ^~~~~~~~~~~~~~~~~~~~
   include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
     330 |   if (!(condition))     \
         |         ^~~~~~~~~
   include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
     350 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |  ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
      39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
   arch/mips/include/asm/unroll.h:28:2: note: in expansion of macro 'BUILD_BUG_ON'
      28 |  BUILD_BUG_ON((CONFIG_GCC_VERSION >= 40700 ||  \
         |  ^~~~~~~~~~~~
   arch/mips/include/asm/r4kcache.h:203:2: note: in expansion of macro 'unroll'
     203 |  unroll(times, _cache_op, insn, op, (addr) + (i++ * (lsize))); \
         |  ^~~~~~
   arch/mips/include/asm/r4kcache.h:246:4: note: in expansion of macro 'cache_unroll'
     246 |    cache_unroll(32, kernel_cache, indexop,  \
         |    ^~~~~~~~~~~~
   arch/mips/include/asm/r4kcache.h:251:1: note: in expansion of macro '__BUILD_BLAST_CACHE'
     251 | __BUILD_BLAST_CACHE(i, icache, Index_Invalidate_I, Hit_Invalidate_I, 16, )
         | ^~~~~~~~~~~~~~~~~~~
   arch/mips/include/asm/r4kcache.h: In function 'blast_scache16':
   arch/mips/include/asm/unroll.h:29:9: error: 'CONFIG_CLANG_VERSION' undeclared (first use in this function); did you mean 'CONFIG_LD_VERSION'?
      29 |         CONFIG_CLANG_VERSION >= 80000) &&  \
         |         ^~~~~~~~~~~~~~~~~~~~
   include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
     330 |   if (!(condition))     \
         |         ^~~~~~~~~
   include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
     350 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |  ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
      39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
   arch/mips/include/asm/unroll.h:28:2: note: in expansion of macro 'BUILD_BUG_ON'
      28 |  BUILD_BUG_ON((CONFIG_GCC_VERSION >= 40700 ||  \
         |  ^~~~~~~~~~~~
   arch/mips/include/asm/r4kcache.h:203:2: note: in expansion of macro 'unroll'
     203 |  unroll(times, _cache_op, insn, op, (addr) + (i++ * (lsize))); \
         |  ^~~~~~
   arch/mips/include/asm/r4kcache.h:219:4: note: in expansion of macro 'cache_unroll'
     219 |    cache_unroll(32, kernel_cache, indexop,  \
         |    ^~~~~~~~~~~~
   arch/mips/include/asm/r4kcache.h:252:1: note: in expansion of macro '__BUILD_BLAST_CACHE'
     252 | __BUILD_BLAST_CACHE(s, scache, Index_Writeback_Inv_SD, Hit_Writeback_Inv_SD, 16, )
         | ^~~~~~~~~~~~~~~~~~~
   arch/mips/include/asm/r4kcache.h: In function 'blast_scache16_page':
   arch/mips/include/asm/unroll.h:29:9: error: 'CONFIG_CLANG_VERSION' undeclared (first use in this function); did you mean 'CONFIG_LD_VERSION'?
      29 |         CONFIG_CLANG_VERSION >= 80000) &&  \
         |         ^~~~~~~~~~~~~~~~~~~~
   include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
     330 |   if (!(condition))     \
         |         ^~~~~~~~~
   include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'

vim +29 arch/mips/include/asm/unroll.h

6baaeadae911ba9 Paul Burton       2019-10-08   4  
6baaeadae911ba9 Paul Burton       2019-10-08   5  /*
6baaeadae911ba9 Paul Burton       2019-10-08   6   * Explicitly unroll a loop, for use in cases where doing so is performance
6baaeadae911ba9 Paul Burton       2019-10-08   7   * critical.
6baaeadae911ba9 Paul Burton       2019-10-08   8   *
6baaeadae911ba9 Paul Burton       2019-10-08   9   * Ideally we'd rely upon the compiler to provide this but there's no commonly
6baaeadae911ba9 Paul Burton       2019-10-08  10   * available means to do so. For example GCC's "#pragma GCC unroll"
6baaeadae911ba9 Paul Burton       2019-10-08  11   * functionality would be ideal but is only available from GCC 8 onwards. Using
6baaeadae911ba9 Paul Burton       2019-10-08  12   * -funroll-loops is an option but GCC tends to make poor choices when
6baaeadae911ba9 Paul Burton       2019-10-08  13   * compiling our string functions. -funroll-all-loops leads to massive code
6baaeadae911ba9 Paul Burton       2019-10-08  14   * bloat, even if only applied to the string functions.
6baaeadae911ba9 Paul Burton       2019-10-08  15   */
6baaeadae911ba9 Paul Burton       2019-10-08  16  #define unroll(times, fn, ...) do {				\
6baaeadae911ba9 Paul Burton       2019-10-08  17  	extern void bad_unroll(void)				\
6baaeadae911ba9 Paul Burton       2019-10-08  18  		__compiletime_error("Unsupported unroll");	\
6baaeadae911ba9 Paul Burton       2019-10-08  19  								\
6baaeadae911ba9 Paul Burton       2019-10-08  20  	/*							\
6baaeadae911ba9 Paul Burton       2019-10-08  21  	 * We can't unroll if the number of iterations isn't	\
6baaeadae911ba9 Paul Burton       2019-10-08  22  	 * compile-time constant. Unfortunately GCC versions	\
6baaeadae911ba9 Paul Burton       2019-10-08  23  	 * up until 4.6 tend to miss obvious constants & cause	\
6baaeadae911ba9 Paul Burton       2019-10-08  24  	 * this check to fail, even though they go on to	\
6baaeadae911ba9 Paul Burton       2019-10-08  25  	 * generate reasonable code for the switch statement,	\
6baaeadae911ba9 Paul Burton       2019-10-08  26  	 * so we skip the sanity check for those compilers.	\
6baaeadae911ba9 Paul Burton       2019-10-08  27  	 */							\
df3da04880b45b0 Nathan Chancellor 2019-10-10 @28  	BUILD_BUG_ON((CONFIG_GCC_VERSION >= 40700 ||		\
df3da04880b45b0 Nathan Chancellor 2019-10-10 @29  		      CONFIG_CLANG_VERSION >= 80000) &&		\
6baaeadae911ba9 Paul Burton       2019-10-08  30  		     !__builtin_constant_p(times));		\
6baaeadae911ba9 Paul Burton       2019-10-08  31  								\
6baaeadae911ba9 Paul Burton       2019-10-08  32  	switch (times) {					\
6baaeadae911ba9 Paul Burton       2019-10-08  33  	case 32: fn(__VA_ARGS__); /* fall through */		\
6baaeadae911ba9 Paul Burton       2019-10-08  34  	case 31: fn(__VA_ARGS__); /* fall through */		\
6baaeadae911ba9 Paul Burton       2019-10-08  35  	case 30: fn(__VA_ARGS__); /* fall through */		\
6baaeadae911ba9 Paul Burton       2019-10-08  36  	case 29: fn(__VA_ARGS__); /* fall through */		\
6baaeadae911ba9 Paul Burton       2019-10-08  37  	case 28: fn(__VA_ARGS__); /* fall through */		\
6baaeadae911ba9 Paul Burton       2019-10-08  38  	case 27: fn(__VA_ARGS__); /* fall through */		\
6baaeadae911ba9 Paul Burton       2019-10-08  39  	case 26: fn(__VA_ARGS__); /* fall through */		\
6baaeadae911ba9 Paul Burton       2019-10-08  40  	case 25: fn(__VA_ARGS__); /* fall through */		\
6baaeadae911ba9 Paul Burton       2019-10-08  41  	case 24: fn(__VA_ARGS__); /* fall through */		\
6baaeadae911ba9 Paul Burton       2019-10-08  42  	case 23: fn(__VA_ARGS__); /* fall through */		\
6baaeadae911ba9 Paul Burton       2019-10-08  43  	case 22: fn(__VA_ARGS__); /* fall through */		\
6baaeadae911ba9 Paul Burton       2019-10-08  44  	case 21: fn(__VA_ARGS__); /* fall through */		\
6baaeadae911ba9 Paul Burton       2019-10-08  45  	case 20: fn(__VA_ARGS__); /* fall through */		\
6baaeadae911ba9 Paul Burton       2019-10-08  46  	case 19: fn(__VA_ARGS__); /* fall through */		\
6baaeadae911ba9 Paul Burton       2019-10-08  47  	case 18: fn(__VA_ARGS__); /* fall through */		\
6baaeadae911ba9 Paul Burton       2019-10-08  48  	case 17: fn(__VA_ARGS__); /* fall through */		\
6baaeadae911ba9 Paul Burton       2019-10-08  49  	case 16: fn(__VA_ARGS__); /* fall through */		\
6baaeadae911ba9 Paul Burton       2019-10-08  50  	case 15: fn(__VA_ARGS__); /* fall through */		\
6baaeadae911ba9 Paul Burton       2019-10-08  51  	case 14: fn(__VA_ARGS__); /* fall through */		\
6baaeadae911ba9 Paul Burton       2019-10-08  52  	case 13: fn(__VA_ARGS__); /* fall through */		\
6baaeadae911ba9 Paul Burton       2019-10-08  53  	case 12: fn(__VA_ARGS__); /* fall through */		\
6baaeadae911ba9 Paul Burton       2019-10-08  54  	case 11: fn(__VA_ARGS__); /* fall through */		\
6baaeadae911ba9 Paul Burton       2019-10-08  55  	case 10: fn(__VA_ARGS__); /* fall through */		\
6baaeadae911ba9 Paul Burton       2019-10-08  56  	case 9: fn(__VA_ARGS__); /* fall through */		\
6baaeadae911ba9 Paul Burton       2019-10-08  57  	case 8: fn(__VA_ARGS__); /* fall through */		\
6baaeadae911ba9 Paul Burton       2019-10-08  58  	case 7: fn(__VA_ARGS__); /* fall through */		\
6baaeadae911ba9 Paul Burton       2019-10-08  59  	case 6: fn(__VA_ARGS__); /* fall through */		\
6baaeadae911ba9 Paul Burton       2019-10-08  60  	case 5: fn(__VA_ARGS__); /* fall through */		\
6baaeadae911ba9 Paul Burton       2019-10-08  61  	case 4: fn(__VA_ARGS__); /* fall through */		\
6baaeadae911ba9 Paul Burton       2019-10-08  62  	case 3: fn(__VA_ARGS__); /* fall through */		\
6baaeadae911ba9 Paul Burton       2019-10-08  63  	case 2: fn(__VA_ARGS__); /* fall through */		\
6baaeadae911ba9 Paul Burton       2019-10-08  64  	case 1: fn(__VA_ARGS__); /* fall through */		\
6baaeadae911ba9 Paul Burton       2019-10-08  65  	case 0: break;						\
6baaeadae911ba9 Paul Burton       2019-10-08  66  								\
6baaeadae911ba9 Paul Burton       2019-10-08  67  	default:						\
6baaeadae911ba9 Paul Burton       2019-10-08  68  		/*						\
6baaeadae911ba9 Paul Burton       2019-10-08  69  		 * Either the iteration count is unreasonable	\
6baaeadae911ba9 Paul Burton       2019-10-08  70  		 * or we need to add more cases above.		\
6baaeadae911ba9 Paul Burton       2019-10-08  71  		 */						\
6baaeadae911ba9 Paul Burton       2019-10-08  72  		bad_unroll();					\
6baaeadae911ba9 Paul Burton       2019-10-08  73  		break;						\
6baaeadae911ba9 Paul Burton       2019-10-08  74  	}							\
6baaeadae911ba9 Paul Burton       2019-10-08  75  } while (0)
6baaeadae911ba9 Paul Burton       2019-10-08  76  

:::::: The code at line 29 was first introduced by commit
:::::: df3da04880b45b059b8b064c2dd67289a793109e mips: Fix unroll macro when building with Clang

:::::: TO: Nathan Chancellor <natechancellor@gmail.com>
:::::: CC: Paul Burton <paul.burton@mips.com>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 19628 bytes --]

      parent reply	other threads:[~2020-04-21  9:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-19 12:36 Sedat Dilek
2020-04-19 15:37 ` Nathan Chancellor
2020-04-21  9:52 ` kbuild test robot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202004211757.rLRWoxrI%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=clang-built-linux@googlegroups.com \
    --cc=dan.j.williams@intel.com \
    --cc=ebiederm@xmission.com \
    --cc=jeyu@kernel.org \
    --cc=joel@joelfernandes.org \
    --cc=kbuild-all@lists.01.org \
    --cc=krzk@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=masahiroy@kernel.org \
    --cc=mchehab@kernel.org \
    --cc=mhiramat@kernel.org \
    --cc=patrick.bellasi@arm.com \
    --cc=rostedt@goodmis.org \
    --cc=sedat.dilek@gmail.com \
    --cc=tj@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®