laforge submitted this change.

View Change


Approvals: Jenkins Builder: Verified pespin: Looks good to me, but someone else must approve pablo: Looks good to me, approved
include/linux/gtp.h: fix GTPA_MAX

Apply same fix as done by Pablo in linux.git:
> Subtract one to __GTPA_MAX, otherwise GTPA_MAX is off by 2

Change-Id: I42a358fc795d0e593e2c5509dcfa6ffdbad3cbfa
---
M include/linux/gtp.h
1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/include/linux/gtp.h b/include/linux/gtp.h
index c525cb3..5d37b1c 100644
--- a/include/linux/gtp.h
+++ b/include/linux/gtp.h
@@ -28,6 +28,6 @@
GTPA_PAD,
__GTPA_MAX,
};
-#define GTPA_MAX (__GTPA_MAX + 1)
+#define GTPA_MAX (__GTPA_MAX - 1)

#endif /* _UAPI_LINUX_GTP_H_ */

To view, visit change 34828. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: libgtpnl
Gerrit-Branch: master
Gerrit-Change-Id: I42a358fc795d0e593e2c5509dcfa6ffdbad3cbfa
Gerrit-Change-Number: 34828
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge@osmocom.org>
Gerrit-Reviewer: pablo <pablo@gnumonks.org>
Gerrit-Reviewer: pespin <pespin@sysmocom.de>
Gerrit-MessageType: merged