linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 8450/10945] include/linux/eventpoll.h:81:13: sparse: sparse: cast from restricted __poll_t
@ 2021-08-28 10:57 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-08-28 10:57 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: kbuild-all, Linux Memory Management List, Russell King (Oracle)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   5e63226c72287bc6c6724d4fc7e157af0e3d7908
commit: 249dbe74d3c4b568a623fb55c56cddf19fdf0b89 [8450/10945] ARM: 9108/1: oabi-compat: rework epoll_wait/epoll_pwait emulation
config: alpha-allmodconfig (attached as .config)
compiler: alpha-linux-gcc (GCC) 11.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.3-348-gf0e6938b-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=249dbe74d3c4b568a623fb55c56cddf19fdf0b89
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 249dbe74d3c4b568a623fb55c56cddf19fdf0b89
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=alpha SHELL=/bin/bash

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


sparse warnings: (new ones prefixed by >>)
   fs/eventpoll.c: note: in included file:
>> include/linux/eventpoll.h:81:13: sparse: sparse: cast from restricted __poll_t
>> include/linux/eventpoll.h:81:13: sparse: sparse: cast from restricted __poll_t

vim +81 include/linux/eventpoll.h

    70	
    71	#if defined(CONFIG_ARM) && defined(CONFIG_OABI_COMPAT)
    72	/* ARM OABI has an incompatible struct layout and needs a special handler */
    73	extern struct epoll_event __user *
    74	epoll_put_uevent(__poll_t revents, __u64 data,
    75			 struct epoll_event __user *uevent);
    76	#else
    77	static inline struct epoll_event __user *
    78	epoll_put_uevent(__poll_t revents, __u64 data,
    79			 struct epoll_event __user *uevent)
    80	{
  > 81		if (__put_user(revents, &uevent->events) ||
    82		    __put_user(data, &uevent->data))
    83			return NULL;
    84	
    85		return uevent+1;
    86	}
    87	#endif
    88	

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

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

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

only message in thread, other threads:[~2021-08-28 10:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-28 10:57 [linux-next:master 8450/10945] include/linux/eventpoll.h:81:13: sparse: sparse: cast from restricted __poll_t kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox