From patchwork Tue Apr 24 13:15:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luc Van Oostenryck X-Patchwork-Id: 10360015 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E93A1601D3 for ; Tue, 24 Apr 2018 13:52:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D9BAC28E5C for ; Tue, 24 Apr 2018 13:52:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D776028E5F; Tue, 24 Apr 2018 13:52:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 99F0728E64 for ; Tue, 24 Apr 2018 13:52:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933597AbeDXNQF (ORCPT ); Tue, 24 Apr 2018 09:16:05 -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-Google-Smtp-Source: AIpwx4+28vbXNBpbB9iJc0aL9RJEgvM+HE9sK8gdBq1lv8gz0d0k/rIJmWy+SjPkOU0hmIBbQJG4SQ== 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-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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);