linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: ben.dooks@codethink.co.uk
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-kernel@lists.codethink.co.uk
Subject: Re: [PATCH] net: fixup address-space warnings in compat_mc_{get,set}sockopt()
Date: Sun, 03 Mar 2019 20:58:46 -0800 (PST)	[thread overview]
Message-ID: <20190303.205846.1228922880232983914.davem@davemloft.net> (raw)
In-Reply-To: <20190301183944.6260-1-ben.dooks@codethink.co.uk>

From: Ben Dooks <ben.dooks@codethink.co.uk>
Date: Fri,  1 Mar 2019 18:39:44 +0000

> Add __user attributes in some of the casts in this function to avoid
> the following sparse warnings:
> 
> net/compat.c:592:57: warning: cast removes address space of expression
> net/compat.c:592:57: warning: incorrect type in initializer (different address spaces)
> net/compat.c:592:57:    expected struct compat_group_req [noderef] <asn:1>*gr32
> net/compat.c:592:57:    got void *<noident>
> net/compat.c:613:65: warning: cast removes address space of expression
> net/compat.c:613:65: warning: incorrect type in initializer (different address spaces)
> net/compat.c:613:65:    expected struct compat_group_source_req [noderef] <asn:1>*gsr32
> net/compat.c:613:65:    got void *<noident>
> net/compat.c:634:60: warning: cast removes address space of expression
> net/compat.c:634:60: warning: incorrect type in initializer (different address spaces)
> net/compat.c:634:60:    expected struct compat_group_filter [noderef] <asn:1>*gf32
> net/compat.c:634:60:    got void *<noident>
> net/compat.c:672:52: warning: cast removes address space of expression
> net/compat.c:672:52: warning: incorrect type in initializer (different address spaces)
> net/compat.c:672:52:    expected struct compat_group_filter [noderef] <asn:1>*gf32
> net/compat.c:672:52:    got void *<noident>
> 
> Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>

Applied to net-next, thanks.

      reply	other threads:[~2019-03-04  4:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-01 18:39 [PATCH] net: fixup address-space warnings in compat_mc_{get,set}sockopt() Ben Dooks
2019-03-04  4:58 ` David Miller [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=20190303.205846.1228922880232983914.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=ben.dooks@codethink.co.uk \
    --cc=linux-kernel@lists.codethink.co.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).