All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: kbuild test robot <fengguang.wu@intel.com>
Cc: David Herrmann <dh.herrmann@gmail.com>,
	kbuild-all@01.org, linux-input@vger.kernel.org
Subject: 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
Date: Mon, 26 Oct 2015 19:08:58 -0700	[thread overview]
Message-ID: <20151027020858.GA15536@localhost> (raw)
In-Reply-To: <201510270918.x4rKus8w%fengguang.wu@intel.com>

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':
> >> 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

      reply	other threads:[~2015-10-27  2:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-27  1:52 [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 kbuild test robot
2015-10-27  2:08 ` Dmitry Torokhov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151027020858.GA15536@localhost \
    --to=dmitry.torokhov@gmail.com \
    --cc=dh.herrmann@gmail.com \
    --cc=fengguang.wu@intel.com \
    --cc=kbuild-all@01.org \
    --cc=linux-input@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.