All of lore.kernel.org
 help / color / mirror / Atom feed
* [zen:5.15/futex2 4/8] kernel/futex2.c:1089:37: error: storage size of 'tmp' isn't known
@ 2021-11-04 23:37 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-11-04 23:37 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/zen-kernel/zen-kernel 5.15/futex2
head:   17e5d20f03d1d96a2bedb48cc72a61522f05f127
commit: c0a4ecd9072952c0bda39c4d232d59e3d67751ce [4/8] futex2: Implement requeue operation
config: sparc64-randconfig-r016-20211104 (attached as .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/zen-kernel/zen-kernel/commit/c0a4ecd9072952c0bda39c4d232d59e3d67751ce
        git remote add zen https://github.com/zen-kernel/zen-kernel
        git fetch --no-tags zen 5.15/futex2
        git checkout c0a4ecd9072952c0bda39c4d232d59e3d67751ce
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=sparc64 SHELL=/bin/bash

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

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

   kernel/futex2.c:723:44: warning: 'struct compat_futex_waitv' declared inside parameter list will not be visible outside of this definition or declaration
     723 |                                     struct compat_futex_waitv __user *uwaitv,
         |                                            ^~~~~~~~~~~~~~~~~~
   kernel/futex2.c: In function 'compat_futex_parse_waitv':
   kernel/futex2.c:727:35: error: storage size of 'waitv' isn't known
     727 |         struct compat_futex_waitv waitv;
         |                                   ^~~~~
   kernel/futex2.c:731:51: error: invalid use of undefined type 'struct compat_futex_waitv'
     731 |                 if (copy_from_user(&waitv, &uwaitv[i], sizeof(waitv)))
         |                                                   ^
   kernel/futex2.c:740:45: error: implicit declaration of function 'compat_ptr' [-Werror=implicit-function-declaration]
     740 |                 futexv->objects[i].uaddr  = compat_ptr(waitv.uaddr);
         |                                             ^~~~~~~~~~
   kernel/futex2.c:727:35: warning: unused variable 'waitv' [-Wunused-variable]
     727 |         struct compat_futex_waitv waitv;
         |                                   ^~~~~
   kernel/futex2.c: At top level:
   kernel/futex2.c:759:36: error: expected ')' before 'struct'
     759 | COMPAT_SYSCALL_DEFINE4(futex_waitv, struct compat_futex_waitv __user *, waiters,
         |                                    ^~~~~~~
         |                                    )
>> kernel/futex2.c:1086:46: warning: 'struct compat_futex_requeue' declared inside parameter list will not be visible outside of this definition or declaration
    1086 |                                       struct compat_futex_requeue __user *uaddr,
         |                                              ^~~~~~~~~~~~~~~~~~~~
   kernel/futex2.c: In function 'compat_futex_parse_requeue':
>> kernel/futex2.c:1089:37: error: storage size of 'tmp' isn't known
    1089 |         struct compat_futex_requeue tmp;
         |                                     ^~~
   kernel/futex2.c:1089:37: warning: unused variable 'tmp' [-Wunused-variable]
   kernel/futex2.c: At top level:
   kernel/futex2.c:1106:38: error: expected ')' before 'struct'
    1106 | COMPAT_SYSCALL_DEFINE6(futex_requeue, struct compat_futex_requeue __user *, uaddr1,
         |                                      ^~~~~~~
         |                                      )
   kernel/futex2.c:1085:12: warning: 'compat_futex_parse_requeue' defined but not used [-Wunused-function]
    1085 | static int compat_futex_parse_requeue(struct futex_requeue *rq,
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~~
   kernel/futex2.c:722:12: warning: 'compat_futex_parse_waitv' defined but not used [-Wunused-function]
     722 | static int compat_futex_parse_waitv(struct futex_waiter_head *futexv,
         |            ^~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +1089 kernel/futex2.c

  1083	
  1084	#ifdef CONFIG_COMPAT
  1085	static int compat_futex_parse_requeue(struct futex_requeue *rq,
> 1086					      struct compat_futex_requeue __user *uaddr,
  1087					      bool *shared)
  1088	{
> 1089		struct compat_futex_requeue tmp;
  1090	
  1091		if (copy_from_user(&tmp, uaddr, sizeof(tmp)))
  1092			return -EFAULT;
  1093	
  1094		if (tmp.flags & ~FUTEXV_WAITER_MASK ||
  1095		    (tmp.flags & FUTEX_SIZE_MASK) != FUTEX_32)
  1096			return -EINVAL;
  1097	
  1098		*shared = (tmp.flags & FUTEX_SHARED_FLAG) ? true : false;
  1099	
  1100		rq->uaddr = compat_ptr(tmp.uaddr);
  1101		rq->flags = tmp.flags;
  1102	
  1103		return 0;
  1104	}
  1105	

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

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-04 23:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-04 23:37 [zen:5.15/futex2 4/8] kernel/futex2.c:1089:37: error: storage size of 'tmp' isn't known kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.