diff options
| author | Andrew Lunn <andrew@lunn.ch> | 2018-02-13 19:07:42 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2018-02-14 14:33:36 -0500 |
| commit | 052fddfb3c4e5f3d413d3f6b8dffe1b7192026af (patch) | |
| tree | d62de920e3744f564ac9bffaf00f3f9d90e9e707 /include/linux/ptp_classify.h | |
| parent | e0f9759f530bf789e984961dce79f525b151ecf3 (diff) | |
net: ptp: Add stub for ptp_classify_raw()
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>
Diffstat (limited to 'include/linux/ptp_classify.h')
| -rw-r--r-- | include/linux/ptp_classify.h | 4 |
1 files changed, 4 insertions, 0 deletions
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); | |||
| 75 | static inline void ptp_classifier_init(void) | 75 | static inline void ptp_classifier_init(void) |
| 76 | { | 76 | { |
| 77 | } | 77 | } |
| 78 | static inline unsigned int ptp_classify_raw(struct sk_buff *skb) | ||
| 79 | { | ||
| 80 | return PTP_CLASS_NONE; | ||
| 81 | } | ||
| 78 | #endif | 82 | #endif |
| 79 | #endif /* _PTP_CLASSIFY_H_ */ | 83 | #endif /* _PTP_CLASSIFY_H_ */ |
