From patchwork Tue Jun 15 14:14:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "lorenzo@kernel.org" X-Patchwork-Id: 12321957 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 75355C48BE5 for ; Tue, 15 Jun 2021 14:15:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5F403613DA for ; Tue, 15 Jun 2021 14:15:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231193AbhFOORb (ORCPT ); Tue, 15 Jun 2021 10:17:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:44564 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231535AbhFOOQV (ORCPT ); Tue, 15 Jun 2021 10:16:21 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 493926140B; Tue, 15 Jun 2021 14:14:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623766457; bh=DU7+2tE+20fTRy5uTfgHapES/QrTudbXvjgI8inUDDA=; h=From:To:Cc:Subject:Date:From; b=oV3kgriqXLz8QZrqlxY1hSQ2QoOamREkuHF8BN+LZ7YjWChUqTzfEafWPZQj87y1p DWpMZgv0ymi9yvhCgvFFuKxt9Nh50bqhytigSytlIFM7vbtuXLakH//ceiFwUSPtpb DihLcz0CProKHz+qEhkk4t6QdpcmOcIeiNR1GMfcCDAnDGtgVDQZuQoHJ0fbkbP1hh Q7OrNRNHF1Yu2jVbcfOL1FBAl1jVi0XcSH1GYfj7WopjJiuY72qucPqB24XG8C3ntC 7oDur62Q887D/KF8LkO24+kfwE4S4vzX4yW9yH9cpo+nM1CwV/OQLafgwPYDwNFtvY cAUFRXcX2jY/Q== From: Lorenzo Bianconi To: netdev@vger.kernel.org Cc: lorenzo.bianconi@redhat.com, jacob.e.keller@intel.com Subject: [PATCH net-next] net: ice: ptp: fix compilation warning if PTP_1588_CLOCK is disabled Date: Tue, 15 Jun 2021 16:14:12 +0200 Message-Id: X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org 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 --- drivers/net/ethernet/intel/ice/ice_ptp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/ice/ice_ptp.h b/drivers/net/ethernet/intel/ice/ice_ptp.h index 41e14f98f0e6..d01507eba036 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;