* [PATCH net-next] netlabel: add missing inline to stub
@ 2014-08-11 15:22 Stephen Hemminger
2014-08-11 15:27 ` Paul Moore
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2014-08-11 15:22 UTC (permalink / raw)
To: David Miller, Paul Moore; +Cc: netdev
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>
--- 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;
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] netlabel: add missing inline to stub
2014-08-11 15:22 [PATCH net-next] netlabel: add missing inline to stub Stephen Hemminger
@ 2014-08-11 15:27 ` Paul Moore
0 siblings, 0 replies; 2+ messages in thread
From: Paul Moore @ 2014-08-11 15:27 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: David Miller, netdev
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-08-11 15:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-11 15:22 [PATCH net-next] netlabel: add missing inline to stub Stephen Hemminger
2014-08-11 15:27 ` Paul Moore
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox