aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYangbo Lu <yangbo.lu@nxp.com>2020-09-27 16:01:50 +0800
committerDavid S. Miller <davem@davemloft.net>2020-09-27 13:29:49 -0700
commite622129569963fa3bab976685443756e5da70da9 (patch)
tree5146c4f2b9f242af57cf34059a5d2e4ec646d491
parentnet: marvell: mvpp2: Fix W=1 warning with !CONFIG_ACPI (diff)
downloadlinux-dev-e622129569963fa3bab976685443756e5da70da9.tar.xz
linux-dev-e622129569963fa3bab976685443756e5da70da9.zip
ptp: add stub function for ptp_get_msgtype()
Added the missing stub function for ptp_get_msgtype(). Fixes: 036c508ba95e ("ptp: Add generic ptp message type function") Reported-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com> Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--include/linux/ptp_classify.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/ptp_classify.h b/include/linux/ptp_classify.h
index 8437307cca8c..c6487b7ab026 100644
--- a/include/linux/ptp_classify.h
+++ b/include/linux/ptp_classify.h
@@ -134,5 +134,13 @@ static inline struct ptp_header *ptp_parse_header(struct sk_buff *skb,
{
return NULL;
}
+static inline u8 ptp_get_msgtype(const struct ptp_header *hdr,
+ unsigned int type)
+{
+ /* The return is meaningless. The stub function would not be
+ * executed since no available header from ptp_parse_header.
+ */
+ return 0;
+}
#endif
#endif /* _PTP_CLASSIFY_H_ */