--- zzzz-none-000/linux-4.1.38/include/net/scm.h 2017-01-18 18:48:06.000000000 +0000 +++ bcm63-7582-715/linux-4.1.38/include/net/scm.h 2020-11-25 10:06:48.000000000 +0000 @@ -46,7 +46,7 @@ security_socket_getpeersec_dgram(sock, NULL, &scm->secid); } #else -static __inline__ void unix_get_peersec_dgram(struct socket *sock, struct scm_cookie *scm) +static __inline__ void unix_get_peersec_dgram(struct socket *sock __maybe_unused, struct scm_cookie *scm __maybe_unused) { } #endif /* CONFIG_SECURITY_NETWORK */ @@ -73,7 +73,7 @@ } static __inline__ int scm_send(struct socket *sock, struct msghdr *msg, - struct scm_cookie *scm, bool forcecreds) + struct scm_cookie *scm, bool forcecreds __maybe_unused) { memset(scm, 0, sizeof(*scm)); scm->creds.uid = INVALID_UID; @@ -103,12 +103,13 @@ } } #else -static inline void scm_passec(struct socket *sock, struct msghdr *msg, struct scm_cookie *scm) +static inline void scm_passec(struct socket *sock __maybe_unused, struct msghdr *msg __maybe_unused, struct scm_cookie *scm __maybe_unused) { } #endif /* CONFIG_SECURITY_NETWORK */ static __inline__ void scm_recv(struct socket *sock, struct msghdr *msg, - struct scm_cookie *scm, int flags) + struct scm_cookie *scm, + int flags __maybe_unused) { if (!msg->msg_control) { if (test_bit(SOCK_PASSCRED, &sock->flags) || scm->fp)