Hi Tiezhu,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on bpf-next/master]
[also build test ERROR on bpf/master linus/master v5.11-rc3 next-20210113]
[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/Tiezhu-Yang/Fix-build-errors-and...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
config: arm-defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://github.com/0day-ci/linux/commit/f65413b91d3c20f52eb8b53d7d32b9fd3...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Tiezhu-Yang/Fix-build-errors-and-warnings-when-make-M-samples-bpf/20210113-190045
git checkout f65413b91d3c20f52eb8b53d7d32b9fd38a18dca
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/spinlock_types.h:13,
from include/linux/ratelimit_types.h:7,
from include/linux/ratelimit.h:5,
from lib/ratelimit.c:11:
> arch/arm/include/asm/spinlock_types.h:13:3: error: unknown type
name 'u32'
13 | u32 slock;
| ^~~
> arch/arm/include/asm/spinlock_types.h:19:4: error: unknown type
name 'u16'
19 | u16 owner;
| ^~~
arch/arm/include/asm/spinlock_types.h:20:4: error: unknown type name 'u16'
20 | u16 next;
| ^~~
arch/arm/include/asm/spinlock_types.h:29:2: error: unknown type name 'u32'
29 | u32 lock;
| ^~~
vim +/u32 +13 arch/arm/include/asm/spinlock_types.h
546c2896a42202db arch/arm/include/asm/spinlock_types.h Will Deacon 2012-07-06 10
fb1c8f93d869b34c include/asm-arm/spinlock_types.h Ingo Molnar 2005-09-10 11
typedef struct {
546c2896a42202db arch/arm/include/asm/spinlock_types.h Will Deacon 2012-07-06 12
union {
546c2896a42202db arch/arm/include/asm/spinlock_types.h Will Deacon 2012-07-06 @13
u32 slock;
546c2896a42202db arch/arm/include/asm/spinlock_types.h Will Deacon 2012-07-06 14
struct __raw_tickets {
546c2896a42202db arch/arm/include/asm/spinlock_types.h Will Deacon 2012-07-06 15
#ifdef __ARMEB__
546c2896a42202db arch/arm/include/asm/spinlock_types.h Will Deacon 2012-07-06 16
u16 next;
546c2896a42202db arch/arm/include/asm/spinlock_types.h Will Deacon 2012-07-06 17
u16 owner;
546c2896a42202db arch/arm/include/asm/spinlock_types.h Will Deacon 2012-07-06 18
#else
546c2896a42202db arch/arm/include/asm/spinlock_types.h Will Deacon 2012-07-06 @19
u16 owner;
546c2896a42202db arch/arm/include/asm/spinlock_types.h Will Deacon 2012-07-06 20
u16 next;
546c2896a42202db arch/arm/include/asm/spinlock_types.h Will Deacon 2012-07-06 21
#endif
546c2896a42202db arch/arm/include/asm/spinlock_types.h Will Deacon 2012-07-06 22 }
tickets;
546c2896a42202db arch/arm/include/asm/spinlock_types.h Will Deacon 2012-07-06 23
};
445c89514be242b1 arch/arm/include/asm/spinlock_types.h Thomas Gleixner 2009-12-02 24 }
arch_spinlock_t;
fb1c8f93d869b34c include/asm-arm/spinlock_types.h Ingo Molnar 2005-09-10 25
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org