Commit e6221295 authored by Yangbo Lu's avatar Yangbo Lu Committed by David S. Miller
Browse files

ptp: add stub function for ptp_get_msgtype()



Added the missing stub function for ptp_get_msgtype().

Fixes: 036c508b ("ptp: Add generic ptp message type function")
Reported-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Signed-off-by: default avatarYangbo Lu <yangbo.lu@nxp.com>
Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 36563ce6
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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_ */