From: Lorenzo Bianconi Date: Tue, 15 Jun 2021 14:14:12 +0000 (+0200) Subject: net: ice: ptp: fix compilation warning if PTP_1588_CLOCK is disabled X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=4d7f75fe8006a1345e6a52b3e3a4c82633f20564;p=linux.git net: ice: ptp: fix compilation warning if PTP_1588_CLOCK is disabled Fix the following compilation warning if PTP_1588_CLOCK is not enabled drivers/net/ethernet/intel/ice/ice_ptp.h:149:1: error: return type defaults to ‘int’ [-Werror=return-type] ice_ptp_request_ts(struct ice_ptp_tx *tx, struct sk_buff *skb) Fixes: ea9b847cda647 ("ice: enable transmit timestamps for E810 devices") Signed-off-by: Lorenzo Bianconi Reviewed-by: Jacob Keller Signed-off-by: Tony Nguyen --- diff --git a/drivers/net/ethernet/intel/ice/ice_ptp.h b/drivers/net/ethernet/intel/ice/ice_ptp.h index 41e14f98f0e66..d01507eba0364 100644 --- a/drivers/net/ethernet/intel/ice/ice_ptp.h +++ b/drivers/net/ethernet/intel/ice/ice_ptp.h @@ -145,7 +145,7 @@ static inline int ice_get_ptp_clock_index(struct ice_pf *pf) return -1; } -static inline +static inline s8 ice_ptp_request_ts(struct ice_ptp_tx *tx, struct sk_buff *skb) { return -1;