Thread (2 messages) 2 messages, 2 authors, 2015-10-27

Re: [input:master 1384/1384] drivers/input/evdev.c:719:7: warning: passing argument 1 of 'copy_from_user' discards 'const' qualifier from pointer target type

From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Date: 2015-10-27 02:09:08

On Tue, Oct 27, 2015 at 09:52:20AM +0800, kbuild test robot wrote:
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git master
head:   86f77bf98fdd07cd7e9b65014c5f8d8d233b3449
commit: 86f77bf98fdd07cd7e9b65014c5f8d8d233b3449 [1384/1384] Input: evdev - add event-mask API
config: sparc64-allyesconfig (attached as .config)
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 86f77bf98fdd07cd7e9b65014c5f8d8d233b3449
        # save the attached .config to linux build tree
        make.cross ARCH=sparc64 

All warnings (new ones prefixed by >>):

   drivers/input/evdev.c: In function 'bits_from_user':
quoted
quoted
drivers/input/evdev.c:719:7: warning: passing argument 1 of 'copy_from_user' discards 'const' qualifier from pointer target type
      if (copy_from_user(p, bits, len))
          ^
   In file included from arch/sparc/include/asm/uaccess.h:4:0,
                    from include/linux/poll.h:11,
                    from drivers/input/evdev.c:18:
   arch/sparc/include/asm/uaccess_64.h:251:1: note: expected 'void *' but argument is of type 'const void *'
    copy_from_user(void *to, const void __user *from, unsigned long size)
    ^
Should be fixed now.

Thanks.

-- 
Dmitry
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help