Skip to contentSkip to conversation

netlabel: add missing inline to stub

PATCH In review Stephen Hemminger 2 participants 2 messages Aug 11, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 netlabel: add missing inline to stub

This stub like all the nearby stubs should be inline. This fixes a sparse warning about defined but never used.

include/net/netlabel.h +4 -4
@@ -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;
 }
maintainer
#1 lore raw
Quoted 4 lines · Stephen Hemminger

This stub like all the nearby stubs should be inline. This fixes a sparse warning about defined but never used.

FYI, the same patch was sent to Linus last week.

Quoted 17 lines
include/net/netlabel.h +4 -4
@@ -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;
 }
Signature · 2 lines
paul moore
www.paul-moore.com