diff --git a/include/linux/ptp_classify.h b/include/linux/ptp_classify.h index 8437307cca8cddca0d2bb7fc7d14683f289e1040..c6487b7ab026f6e9dea348929587bf33ddf4b8fa 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_ */