From 3f2449436b08a45c123deefb05016418835a4e31 Mon Sep 17 00:00:00 2001 From: Fugang Duan Date: Tue, 20 Nov 2012 11:47:25 +0800 Subject: [PATCH] ENGR00234236 1588: fix kernel build warning Warning: no return statement in function returning non-void. fec_ptp_ioctl return zero when 1588 is not enable. Signed-off-by: Fugang Duan --- drivers/net/fec_1588.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/fec_1588.h b/drivers/net/fec_1588.h index bd3565ac5194..9daf9de61cda 100644 --- a/drivers/net/fec_1588.h +++ b/drivers/net/fec_1588.h @@ -217,7 +217,10 @@ static inline void fec_ptp_store_rxstamp(struct fec_ptp_private *priv, struct sk_buff *skb, struct bufdesc *bdp) {} static inline int fec_ptp_ioctl(struct fec_ptp_private *priv, - struct ifreq *ifr, int cmd) {} + struct ifreq *ifr, int cmd) +{ + return 0; +} #endif /* 1588 */ -- 2.39.5