]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/sctp/sm_make_chunk.c
net: replace uses of __constant_{endian}
[net-next-2.6.git] / net / sctp / sm_make_chunk.c
index fd8acb48c3f2827f069c36b8ef01e0fd34f14349..b40e95f9851b243870f2c1306c730ee7ff72e215 100644 (file)
@@ -100,11 +100,11 @@ int sctp_chunk_iif(const struct sctp_chunk *chunk)
  */
 static const struct sctp_paramhdr ecap_param = {
        SCTP_PARAM_ECN_CAPABLE,
-       __constant_htons(sizeof(struct sctp_paramhdr)),
+       cpu_to_be16(sizeof(struct sctp_paramhdr)),
 };
 static const struct sctp_paramhdr prsctp_param = {
        SCTP_PARAM_FWD_TSN_SUPPORT,
-       __constant_htons(sizeof(struct sctp_paramhdr)),
+       cpu_to_be16(sizeof(struct sctp_paramhdr)),
 };
 
 /* A helper to initialize to initialize an op error inside a