Hi Andy,
I love your patch! Perhaps something to improve:
[auto build test WARNING on balbi-usb/next]
[also build test WARNING on mkp-scsi/for-next linus/master v5.6-rc5 next-20200312]
[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/Andy-Shevchenko/asm-generic-Prov...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git next
config: nios2-randconfig-a001-20200312 (attached as .config)
compiler: nios2-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=nios2
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from ./arch/nios2/include/generated/asm/unaligned.h:1,
from drivers/target/target_core_pscsi.c:24:
include/asm-generic/unaligned.h: In function 'get_unaligned_be24':
include/asm-generic/unaligned.h:51:14: error: 'p' undeclared (first use in this
function); did you mean 'up'?
51 | return (u32)p[0] << 16 | (u32)p[1] << 8 | (u32)p[2];
| ^
| up
include/asm-generic/unaligned.h:51:14: note: each undeclared identifier is reported
only once for each function it appears in
> include/asm-generic/unaligned.h:52:1: warning: control reaches
end of non-void function [-Wreturn-type]
52 | }
| ^
--
In file included from ./arch/nios2/include/generated/asm/unaligned.h:1,
from drivers/target/target_core_xcopy.c:21:
include/asm-generic/unaligned.h: In function 'get_unaligned_be24':
include/asm-generic/unaligned.h:51:14: error: 'p' undeclared (first use in this
function)
51 | return (u32)p[0] << 16 | (u32)p[1] << 8 | (u32)p[2];
| ^
include/asm-generic/unaligned.h:51:14: note: each undeclared identifier is reported
only once for each function it appears in
> include/asm-generic/unaligned.h:52:1: warning: control reaches
end of non-void function [-Wreturn-type]
52 | }
| ^
vim +52 include/asm-generic/unaligned.h
48
49 static inline u32 get_unaligned_be24(const u8 *buf)
50 {
51 return (u32)p[0] << 16 | (u32)p[1] << 8 | (u32)p[2];
52 }
53
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org