Bladeren bron

[SECURITY]: Fix build with CONFIG_SECURITY disabled.

include/linux/security.h: In function ‘security_release_secctx’:
include/linux/security.h:2757: warning: ‘return’ with a value, in function returning void

Signed-off-by: David S. Miller <davem@davemloft.net>
David S. Miller 19 jaren geleden
bovenliggende
commit
95ce568812
1 gewijzigde bestanden met toevoegingen van 0 en 1 verwijderingen
  1. 0 1
      include/linux/security.h

+ 0 - 1
include/linux/security.h

@@ -2754,7 +2754,6 @@ static inline int security_secid_to_secctx(u32 secid, char **secdata, u32 *secle
 
 static inline void security_release_secctx(char *secdata, u32 seclen)
 {
-	return -EOPNOTSUPP;
 }
 #endif	/* CONFIG_SECURITY */