Received: by 10.192.165.148 with SMTP id m20csp4683103imm; Tue, 24 Apr 2018 06:52:21 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+7f2hoLuSbeI8DLnpXrgx4UQzCx4Qoacn2RyKi8AwwzAp0rahsYaM24EPY90R51nxiTrj2 X-Received: by 10.98.160.68 with SMTP id r65mr23505686pfe.235.1524577941321; Tue, 24 Apr 2018 06:52:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524577941; cv=none; d=google.com; s=arc-20160816; b=W6quxq73QEPgxkpswfoCWWq5eHX4iLjfcYRIPs0Z56FGABvgRVZvAoLFdJqWaeOnje D/LIXVpz9AMsjOyd9LC7OASl7/ImJUsGasev83CZhaWP9yJL6LL/Nbqzm9yUsKQ6Sd+3 tgATVZo9AKdNlXT6j20lBSvUXIzhQL7Gmo759bVXPuOa24k4P7zHrZOak5Li5aK6Te7z n19LIScMZIklcT9CWDbgz4qvi62DBERPY9dL+jP5WZl5I6jKveV7oOHpkE6YMMI4acQC JmFja0/z0rCWW5vxqizuDbLip8zIZhHcVpBQycmyNLenOedo5zQnR+ip8SmJDWq8Elb8 kGgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=L3suVSqVezrxMslsrbstdQAVA5FyuN/A0xtit/7uCh0=; b=wfOUu82px466xKErxZuGOaqoxR3RDKNHzO0bVftoAUJpR3K4jJkN18+XqBx1Xo9yoN ShxUORXbqrcL8TxDFnau4zyHC+TBt1gZMNolZTG2R5CwU6npavyS1OjqWrM9IvY1mIUq mnbBN+aPSNg3/ZbjzooHE+KP/of/R1cHiK3943nZqvbV8m8mM0N+EW1kApwpG+6Qihsm C6sVzFFj3Wv9X59mfd9n5mIh6wyixCEGs1mpJDWrBGToeuHd0rHgd40OKv4BSph1zkgA dSzfWx5XimiGMOy4SZVXjw/QbYVCIrI6tN6/HiiAoaAMCpLBCrJvp+6O9FgNdl29XSWF GmAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=THmw1lrw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l12si11720423pgr.518.2018.04.24.06.52.06; Tue, 24 Apr 2018 06:52:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=THmw1lrw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933644AbeDXNQQ (ORCPT + 99 others); Tue, 24 Apr 2018 09:16:16 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:56055 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933586AbeDXNQB (ORCPT ); Tue, 24 Apr 2018 09:16:01 -0400 Received: by mail-wm0-f65.google.com with SMTP id a8so899152wmg.5; Tue, 24 Apr 2018 06:16:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=L3suVSqVezrxMslsrbstdQAVA5FyuN/A0xtit/7uCh0=; b=THmw1lrwUdikV9m9ukRnPhc+NdxZMGWn8xAFIPyJYEbFgwbedONAd7ccpmEvtZx0kS U+GCOxRwCjI4Jze4sAJVwgMEoVKvh0bkjtAWZKQ2Wz/XPfx6bX7gAzOUC9PX/FiKp6Qc D+WL/Tu1wEyn9jLjFhL8HmEP4sztwyi9NNlzDAGhFcr41jmQCbBNHKWST0OENEpAiG9J gareyhmuGISqaqK12MuYbvpz/iRhEnYx9ILl31IevizHv+arwAPYWsW6JxnbdZpM3AWv Rb9s9PnGakgyxVosMySba/cffIvqSxlg5wh1LZOPY4//iNYGw3mQpZxc2Mpj/SO9TGug zSmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=L3suVSqVezrxMslsrbstdQAVA5FyuN/A0xtit/7uCh0=; b=cGVlqmQAUKnVDAmClMp2woHqArZRsw35wbhO+WsSo7e15jPtXHYs6/IeyCdKomXlTr 0PD4PQ+fkjfRvjnyqfr6lZm67fXlk4t02WDR+mvVTTMGWagAlt+53tM2iDPR6ie2gypJ wpddLB0kRD/8sPTn+tjA9AhVU/PmE/M03lZ3d+X8SzDKNDeRdL6O/NjeMxKmeLth3rru dh+LOZqRr9ti6T59Q/45lXWWBf+idd2sAsGoXRfLcE2d1Hj1qQj8t+Ofm60d0uTGKMLC f3zI/4G7mvsFvF/aT7PuYE5wqJwTnk4vpVwOMAIMRGJPhcYZRUrWPQ/n8RcThRerP/TE 4uhw== X-Gm-Message-State: ALQs6tAFVGMq+zl8d+uG9v38Zko9N0Did8yw/XUYkLt9bVguqr2azfbp bDL1W+btpOoWMxaMTII23DJVozrIeTQ= X-Received: by 10.80.175.2 with SMTP id g2mr33345434edd.84.1524575759691; Tue, 24 Apr 2018 06:15:59 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40e7:cd00:5113:f351:d61c:108c]) by smtp.gmail.com with ESMTPSA id s9sm9203522edc.85.2018.04.24.06.15.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:15:59 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck , Sathya Prakash , Chaitra P B , Suganath Prabu Subramani , MPT-FusionLinux.pdl@broadcom.com, linux-scsi@vger.kernel.org Subject: [PATCH] mptlan: fix mpt_lan_sdu_send()'s return type Date: Tue, 24 Apr 2018 15:15:58 +0200 Message-Id: <20180424131558.3010-1-luc.vanoostenryck@gmail.com> X-Mailer: git-send-email 2.17.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The method ndo_start_xmit() is defined as returning an 'netdev_tx_t', which is a typedef for an enum type, but the implementation in this driver returns an 'int'. Fix this by returning 'netdev_tx_t' in this driver too. Signed-off-by: Luc Van Oostenryck --- drivers/message/fusion/mptlan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/message/fusion/mptlan.c b/drivers/message/fusion/mptlan.c index 55dd71bbd..4cbed4d06 100644 --- a/drivers/message/fusion/mptlan.c +++ b/drivers/message/fusion/mptlan.c @@ -670,7 +670,7 @@ mpt_lan_send_reply(struct net_device *dev, LANSendReply_t *pSendRep) } /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ -static int +static netdev_tx_t mpt_lan_sdu_send (struct sk_buff *skb, struct net_device *dev) { struct mpt_lan_priv *priv = netdev_priv(dev); -- 2.17.0