From: Paul Moore <paul@paul-moore.com>
To: Stephen Hemminger <stephen@networkplumber.org>
Cc: David Miller <davem@davemloft.net>, netdev@vger.kernel.org
Subject: Re: [PATCH net-next] netlabel: add missing inline to stub
Date: Mon, 11 Aug 2014 11:27:15 -0400 [thread overview]
Message-ID: <1516624.TGbEHg5hL8@sifl> (raw)
In-Reply-To: <20140811082235.15c800ae@haswell.linuxnetplumber.net>
On Monday, August 11, 2014 08:22:35 AM Stephen Hemminger wrote:
> This stub like all the nearby stubs should be inline.
> This fixes a sparse warning about defined but never used.
>
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
FYI, the same patch was sent to Linus last week.
> --- a/include/net/netlabel.h 2014-08-09 08:39:57.704179307 -0700
> +++ b/include/net/netlabel.h 2014-08-11 07:54:01.058097452 -0700
> @@ -524,10 +524,10 @@ static inline int netlbl_catmap_setrng(s
> {
> return 0;
> }
> -static int netlbl_catmap_setlong(struct netlbl_lsm_catmap **catmap,
> - u32 offset,
> - unsigned long bitmap,
> - gfp_t flags)
> +static inline int netlbl_catmap_setlong(struct netlbl_lsm_catmap **catmap,
> + u32 offset,
> + unsigned long bitmap,
> + gfp_t flags)
> {
> return 0;
> }
--
paul moore
www.paul-moore.com
prev parent reply other threads:[~2014-08-11 15:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-11 15:22 [PATCH net-next] netlabel: add missing inline to stub Stephen Hemminger
2014-08-11 15:27 ` Paul Moore [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=1516624.TGbEHg5hL8@sifl \
--to=paul@paul-moore.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=stephen@networkplumber.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