]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
net: ptp: Add stub for ptp_classify_raw()
authorAndrew Lunn <andrew@lunn.ch>
Wed, 14 Feb 2018 00:07:42 +0000 (01:07 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Feb 2018 19:33:36 +0000 (14:33 -0500)
When NET_PTP_CLASSIFY is disabled, a stub function is required in
order that the drivers compile.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/ptp_classify.h

index a079656b614cd725519249961b16fac739b8a888..0592420306312a6803a6d4e0cd9de6f2ad6912d9 100644 (file)
@@ -75,5 +75,9 @@ void __init ptp_classifier_init(void);
 static inline void ptp_classifier_init(void)
 {
 }
+static inline unsigned int ptp_classify_raw(struct sk_buff *skb)
+{
+       return PTP_CLASS_NONE;
+}
 #endif
 #endif /* _PTP_CLASSIFY_H_ */