Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp4059180rwb; Sun, 9 Oct 2022 17:02:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6eah3eKVgYoGJasfav9OIxwHHY1Z0Xs4HM7IW0cxo5I4C5eFd2dELou6ojXCDthetq/yuv X-Received: by 2002:a17:90b:23c5:b0:20b:1cb4:2ca9 with SMTP id md5-20020a17090b23c500b0020b1cb42ca9mr19632597pjb.139.1665360176503; Sun, 09 Oct 2022 17:02:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665360176; cv=none; d=google.com; s=arc-20160816; b=UWj9qU2VqMzadU7bgXVs8gsmzPCW5BN1zRPoJ+NCrk68+yJ9VjYVf3+lK/gB2ZtdEM S3mlbMNTfuNE1zVemVlAg13LaASTPQg7SAE5jBePpn7Ux6folrRd8Q1ouub8ErrCM/2e Ivgn0F40QJf7mk+bRZrutKLgdk5z7uP3ErRoqHtVoTBbpSTtxPzCbus3EAPgwX1RDpXK fRVHLfVcAVRZ416uQi3o3uLFn+KIiqTxDrV7JcekZD44kPAiijxLA/NiHZVVk2FINCqp 8RUrG/CELBPdSlgUZODECx9m3jLM5tbnCJBwoipGWKYxqfTLPUuujlNvCHeeaMr6Mcr8 VULQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=aZnAOm7OYa2JDBo+hX6nV42YV35mgp1tfAfXfKs5vts=; b=LZg1dUloqw4vUCpvUjDXpHOMKczR5v8mE5NA5ZOhGTVsYyNIfHO5jqrn7CclumAHw8 xoPbTCeNrg+aH5wtaGiKjwFRsQ7oN2PSf0946uCfD81EonAeqVTE7jrTKnznc+YQ+Ei9 REtaWPEyjDDpLtm0eEuPPH11CahrDC4hxOmdksp/pUlrp1ij8SpkN32prsuDeezv9wja m1CLDeraIeU/G4HMTrFZPCzj0rCw9ZjOiEOhSSifoDjMqijLjt2h0O86pWz4dKgUB+jV lAJzM9tAmzXdxkGmJxDfs6Pc7PVRk6wRXLddU1QAQGJ8fUNF1+aw0a6xjS6I9HfHssVS pArQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XJjXmWeh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pf16-20020a17090b1d9000b0020d4590814esi1524966pjb.87.2022.10.09.17.02.34; Sun, 09 Oct 2022 17:02:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XJjXmWeh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231731AbiJIWXL (ORCPT + 99 others); Sun, 9 Oct 2022 18:23:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231523AbiJIWWW (ORCPT ); Sun, 9 Oct 2022 18:22:22 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3261DC20; Sun, 9 Oct 2022 15:17:27 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 1F3FBB80DD2; Sun, 9 Oct 2022 22:10:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DF312C433D6; Sun, 9 Oct 2022 22:10:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665353448; bh=E1F+wTxUctKlO50lFhxjS45ZVUAfVVMgWA23Evn7SwY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XJjXmWehMGYu8zqjAQysNEcUxp3sQHkM6XoRW41jIACYK0djoQV3S7vvkJeKtF3Wp YYr3DkjYyKEr4bH9Lhr3L2ZJtqjsvxr2QYXn9f5AhnZq27DBvm92estu1Xm94CEMH9 M8403/qMheGAoiKzy/r1xS3Lb2YkkOhsJo9ohCFHigjJmpEWi32g71Qp7bb7EG+j+4 KcS7YZjRY1rcdzxlqvCCyx7V6thFXdSx82KQuNSIalngdpUzGVH7G8o+fauypZ/WL9 Qvbrj/5Np+5ZFSWulnEikkbRz5ZdazPMkONJ0CnG3qf281UGCb5zBcNkGTmadooTbG H1jAcQSr3Snlw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Casper Andersson , Dan Carpenter , Andrew Lunn , Paolo Abeni , Sasha Levin , davem@davemloft.net, edumazet@google.com, kuba@kernel.org, lars.povlsen@microchip.com, Steen.Hegelund@microchip.com, daniel.machon@microchip.com, UNGLinuxDriver@microchip.com, horatiu.vultur@microchip.com, nhuck@google.com, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH AUTOSEL 6.0 36/77] net: sparx5: fix function return type to match actual type Date: Sun, 9 Oct 2022 18:07:13 -0400 Message-Id: <20221009220754.1214186-36-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221009220754.1214186-1-sashal@kernel.org> References: <20221009220754.1214186-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Casper Andersson [ Upstream commit 75554fe00f941c3c3d9344e88708093a14d2b4b8 ] Function returns error integer, not bool. Does not have any impact on functionality. Reported-by: Dan Carpenter Signed-off-by: Casper Andersson Reviewed-by: Andrew Lunn Link: https://lore.kernel.org/r/20220906065815.3856323-1-casper.casan@gmail.com Signed-off-by: Paolo Abeni Signed-off-by: Sasha Levin --- drivers/net/ethernet/microchip/sparx5/sparx5_mactable.c | 4 ++-- drivers/net/ethernet/microchip/sparx5/sparx5_main.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/microchip/sparx5/sparx5_mactable.c b/drivers/net/ethernet/microchip/sparx5/sparx5_mactable.c index a5837dbe0c7e..4af285918ea2 100644 --- a/drivers/net/ethernet/microchip/sparx5/sparx5_mactable.c +++ b/drivers/net/ethernet/microchip/sparx5/sparx5_mactable.c @@ -186,8 +186,8 @@ bool sparx5_mact_getnext(struct sparx5 *sparx5, return ret == 0; } -bool sparx5_mact_find(struct sparx5 *sparx5, - const unsigned char mac[ETH_ALEN], u16 vid, u32 *pcfg2) +int sparx5_mact_find(struct sparx5 *sparx5, + const unsigned char mac[ETH_ALEN], u16 vid, u32 *pcfg2) { int ret; u32 cfg2; diff --git a/drivers/net/ethernet/microchip/sparx5/sparx5_main.h b/drivers/net/ethernet/microchip/sparx5/sparx5_main.h index b197129044b5..d071ac3b7106 100644 --- a/drivers/net/ethernet/microchip/sparx5/sparx5_main.h +++ b/drivers/net/ethernet/microchip/sparx5/sparx5_main.h @@ -307,8 +307,8 @@ int sparx5_mact_learn(struct sparx5 *sparx5, int port, const unsigned char mac[ETH_ALEN], u16 vid); bool sparx5_mact_getnext(struct sparx5 *sparx5, unsigned char mac[ETH_ALEN], u16 *vid, u32 *pcfg2); -bool sparx5_mact_find(struct sparx5 *sparx5, - const unsigned char mac[ETH_ALEN], u16 vid, u32 *pcfg2); +int sparx5_mact_find(struct sparx5 *sparx5, + const unsigned char mac[ETH_ALEN], u16 vid, u32 *pcfg2); int sparx5_mact_forget(struct sparx5 *sparx5, const unsigned char mac[ETH_ALEN], u16 vid); int sparx5_add_mact_entry(struct sparx5 *sparx5, -- 2.35.1