Commit ac1ac459 authored by Jesper Juhl's avatar Jesper Juhl Committed by David S. Miller

[SCTP]: Fix static inline declarations.

Was using 'inline static int' for some strange reason.
GCC now complains about this so...
Signed-off-by: default avatarJesped Juhl <juhl-lkml@dif.dk>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5f67c328
...@@ -607,14 +607,14 @@ struct sctp6_sock { ...@@ -607,14 +607,14 @@ struct sctp6_sock {
/* Is a socket of this style? */ /* Is a socket of this style? */
#define sctp_style(sk, style) __sctp_style((sk), (SCTP_SOCKET_##style)) #define sctp_style(sk, style) __sctp_style((sk), (SCTP_SOCKET_##style))
int static inline __sctp_style(const struct sock *sk, sctp_socket_type_t style) static inline int __sctp_style(const struct sock *sk, sctp_socket_type_t style)
{ {
return sctp_sk(sk)->type == style; return sctp_sk(sk)->type == style;
} }
/* Is the association in this state? */ /* Is the association in this state? */
#define sctp_state(asoc, state) __sctp_state((asoc), (SCTP_STATE_##state)) #define sctp_state(asoc, state) __sctp_state((asoc), (SCTP_STATE_##state))
int static inline __sctp_state(const struct sctp_association *asoc, static inline int __sctp_state(const struct sctp_association *asoc,
sctp_state_t state) sctp_state_t state)
{ {
return asoc->state == state; return asoc->state == state;
...@@ -622,7 +622,7 @@ int static inline __sctp_state(const struct sctp_association *asoc, ...@@ -622,7 +622,7 @@ int static inline __sctp_state(const struct sctp_association *asoc,
/* Is the socket in this state? */ /* Is the socket in this state? */
#define sctp_sstate(sk, state) __sctp_sstate((sk), (SCTP_SS_##state)) #define sctp_sstate(sk, state) __sctp_sstate((sk), (SCTP_SS_##state))
int static inline __sctp_sstate(const struct sock *sk, sctp_sock_state_t state) static inline int __sctp_sstate(const struct sock *sk, sctp_sock_state_t state)
{ {
return sk->sk_state == state; return sk->sk_state == state;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment