Received: by 10.192.165.148 with SMTP id m20csp4760469imm; Tue, 24 Apr 2018 08:01:51 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqQ3VOnLJMUYlBgUfMeSdwIUlU1YFP4s7epgYOLQvw4xLBIxRol5SuwXJ2yI4kPVpCExwTs X-Received: by 2002:a17:902:bc08:: with SMTP id n8-v6mr1886441pls.97.1524582111724; Tue, 24 Apr 2018 08:01:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524582111; cv=none; d=google.com; s=arc-20160816; b=tqppIjZgY5MYIpKdBpNEMvubayxDlaCM1FiX6ZiaNEl0EHoRlu2ttGEWu8g3YiDAAU gVB3TYWau3LC3q8g+K7JDEu63HMJK4i8GyY4UF13M0Xuk0ya8XYTacyhENCXEhzH6IFY jkJPQ7KaMqtbp6Qo1X8K7lGSN2YutBKIVX0lkfi8lyrTrW0OtLsJqovIv926yyfNrHxf KxfOeLmsTUcz3vK1XkVwYO4cDT+JzwL7pJ3sEXF9beB3dI4glH9D96XH0lKG3SfoxYL2 SChEMm72IslQD+JHPGuGcE+jDRD5LX1hVGymCyKkRPWziYr2PYunEzg/ivhWrHSL17hi G2/Q== 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=TpeZBYuL6qKWmB7FLZ9gj56cEWuDg65HsdC5dw4BKeY=; b=qKSsI2NdhG3+pSKrspa+3w1egnPgFXHqHNw1f8m1GVponzW/YyiFKeRLc0bhraurw/ FRKObsxxBW1m/RPMQS3SOXUGseN0iof0Jb3Z73TRlJiY5ubYiSMZpaETlDMFTqoRnZ5P ZNXRH4zEnSEmIj5pJkhMjAndDjeFi8vDXGEzYwm7FBGB+97iD2Sn9F9JEImfHfTQn0qT a30FqsygxLMY2uCnOCiTWwGrLnDm2aZhIG1FwZOBQ1kd7tWVYOtgHvf1D3HrlJoKIUsG QoTOQJ2/Ee9GO4HOA6eanRVficmssSbiUZNMjbLRlkZFMWx5lHTiWJnLQDtyNQ8sRy1h 7XAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ntf77BB9; 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 h16-v6si4661944pli.493.2018.04.24.08.01.36; Tue, 24 Apr 2018 08:01:51 -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=ntf77BB9; 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 S934523AbeDXNl7 (ORCPT + 99 others); Tue, 24 Apr 2018 09:41:59 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:51146 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933763AbeDXNQ7 (ORCPT ); Tue, 24 Apr 2018 09:16:59 -0400 Received: by mail-wm0-f67.google.com with SMTP id t67so906941wmt.0; Tue, 24 Apr 2018 06:16:58 -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=TpeZBYuL6qKWmB7FLZ9gj56cEWuDg65HsdC5dw4BKeY=; b=ntf77BB9IbDGH+XqpVLqCQvSKxc1QJPM0wMk3dVhuADV/SBCbXVWxz87FO9/BEiiY+ JTMRq5PLR+ZTpwH7t3tvCdi1EKIxCYtw8H4Hy2NwGLW75SLTQjBxNBDFCmN/GdmytyFb 7La8tMM4pLlvipqiTTfL2IoOmJtjU6hwqDxwNsswZPypcXVw6Tn04C1pW7zWeJddOFEm IC0WM7+3akAd9LVfmns2tqJGd31SZk356dMWlcpLZUZ3SO54GefJA9mtvkwtLBKIslsb cbKwZFnpBngalUDRMoY15R5i5XsnuVd78PKPq16dulpcBP+mBWV9j+Z85safiXcwZI5c IOZQ== 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=TpeZBYuL6qKWmB7FLZ9gj56cEWuDg65HsdC5dw4BKeY=; b=GjObNV5o+09TOxu46TWQE4XXRulaqE65x4BM8kCYSLZHw8CzHogclOdAPw5h6zS99d RjfQgR0Th8Vny+jW+KP9lcit9WLFh1PW35wOZ4Ta8X5qO45Z2JEr8sarlUnFwVLivtCk VwaOwyxSBVI4aTaiyhmFZPJx7ITiwMghQbSmsuP0SF+s2JyG+rKu1wFUidZgKQx7iBcy npEOwfoIK5MRAAxVmohwcL5JcJPkLC6cwg68s1fA5eu2M06dasvqmPpZTg/K/ZZS0S0l pFAN1+/9/dBJIiXfDhWvWNjsWTYFyis1i0vCZLfrFrj8akG7VGbQqVrJB9fKgTjybpml pjHQ== X-Gm-Message-State: ALQs6tDkLgJWfmeHVNJjb7pobfjEx6pifQWlzBZZnB3ysU+ulHVt1dcH OVQhmzWcFFo3qZcSDIyHu5cuSBHt/Uw= X-Received: by 10.80.228.8 with SMTP id d8mr33306063edm.82.1524575817803; Tue, 24 Apr 2018 06:16:57 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40e7:cd00:5113:f351:d61c:108c]) by smtp.gmail.com with ESMTPSA id p5sm8195176edh.7.2018.04.24.06.16.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:16:57 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck , "David S. Miller" , Antoine Tenart , Thomas Petazzoni , Maxime Chevallier , Yan Markman , Stefan Chulski , Miquel Raynal , Marcin Wojtas , netdev@vger.kernel.org Subject: [PATCH] net: mvpp2: fix mvpp2_tx()'s return type Date: Tue, 24 Apr 2018 15:16:53 +0200 Message-Id: <20180424131656.4054-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/net/ethernet/marvell/mvpp2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/marvell/mvpp2.c b/drivers/net/ethernet/marvell/mvpp2.c index 54a038943..355910345 100644 --- a/drivers/net/ethernet/marvell/mvpp2.c +++ b/drivers/net/ethernet/marvell/mvpp2.c @@ -6926,7 +6926,7 @@ static int mvpp2_tx_tso(struct sk_buff *skb, struct net_device *dev, } /* Main tx processing */ -static int mvpp2_tx(struct sk_buff *skb, struct net_device *dev) +static netdev_tx_t mvpp2_tx(struct sk_buff *skb, struct net_device *dev) { struct mvpp2_port *port = netdev_priv(dev); struct mvpp2_tx_queue *txq, *aggr_txq; -- 2.17.0