Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3136002imw; Wed, 6 Jul 2022 18:31:22 -0700 (PDT) X-Google-Smtp-Source: AGRyM1si1Z6EYEKaDq/9rCduDDp2xowx2fhF5TPsfCktqfC4TefrtMiDJsqUDLnHM4XezZZcz8AB X-Received: by 2002:a17:90b:3ec3:b0:1ee:6b0a:91ef with SMTP id rm3-20020a17090b3ec300b001ee6b0a91efmr1951951pjb.117.1657157482259; Wed, 06 Jul 2022 18:31:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657157482; cv=none; d=google.com; s=arc-20160816; b=Qvo23eshTSAIMUm9wlN/JEHdRwR0LUdjvZr51AgyPuhc/rbBTsqK/qImFVBi98/zJ7 qoKTZFtpqPe7Y88ymu9o5fZNciDJW/hI8qycDhcqWV60JzYal0GDlmpZuIoGJjfyVOcz WGwmwK3mSodNGUrQ0s3dCFkJQZZoAjsspiOyEn3TcskGbmi3ue+MmjCD6FL/9Ac0png/ 5EpFAANg9dQopnLQG2GJzqfLGLHWH3fSQgkz61mzpHbBkrXSdYQOnCRSW/Znrcewp0XT bMaHaEey65f0V1J4W+KkfCVyof1BJ/MTAHpTfDkqnewkd4Tj+EKaP7NdM2zuO6auwh1J uNng== 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:subject:cc:to:from:date :dkim-signature; bh=86JC46r6uYjKsmzz3Q4IwNd9jtrT1GwSpITEWzYaHoU=; b=yAbmuX01sJxdH6rFI/P7N9H7X8zgLoq8/677M9rJLTN3Dh6gBizAgJob7lhWaapbOa PQTnSE3Judhax3Uj52ZtuDBOcx1o9SjBRmLLQOtmfcFz6mba6Tjv50C6InRGYIVJ33Om 36V+cg3qFhv+w7I1amy5hgZfjRcbNTd2D8mOJde6ZlPDITPGcogRVWGA0ERrue4FQogK XJyy0yrCzjGWyAoQOxfoOl4uMCNgRji8sDlwVarzbQcqdliBdsayO41coCA7+pIK6r7i nD6ThUgwhL0bIxS5DT00BiFaEeEATURqrBRirBvBqqhMK75womYa8Ip8Oqnh4AJLIZGS i17g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rKkIfyY2; 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 j13-20020a17090a7e8d00b001df47daf815si24998621pjl.141.2022.07.06.18.31.08; Wed, 06 Jul 2022 18:31:22 -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=rKkIfyY2; 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 S234613AbiGGBY5 (ORCPT + 99 others); Wed, 6 Jul 2022 21:24:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234644AbiGGBYy (ORCPT ); Wed, 6 Jul 2022 21:24:54 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3025E2E9C9; Wed, 6 Jul 2022 18:24:51 -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 sin.source.kernel.org (Postfix) with ESMTPS id 5BE78CE21A8; Thu, 7 Jul 2022 01:24:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3F51EC3411C; Thu, 7 Jul 2022 01:24:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657157087; bh=YYAxmusy0ct4ZG1Il9AiODxjUliPdi0KcxWfM7ZIj9A=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=rKkIfyY2nmywCAejQPjJWLtkESEdus9zb2+gkl0u5I5FfHYXf+PUyrHhFeb1XysbQ /m88UnyyuUbHdiEonql8LrsoiIZPYNbWGsyJqzQ0l+EYkFf4z9zmMF1QC2jIfzWYxb QaZJnmKscHKs5n023MiBPlJpu/exjc6VrmsNsf4Rk6Arzf22NQr0AGllAWwlAm4xKc BUR6vC513L9k01PWZ3oZySiydOpNHUxsC/MhXhVascuKWvC3wWlMywsoFY7EPjJl5v Ae0IC1y54yBniuyYF/eUd3HsMHRnxogreSlYF6YEiQurARxIY/tp2i5ImHcxsXAGmH JXXH0p/7X6wsg== Date: Wed, 6 Jul 2022 18:24:46 -0700 From: Jakub Kicinski To: Ratheesh Kannoth Cc: , , , , , , , kernel test robot Subject: Re: [PATCH] octeontx2-af: Fix compiler warnings. Message-ID: <20220706182446.2fb0e78d@kernel.org> In-Reply-To: <20220706130241.2452196-1-rkannoth@marvell.com> References: <20220706130241.2452196-1-rkannoth@marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.8 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,T_SCC_BODY_TEXT_LINE 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 On Wed, 6 Jul 2022 18:32:41 +0530 Ratheesh Kannoth wrote: > drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c:388:5: warning: = no previous prototype for 'rvu_exact_calculate_hash' [-Wmissing-prototypes] > 388 | u32 rvu_exact_calculate_hash(struct rvu *rvu, u16 chan, u16 ctype, = u8 *mac, > | ^~~~~~~~~~~~~~~~~~~~~~~~ > drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c: In function 'rv= u_npc_exact_get_drop_rule_info': > >> drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c:1080:14: warn= ing: variable 'rc' set but not used [-Wunused-but-set-variable] =20 > 1080 | bool rc; > | ^~ > drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c: At top level: > drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c:1248:5: warning:= no previous prototype for 'rvu_npc_exact_add_table_entry' [-Wmissing-proto= types] > 1248 | int rvu_npc_exact_add_table_entry(struct rvu *rvu, u8 cgx_id, u8 l= mac_id, u8 *mac, > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c: In function 'rv= u_npc_exact_add_table_entry': > drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c:1254:33: warning= : variable 'table' set but not used [-Wunused-but-set-variable] > 1254 | struct npc_exact_table *table; > | ^~~~~ > drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c: At top level: > drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c:1320:5: warning:= no previous prototype for 'rvu_npc_exact_update_table_entry' [-Wmissing-pr= ototypes] > 1320 | int rvu_npc_exact_update_table_entry(struct rvu *rvu, u8 cgx_id, u= 8 lmac_id, > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ There are also these warnings not fixed by the follow up: In file included from ../drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_= fs.c:14: ../drivers/net/ethernet/marvell/octeontx2/af/npc_profile.h:15120:28: error:= =E2=80=98npc_mkex_default=E2=80=99 defined but not used [-Werror=3Dunused-= variable] 15120 | static struct npc_mcam_kex npc_mkex_default =3D { | ^~~~~~~~~~~~~~~~ ../drivers/net/ethernet/marvell/octeontx2/af/npc_profile.h:15000:30: error:= =E2=80=98npc_lt_defaults=E2=80=99 defined but not used [-Werror=3Dunused-v= ariable] 15000 | static struct npc_lt_def_cfg npc_lt_defaults =3D { | ^~~~~~~~~~~~~~~ ../drivers/net/ethernet/marvell/octeontx2/af/npc_profile.h:14901:31: error:= =E2=80=98npc_kpu_profiles=E2=80=99 defined but not used [-Werror=3Dunused-= variable] 14901 | static struct npc_kpu_profile npc_kpu_profiles[] =3D { | ^~~~~~~~~~~~~~~~ ../drivers/net/ethernet/marvell/octeontx2/af/npc_profile.h:483:38: error: = =E2=80=98ikpu_action_entries=E2=80=99 defined but not used [-Werror=3Dunuse= d-variable] 483 | static struct npc_kpu_profile_action ikpu_action_entries[] =3D { | ^~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors Annoyingly kernel defaults to -Werror now so they break the build for me, and I'm not immediately sure how to fix those for you. So I think I'll revert the v2 and you can repost v3 as if v2 wasn't applied. SG?