On 2018-09-14 11:59, Willem de Bruijn wrote:
From: Willem de Bruijn <will...@google.com>

With configurable gro, the flags field in net_offloads may be changed.

Remove the const keyword. This is a noop otherwise.

Signed-off-by: Willem de Bruijn <will...@google.com>
diff --git a/net/sctp/offload.c b/net/sctp/offload.c
index 123e9f2dc226..ad504b83245d 100644
--- a/net/sctp/offload.c
+++ b/net/sctp/offload.c
@@ -90,7 +90,7 @@ static struct sk_buff *sctp_gso_segment(struct sk_buff
*skb,
        return segs;
 }

-static const struct net_offload sctp_offload = {
+static struct net_offload sctp_offload = {
        .callbacks = {
                .gso_segment = sctp_gso_segment,
        },

Hi Willem

sctp6 also needs to be deconstified.

diff --git a/net/sctp/offload.c b/net/sctp/offload.c
index ad504b8..4be7794 100644
--- a/net/sctp/offload.c
+++ b/net/sctp/offload.c
@@ -96,7 +96,7 @@ static struct sk_buff *sctp_gso_segment(struct sk_buff *skb,
        },
 };

-static const struct net_offload sctp6_offload = {
+static struct net_offload sctp6_offload = {
        .callbacks = {
                .gso_segment = sctp_gso_segment,
        },


--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project

Reply via email to