[l1k:smsc95xx_5.17 279/888] include/linux/broadcom/vc_mem.h:36:63: error: 'compat_ulong_t' undeclared

From: kernel test robot
Date: Fri Apr 08 2022 - 16:20:15 EST


tree: https://github.com/l1k/linux smsc95xx_5.17
head: 240f56c27361c195cd502d95aba51c6b8e5b808c
commit: 369c3a505f84640f4c10f4caf67c22bf5f9b1d56 [279/888] char: Add broadcom char drivers back to build files
config: sparc-allyesconfig (https://download.01.org/0day-ci/archive/20220409/202204090406.QmmRJunU-lkp@xxxxxxxxx/config)
compiler: sparc64-linux-gcc (GCC) 11.2.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/l1k/linux/commit/369c3a505f84640f4c10f4caf67c22bf5f9b1d56
git remote add l1k https://github.com/l1k/linux
git fetch --no-tags l1k smsc95xx_5.17
git checkout 369c3a505f84640f4c10f4caf67c22bf5f9b1d56
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=sparc SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

In file included from include/uapi/linux/ioctl.h:5,
from include/uapi/linux/fs.h:14,
from include/linux/fs.h:47,
from drivers/char/broadcom/vc_mem.c:17:
drivers/char/broadcom/vc_mem.c: In function 'vc_mem_compat_ioctl':
>> include/linux/broadcom/vc_mem.h:36:63: error: 'compat_ulong_t' undeclared (first use in this function)
36 | #define VC_MEM_IOC_MEM_PHYS_ADDR32 _IOR(VC_MEM_IOC_MAGIC, 0, compat_ulong_t)
| ^~~~~~~~~~~~~~
arch/sparc/include/uapi/asm/ioctl.h:43:12: note: in definition of macro '_IOC'
43 | ((size) << _IOC_SIZESHIFT))
| ^~~~
include/linux/broadcom/vc_mem.h:36:37: note: in expansion of macro '_IOR'
36 | #define VC_MEM_IOC_MEM_PHYS_ADDR32 _IOR(VC_MEM_IOC_MAGIC, 0, compat_ulong_t)
| ^~~~
drivers/char/broadcom/vc_mem.c:183:14: note: in expansion of macro 'VC_MEM_IOC_MEM_PHYS_ADDR32'
183 | case VC_MEM_IOC_MEM_PHYS_ADDR32:
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/broadcom/vc_mem.h:36:63: note: each undeclared identifier is reported only once for each function it appears in
36 | #define VC_MEM_IOC_MEM_PHYS_ADDR32 _IOR(VC_MEM_IOC_MAGIC, 0, compat_ulong_t)
| ^~~~~~~~~~~~~~
arch/sparc/include/uapi/asm/ioctl.h:43:12: note: in definition of macro '_IOC'
43 | ((size) << _IOC_SIZESHIFT))
| ^~~~
include/linux/broadcom/vc_mem.h:36:37: note: in expansion of macro '_IOR'
36 | #define VC_MEM_IOC_MEM_PHYS_ADDR32 _IOR(VC_MEM_IOC_MAGIC, 0, compat_ulong_t)
| ^~~~
drivers/char/broadcom/vc_mem.c:183:14: note: in expansion of macro 'VC_MEM_IOC_MEM_PHYS_ADDR32'
183 | case VC_MEM_IOC_MEM_PHYS_ADDR32:
| ^~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/compat_ulong_t +36 include/linux/broadcom/vc_mem.h

bc341020f52eeb popcornmix 2016-10-28 34
bc341020f52eeb popcornmix 2016-10-28 35 #ifdef CONFIG_COMPAT
bc341020f52eeb popcornmix 2016-10-28 @36 #define VC_MEM_IOC_MEM_PHYS_ADDR32 _IOR(VC_MEM_IOC_MAGIC, 0, compat_ulong_t)
bc341020f52eeb popcornmix 2016-10-28 37 #endif
bc341020f52eeb popcornmix 2016-10-28 38

:::::: The code at line 36 was first introduced by commit
:::::: bc341020f52eeb5c8b0def11a65bfb79ac6d1e74 vc_mem: Add vc_mem driver for querying firmware memory addresses

:::::: TO: popcornmix <popcornmix@xxxxxxxxx>
:::::: CC: Dom Cobley <popcornmix@xxxxxxxxx>

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