Hi Eugeniu,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on linux/master]
[also build test ERROR on pmladek/for-next linus/master v5.6-rc6 next-20200316]
[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/Eugeniu-Rosca/Fix-quiet-console-...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
f5ae2ea6347a308cfe91f53b53682ce635497d0d
config: powerpc-mpc836x_rdk_defconfig (attached as .config)
compiler: powerpc-linux-gcc (GCC) 9.2.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
GCC_VERSION=9.2.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from arch/powerpc/include/asm/atomic.h:11,
from include/linux/atomic.h:7,
from include/linux/printk.h:6,
from include/linux/kernel.h:15,
from include/asm-generic/bug.h:19,
from arch/powerpc/include/asm/bug.h:109,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
arch/powerpc/include/asm/cmpxchg.h: In function '__xchg_local':
> arch/powerpc/include/asm/cmpxchg.h:173:2: error: implicit
declaration of function 'BUILD_BUG_ON_MSG' [-Werror=implicit-function-declaration]
173 | BUILD_BUG_ON_MSG(1, "Unsupported size for __xchg");
| ^~~~~~~~~~~~~~~~
In file included from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
arch/powerpc/include/asm/page_32.h: In function 'clear_page':
> arch/powerpc/include/asm/bug.h:87:4: error: implicit declaration
of function '__WARN' [-Werror=implicit-function-declaration]
87 |
__WARN(); \
| ^~~~~~
> arch/powerpc/include/asm/page_32.h:54:2: note: in expansion of
macro 'WARN_ON'
54 | WARN_ON((unsigned long)addr &
(L1_CACHE_BYTES - 1));
| ^~~~~~~
> arch/powerpc/include/asm/bug.h:90:38: error: 'TAINT_WARN'
undeclared (first use in this function)
90 | BUGFLAG_WARNING |
BUGFLAG_TAINT(TAINT_WARN), \
| ^~~~~~~~~~
arch/powerpc/include/asm/bug.h:57:10: note: in definition of macro 'BUG_ENTRY'
57 | "i" (flags), \
| ^~~~~
> arch/powerpc/include/asm/bug.h:90:24: note: in expansion of macro
'BUGFLAG_TAINT'
90 | BUGFLAG_WARNING | BUGFLAG_TAINT(TAINT_WARN),
\
| ^~~~~~~~~~~~~
> arch/powerpc/include/asm/page_32.h:54:2: note: in expansion of
macro 'WARN_ON'
54 | WARN_ON((unsigned long)addr &
(L1_CACHE_BYTES - 1));
| ^~~~~~~
arch/powerpc/include/asm/bug.h:90:38: note: each undeclared identifier is reported only
once for each function it appears in
90 | BUGFLAG_WARNING | BUGFLAG_TAINT(TAINT_WARN), \
| ^~~~~~~~~~
arch/powerpc/include/asm/bug.h:57:10: note: in definition of macro 'BUG_ENTRY'
57 | "i" (flags), \
| ^~~~~
> arch/powerpc/include/asm/bug.h:90:24: note: in expansion of macro
'BUGFLAG_TAINT'
90 | BUGFLAG_WARNING | BUGFLAG_TAINT(TAINT_WARN),
\
| ^~~~~~~~~~~~~
> arch/powerpc/include/asm/page_32.h:54:2: note: in expansion of
macro 'WARN_ON'
54 | WARN_ON((unsigned long)addr &
(L1_CACHE_BYTES - 1));
| ^~~~~~~
> arch/powerpc/include/asm/bug.h:58:17: error: invalid application
of 'sizeof' to incomplete type 'struct bug_entry'
58 |
"i" (sizeof(struct bug_entry)), \
| ^~~~~~
> arch/powerpc/include/asm/bug.h:89:3: note: in expansion of macro
'BUG_ENTRY'
89 | BUG_ENTRY(PPC_TLNEI " %4, 0", \
| ^~~~~~~~~
> arch/powerpc/include/asm/page_32.h:54:2: note: in expansion of
macro 'WARN_ON'
54 | WARN_ON((unsigned long)addr &
(L1_CACHE_BYTES - 1));
| ^~~~~~~
In file included from arch/powerpc/include/asm/ptrace.h:218,
from arch/powerpc/include/asm/hw_irq.h:12,
from arch/powerpc/include/asm/irqflags.h:12,
from include/linux/irqflags.h:16,
from include/asm-generic/cmpxchg-local.h:6,
from arch/powerpc/include/asm/cmpxchg.h:537,
from arch/powerpc/include/asm/atomic.h:11,
from include/linux/atomic.h:7,
from include/linux/printk.h:6,
from include/linux/kernel.h:15,
from include/asm-generic/bug.h:19,
from arch/powerpc/include/asm/bug.h:109,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
include/linux/thread_info.h: In function 'copy_overflow':
> include/linux/thread_info.h:134:2: error: implicit declaration of
function 'WARN' [-Werror=implicit-function-declaration]
134 | WARN(1,
"Buffer overflow detected (%d < %lu)!\n", size, count);
| ^~~~
include/linux/thread_info.h: In function 'check_copy_size':
> include/linux/thread_info.h:150:6: error: implicit declaration of
function 'WARN_ON_ONCE' [-Werror=implicit-function-declaration]
150 |
if (WARN_ON_ONCE(bytes > INT_MAX))
| ^~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:99: kernel/bounds.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1113: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:179: sub-make] Error 2
38 real 7 user 12 sys 51.95% cpu make prepare
vim +/BUILD_BUG_ON_MSG +173 arch/powerpc/include/asm/cmpxchg.h
ae3a197e3d0bfe David Howells 2012-03-28 157
ae3a197e3d0bfe David Howells 2012-03-28 158 static __always_inline unsigned long
d0563a1297e234 Pan Xinhui 2016-04-27 159 __xchg_local(void *ptr, unsigned long x,
unsigned int size)
ae3a197e3d0bfe David Howells 2012-03-28 160 {
ae3a197e3d0bfe David Howells 2012-03-28 161 switch (size) {
d0563a1297e234 Pan Xinhui 2016-04-27 162 case 1:
d0563a1297e234 Pan Xinhui 2016-04-27 163 return __xchg_u8_local(ptr, x);
d0563a1297e234 Pan Xinhui 2016-04-27 164 case 2:
d0563a1297e234 Pan Xinhui 2016-04-27 165 return __xchg_u16_local(ptr, x);
ae3a197e3d0bfe David Howells 2012-03-28 166 case 4:
26760fc19a7e66 Boqun Feng 2015-12-15 167 return __xchg_u32_local(ptr, x);
ae3a197e3d0bfe David Howells 2012-03-28 168 #ifdef CONFIG_PPC64
ae3a197e3d0bfe David Howells 2012-03-28 169 case 8:
26760fc19a7e66 Boqun Feng 2015-12-15 170 return __xchg_u64_local(ptr, x);
ae3a197e3d0bfe David Howells 2012-03-28 171 #endif
ae3a197e3d0bfe David Howells 2012-03-28 172 }
10d8b1480e6966 pan xinhui 2016-02-23 @173 BUILD_BUG_ON_MSG(1, "Unsupported size
for __xchg");
ae3a197e3d0bfe David Howells 2012-03-28 174 return x;
ae3a197e3d0bfe David Howells 2012-03-28 175 }
ae3a197e3d0bfe David Howells 2012-03-28 176
:::::: The code at line 173 was first introduced by commit
:::::: 10d8b1480e6966ba03cd3afad3b5d6eb5e341fae powerpc: Use BUILD_BUG_ON_MSG() for
unsupported {cmp}xchg sizes
:::::: TO: pan xinhui <xinhui.pan(a)linux.vnet.ibm.com>
:::::: CC: Michael Ellerman <mpe(a)ellerman.id.au>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org