Re: [RFC PATCH 01/10] net: ptp: Add stub for ptp_classify_raw()

2018-02-04 Thread Sergei Shtylyov

Hello!

On 2/4/2018 12:40 AM, Andrew Lunn wrote:


When NET_PTP_CLASSIFY is disabled, a stub function is required in
order that drivers compile.


   s/that/the/?



Signed-off-by: Andrew Lunn 
Acked-by: Richard Cochran 

[...]

MBR, Sergei


[RFC PATCH 01/10] net: ptp: Add stub for ptp_classify_raw()

2018-02-03 Thread Andrew Lunn
When NET_PTP_CLASSIFY is disabled, a stub function is required in
order that drivers compile.

Signed-off-by: Andrew Lunn 
Acked-by: Richard Cochran 
---
 include/linux/ptp_classify.h | 4 
 1 file changed, 4 insertions(+)

diff --git a/include/linux/ptp_classify.h b/include/linux/ptp_classify.h
index a079656b614c..059242030631 100644
--- a/include/linux/ptp_classify.h
+++ b/include/linux/ptp_classify.h
@@ -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_ */
-- 
2.15.1