[PATCH net-next] netlabel: add missing inline to stub

STALE4379d

2 messages, 2 authors, 2014-08-11 · open the first message on its own page

[PATCH net-next] netlabel: add missing inline to stub

From: Stephen Hemminger <stephen@networkplumber.org>
Date: 2014-08-11 15:22:40

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;
 }

Re: [PATCH net-next] netlabel: add missing inline to stub

From: Paul Moore <paul@paul-moore.com>
Date: 2014-08-11 15:27:19

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.
quoted hunk
--- 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help