]> git.baikalelectronics.ru Git - kernel.git/commit
net: ice: ptp: fix compilation warning if PTP_1588_CLOCK is disabled
authorLorenzo Bianconi <lorenzo@kernel.org>
Tue, 15 Jun 2021 14:14:12 +0000 (16:14 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 17 Jun 2021 16:24:49 +0000 (09:24 -0700)
commit1d53fec1b497064c692a36a69854b64807018316
treec6afa8eb33b3beaa163095a34e639755fa47f2e8
parentbe25f4ecd5c7f7606a2aa5426db869e27a6302f4
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: af3f04b49ed3f ("ice: enable transmit timestamps for E810 devices")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_ptp.h