--- zzzz-none-000/linux-3.10.107/include/net/scm.h 2017-06-27 09:49:32.000000000 +0000 +++ vr9-7490-729/linux-3.10.107/include/net/scm.h 2021-11-10 11:53:56.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 */ @@ -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)