Message ID | 20220613032922.1030739-1-aahringo@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [wpan-next,1/2] 6lowpan: nhc: more constify api | expand |
Context | Check | Description |
---|---|---|
tedd_an/pre-ci_am | fail | error: patch failed: net/6lowpan/nhc.h:66 error: net/6lowpan/nhc.h: patch does not apply hint: Use 'git am --show-current-patch' to see the failed patch |
This is an automated email and please do not reply to this email. Dear Submitter, Thank you for submitting the patches to the linux bluetooth mailing list. While preparing the CI tests, the patches you submitted couldn't be applied to the current HEAD of the repository. ----- Output ----- error: patch failed: net/6lowpan/nhc.h:66 error: net/6lowpan/nhc.h: patch does not apply hint: Use 'git am --show-current-patch' to see the failed patch Please resolve the issue and submit the patches again. --- Regards, Linux Bluetooth
diff --git a/net/6lowpan/nhc.h b/net/6lowpan/nhc.h index ab7b4977c32b..4ba6b2ffcb47 100644 --- a/net/6lowpan/nhc.h +++ b/net/6lowpan/nhc.h @@ -66,6 +66,7 @@ struct lowpan_nhc { int (*uncompress)(struct sk_buff *skb, size_t needed); int (*compress)(struct sk_buff *skb, u8 **hc_ptr); + }; /** @@ -73,7 +74,7 @@ struct lowpan_nhc { * * @nexthdr: ipv6 nexthdr value. */ -struct lowpan_nhc *lowpan_nhc_by_nexthdr(u8 nexthdr); +const struct lowpan_nhc *lowpan_nhc_by_nexthdr(u8 nexthdr); /** * lowpan_nhc_check_compression - checks if we support compression format. If
This patch adds an const to the return of lowpan_nhc_by_nexthdr(), as we never modify nhcs. Signed-off-by: Alexander Aring <aahringo@redhat.com> --- net/6lowpan/nhc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)