From: Yangbo Lu Date: Sun, 27 Sep 2020 08:01:50 +0000 (+0800) Subject: ptp: add stub function for ptp_get_msgtype() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e622129569963fa3bab976685443756e5da70da9;p=linux.git 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 Signed-off-by: Yangbo Lu Acked-by: Randy Dunlap # build-tested Signed-off-by: David S. Miller --- diff --git a/include/linux/ptp_classify.h b/include/linux/ptp_classify.h index 8437307cca8cd..c6487b7ab026f 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_ */