netlabel: add missing inline to stub
Subsystems (3)
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.
Signed-off-by Stephen Hemminger <[email protected]>
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 ; }
Paul Moore
maintainerQuoted 4 lines · Stephen Hemminger
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 <[email protected]>
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