From patchwork Sat Apr 30 23:23:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 12833457 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A4C86C433EF for ; Sat, 30 Apr 2022 23:23:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237425AbiD3X1J (ORCPT ); Sat, 30 Apr 2022 19:27:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235981AbiD3X1H (ORCPT ); Sat, 30 Apr 2022 19:27:07 -0400 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2139.outbound.protection.outlook.com [40.107.94.139]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8ED835A5A9; Sat, 30 Apr 2022 16:23:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ChppgH1c6/aDTYosTI5BO8xYHm2+eQbd9dxrYyi45VhGfTZCci/gzrZJwjAK9X3QYx33jmRx8fflaik9m39Jhy7g5UM1PlTKSxLnDJJS9JFls8CIH+4jsM+REh1WKj2/Fds/P5RRpaihHxhtZOS95TlSF/2GIk6FVoUvLnuz2f9HU+vuZ4hFDvlXLnHMNpLzoAL4HTlIeMZ3zR1AareE1SFxCv9aSb2IoGAcRv5SZKemmugU7DDC3zBGTcQifKecYbyFebXmyF1V4bPp3F2DwDOEsgpiYQVG5Ol8+5i9U+fLeV4X9FMfrH5eyIvLZ9QgJ5jic/p68MOiB1FVgbyd4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=rv6mp8Bc8j3OcCG1Vhav2ztXukXsNuqM+0Ixh2vapB8=; b=BaEUQg91Q6mw++AM7ytc2QKMvtFun4XPnGOTFC4dJxrs1ZmM31AU+zLDtswX+JHaCwpWdi4vm5AiLT0esSP0dIMpKeMVAQOs4f1l8/mfnw2ElF7XL0/qjSLBYiM+fuPd8CFzsKmI1JlOwvwlE/llOJ6W1DFVhkypU1h6EGG/8agr3x1/fsZHCpSyVR3Q4sCxNh2hQxRxNoJQ6d2b9EiRcpVj4e3/fn4rawjERiUZ/eszgjqJiL08u67X/uwXxs4Al7WMt6a/YpDCxNS9ymkpAomxJaePpfkCXKCjwIyNR9Fvqr8PG3+UqCf3DmQ2z2PhlCtKhSttNgyE1uPy3bbEoA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=in-advantage.com; dmarc=pass action=none header.from=in-advantage.com; dkim=pass header.d=in-advantage.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inadvantage.onmicrosoft.com; s=selector2-inadvantage-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rv6mp8Bc8j3OcCG1Vhav2ztXukXsNuqM+0Ixh2vapB8=; b=gAf/uvbYD3eGNqJuXliUnNefHfqmipM5QJVQiRq+5rybwmgQ+32kjY8ZjwVaw9t8cipS7ngZGwAsfKa9wirmk+U38MI5/RekMV/hTpjYBXsZOvL6962acG4CuyVA9gkad/0ySsjhexlEmTFh7FFMJSR5ex2c2NEL3BNNNmBLwAY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=in-advantage.com; Received: from MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) by CO1PR10MB4802.namprd10.prod.outlook.com (2603:10b6:303:94::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.15; Sat, 30 Apr 2022 23:23:43 +0000 Received: from MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::4581:787c:1a7a:873e]) by MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::4581:787c:1a7a:873e%3]) with mapi id 15.20.5186.028; Sat, 30 Apr 2022 23:23:42 +0000 From: Colin Foster To: linux-kernel@vger.kernel.org, netdev@vger.kernel.org Cc: "David S. Miller" , UNGLinuxDriver@microchip.com, Alexandre Belloni , Claudiu Manoil , Vladimir Oltean Subject: [PATCH v1 net-next 1/2] net: mscc: ocelot: remove unnecessary variable Date: Sat, 30 Apr 2022 16:23:26 -0700 Message-Id: <20220430232327.4091825-2-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220430232327.4091825-1-colin.foster@in-advantage.com> References: <20220430232327.4091825-1-colin.foster@in-advantage.com> X-ClientProxiedBy: SJ0PR13CA0199.namprd13.prod.outlook.com (2603:10b6:a03:2c3::24) To MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1fffa59d-82c0-45f4-f77c-08da2b00770c X-MS-TrafficTypeDiagnostic: CO1PR10MB4802:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xTJTx/C55GW6yYiJVVWJXfWs3KPddgglyrNK2cZVdVUU42ypNqIOM/ZWFJYisSX/5c6MkT4I3qFAu87QJw+attJ0X6ewAL0u7BLV3MLkaKF619iCJcHNjq20ezRi9/DSTQX4MCQrz8ZZmCnmswl21jQoKOOAYydmKhxWw580ZFyq4OmeF9gHBkxsXZ7r4GDYoUPGqtDJLeLyd55KJkCEWT2eCNx5vha46l8aRWOM/bRCVB9wH9uHAtmjcTJaHHsWSCPk1wWD+sQek+GMkwwDYTyOqZhhOdtcDSrmuvGmGygQEJtz4bhlke4DXQmY2l2rnrxR6PuKS3KeAOD2p8tj0kQ9l+/yuJHKJVRGHiDH77WQaDtJmCM172Qxal12RPp+uQYfEil2LW04c1XPPTnw9cq1dqLHCqkuIh0fKAtudSwIhcRlR2/1zwqj06VgCAGV8daf9xKU/B+u2ntMvp2h6FNDHNFNgzqB4OOTvSl2QzCE1cdUb2G9V8gCvFLjAmsTi+pq+f1Oem5yvz4FYHmouhzVLCtWaHYeTmq8GfWtauypbbC7tvOuKI3xcejEebNCL3zY4JVKIYO/R8YojyEkUdQu7cKjPZXVAjt0G/PF9e9isvkFYE0EiWjsxMVhAU3hKAP2tU56Ng1cSZXJIECpZiAUb7gKlz5LlHpVJc48jP3WPTWCN0WcbIHMHB9+AATMrs8QkiIB7w1r4JTzPh3vYg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1001MB2351.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(376002)(366004)(39830400003)(136003)(396003)(346002)(52116002)(6506007)(186003)(6512007)(6666004)(26005)(1076003)(2616005)(2906002)(83380400001)(5660300002)(44832011)(8936002)(54906003)(508600001)(6486002)(66946007)(316002)(66476007)(66556008)(8676002)(4326008)(38100700002)(38350700002)(36756003)(86362001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: z+znDWBthrPM3dXh7zg7TvICLIWnUq8hOETdE6dPMj8NutH58z+mXmXh7ABLA/ungDm6jQ01AeTAY4c33fA6je2fjjG4MQ6lxQluDQYvFtCI363ceuDj2XATQ/6C5tcjRhNX4xRmo4fB+K/L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e+XtNGslLZUwIuTbNzCNH7NTFaPAiakClMzmTmQ03eKgWvthvjdGEokwvKVas7Tvb3Kw+vivL2cfBgoQGjBJb8ujFiIaK9IZhh8iF8W/UPNWK+Kn0PBjsryvk1jE6vZxwui3Jyfwm7+M4GqwfaByRBA2XpUfKyiMJ0ZUzDuMtRT9cIrfh8HCw+emd+Y+O11cPem2aj1fN0Rj9CmyYpD7w+Z5mivqF0Slt7yMkcA357o8wNTdgfVis3aUMBZ/C8SJZ/5jfrfhCmICOmtUgaS7NMBCa3ZtpW4fKj4aTmm1CwVvbBkoagpZs9+q5UQBJiqyDKNGZHRnHrT1KXUpt6nWdJMxJoIwRJ/4zVtx08TlXQr6AiwCXhStrV/Uby+98cwDCFRNS8Unh0J0sBGYPb82RLbb2Zux2mtfrSqU2I+2GxXcz35yWzbNxDFUKgjfljH4/fLKBLxRz7Pwk+zPBgJcL5iRkxn0fDm+Ly2xFg1pJKwl7KVDLhnVUW+BlWJmOhtPm0WQIRxOCgPqs5tKTtQkIGnXJmqeItrEoBQ X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1fffa59d-82c0-45f4-f77c-08da2b00770c X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Apr 2022 23:23:42.5866 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 48e842ca-fbd8-4633-a79d-0c955a7d3aae X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 6Box67vcXGUiW3srEO9D3qjnzkHutK/hNg3eT2q7suviZWh2RJWMnPN5elEcpyhiRb19FORTQXCC7gTU/ahmens8NSDY4Zev3jJo6O2ShJ8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR10MB4802 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Commit 2f187bfa6f35 ("net: ethernet: ocelot: remove the need for num_stats initializer") added a flags field to the ocelot stats structure. The same behavior can be achieved without this additional field taking up extra memory. Remove this structure element to free up RAM Suggested-by: Vladimir Oltean Signed-off-by: Colin Foster Reviewed-by: Vladimir Oltean Tested-by: Vladimir Oltean --- include/soc/mscc/ocelot.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/include/soc/mscc/ocelot.h b/include/soc/mscc/ocelot.h index 5c4f57cfa785..75739766244b 100644 --- a/include/soc/mscc/ocelot.h +++ b/include/soc/mscc/ocelot.h @@ -105,11 +105,9 @@ #define REG_RESERVED_ADDR 0xffffffff #define REG_RESERVED(reg) REG(reg, REG_RESERVED_ADDR) -#define OCELOT_STAT_FLAG_END BIT(0) - #define for_each_stat(ocelot, stat) \ for ((stat) = ocelot->stats_layout; \ - !((stat)->flags & OCELOT_STAT_FLAG_END); \ + ((stat)->name[0] != '\0'); \ (stat)++) enum ocelot_target { @@ -542,11 +540,10 @@ enum ocelot_ptp_pins { struct ocelot_stat_layout { u32 offset; - u32 flags; char name[ETH_GSTRING_LEN]; }; -#define OCELOT_STAT_END { .flags = OCELOT_STAT_FLAG_END } +#define OCELOT_STAT_END { .name = "" } struct ocelot_stats_region { struct list_head node; From patchwork Sat Apr 30 23:23:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 12833458 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AE44AC433FE for ; Sat, 30 Apr 2022 23:23:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350072AbiD3X1O (ORCPT ); Sat, 30 Apr 2022 19:27:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236888AbiD3X1I (ORCPT ); Sat, 30 Apr 2022 19:27:08 -0400 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2139.outbound.protection.outlook.com [40.107.94.139]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A9E75A5AB; Sat, 30 Apr 2022 16:23:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cIf5tU1QMKsYF6+l+53dkBG8Z5pQ9ZpyumVUDggr7UcA4rQPl7BLAg9OBYZ3WbBwZRJZ2x2rF+ikM2CuUlFSi2ecg84EKXQwOlamOozfLddnmCD0EQcZbh8uuqjWVfmqoxBCu4vqffX9QfckHpMYbS1EzPrql0Nmm+P3QsUQB9P11/Kz9mgb2rVcuJafEhn8Re75wtZFK0MVvArIxTIZJWYJVYQROH4G8MGpkRr3qcEgfqLRISdfCK5uj1T63bnmc8ZUZNSDBfSsh5zWvCIbn76MuDV0yS4X6+jWREyRP37PUS2Fwi5q0AaW3PspL9ftxTcCdB+/VqSxVqkDVMKh8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=rNE20eo539DYAwdI+jGz8HOacVv8mcmkq+YxnzzvE/g=; b=J5jzvnOG94jHYgrqKJu+Y4VUnlFap/l1GRlgmNvYIGCEGptHB2WkeXbTYfGny72D3C28vzZvsjp91HKoQBVhk6vbu7A30ECgxgkHTqf4tyjYla6qIwZ/sMbUyofYxraEeIzvj2Z8bPZB/huDpu3gwSMb45jsk6r2wUOVX27p6VvJwTpBhQA66SKlhBQb2E9Z4IN8/c49Tos2VH0Lkep1qEeRyvDImVahfWmVlDbn3ER8AKZK1zxSunjiw+cSrl3l7odj+74iMe0co24xDFbkhIBF0j9kesGD0oPOcg0B8/TYho7wRzw8hpUDZdz8e6JDKNcxfTgYTjx3356MYthLOg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=in-advantage.com; dmarc=pass action=none header.from=in-advantage.com; dkim=pass header.d=in-advantage.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inadvantage.onmicrosoft.com; s=selector2-inadvantage-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rNE20eo539DYAwdI+jGz8HOacVv8mcmkq+YxnzzvE/g=; b=UvP9AF72H1ml83RGNYtsT9wHYcGEoLoVFb9KcRL8ZNCaZtBFxGsfaitIQekGwRtiQLoRXvPf4/v4gnKIwMoyy5aBp/pLoe/PkeTzr7BxF2xU0Tiw3IzwjJ0hcnsMKBEfRlYbzeA3UjomLkYwQx2EQB1jO9hixkuB57ZdljX1mAc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=in-advantage.com; Received: from MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) by CO1PR10MB4802.namprd10.prod.outlook.com (2603:10b6:303:94::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.15; Sat, 30 Apr 2022 23:23:43 +0000 Received: from MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::4581:787c:1a7a:873e]) by MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::4581:787c:1a7a:873e%3]) with mapi id 15.20.5186.028; Sat, 30 Apr 2022 23:23:43 +0000 From: Colin Foster To: linux-kernel@vger.kernel.org, netdev@vger.kernel.org Cc: "David S. Miller" , UNGLinuxDriver@microchip.com, Alexandre Belloni , Claudiu Manoil , Vladimir Oltean Subject: [PATCH v1 net-next 2/2] net: mscc: ocelot: add missed parentheses around macro argument Date: Sat, 30 Apr 2022 16:23:27 -0700 Message-Id: <20220430232327.4091825-3-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220430232327.4091825-1-colin.foster@in-advantage.com> References: <20220430232327.4091825-1-colin.foster@in-advantage.com> X-ClientProxiedBy: SJ0PR13CA0199.namprd13.prod.outlook.com (2603:10b6:a03:2c3::24) To MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ace24e92-be1c-42f0-16c5-08da2b007790 X-MS-TrafficTypeDiagnostic: CO1PR10MB4802:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ngUJpYFAqf2vj96+p9zShV5upzWGFBtdyvSq5xxIBWR76sF/hYG3KHLf4BBwjY4nK+2/Neqg+/jvNpoixrlsDDQLTTGv1pfSmKeguVA5vgrXTWpqjV/pHL7s/lheAmGbhhv/4Ae6iRDuxkRM0qotZfuuWLx8GBwXOo4xbs3991BHSaqzRuhQ0QafnpOC6hcmxZdAZUe9rguq7Hf2a3lK8T98zfl0lFrEylDuSWnE4CJ4qoYygZRDvvJPYGSUnbcFuX1oJdIS+Qx8dMC0JUBaksu0fcSCOUe6bD8/baOcPLW6pRI1+iz9CbrawHOiH1RY+lbYMYsBRTL3dEt/tb1Dr+K5EskFx0hs/gz42TjGHcpUn99KplGObDA8b6mCPk/lvLjKzZuogX6o3BGvEhA8GTaBjmS7pytcaYGIOZ/RbLa2qGhtKhaLFEjiU0jxTAeq9Pk16I/bGUXk43CTVENE1IWNLxqWRjm4724DXiUil9Gf48tBiyZJ84mERztOO/d39UKSrIRIegch9m55ugAIY3+eNtOj7HWKgu3bkVPT0pB0pd6OiJClqc8LZ6QZUWOIezs/0DVnir2N9MZeYXwuI7ojKGtMZnPgYClprhDm4FqeHkvb7JX9AW6PV6wjkZF+XO6BrHSKw0hA5N1X9b+yAw9bH7C599Qf9D/IG1/Ww1zKl8IanECSjFQTLYV3ERJeiLkB3D/toP55eEA9qDNOLg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1001MB2351.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(376002)(366004)(39830400003)(136003)(396003)(346002)(52116002)(6506007)(186003)(6512007)(6666004)(26005)(1076003)(2616005)(2906002)(83380400001)(5660300002)(44832011)(4744005)(8936002)(54906003)(508600001)(6486002)(66946007)(316002)(66476007)(66556008)(8676002)(4326008)(38100700002)(38350700002)(36756003)(86362001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: b6G99KI1Y0JCSAxS5tvowpwZOrrKI0fUt+WtsE04znjGBadCaqKVmzKOXSq+xPaJ54j12OEqJhKQ40mHJwNyc4P0ZvkatJlZiiOAzjAw1GJrRQPclC65SJRnjoFQ+xSzYTQHQBtnarsXUOAwGCClTsRm3LjFrmK14yCVthWcYjHFDKzSYVoFlmblHikW/7SEjg7r8UwlriC+xg6z0nF2d7UDrYJCofmukUP/1dfr5D3nTR7h2A1n8xnd2EUdv6lL9H1mjvw4tl/DuKy1g0YLNoDV08QV9vM842A42PxvN5KCEpCLcfVLqEBWoQuOnOqEybZzsabhFzU0MnC0lVV8A3iowmSH6RzdtzDkWofpe3GBFUleb19Vz7cMEFhIcWzUUpfDVZKSozHsJbupUkmj+SWJu0kR1/SpNjvWTSErUNO4D1KHoZbVNu75sXWm7XE+cJQzdLD/Xz+sNZ70zV6Y4GXSqj/YUIttOACJg4vLMy9moQwsFXPGn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ZQOAZKLAdfQd55HkAsXONwWgrwVsmbYJt6vNdvNbqrW/vo8oJXSE8uLz4Vb+4lJVdsVGhsJZ/mXAydvaDHs2otaidu6bpuiHasKw+SiJXerbDF+qnzZYi57bY/7ePvvcMC9VxyIQlb18wh6Pqk44mKzWHcz8DDRXjT2nrmnpkPr0rVOWUcucZ0t2Z2RCg2vRtqb67QIpZKHb9jfm+q X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: ace24e92-be1c-42f0-16c5-08da2b007790 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Apr 2022 23:23:43.4459 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 48e842ca-fbd8-4633-a79d-0c955a7d3aae X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: pFEsW/Ulj6vMkzWf9tKDHwPTMKXz1S5VS3cx9HAYIm2OT3qCaIoH9pjeMfC94U1tZ9g6gkKJmoGDJnmxnsyN/2jUt9tfp/FddxOvucQaqsA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR10MB4802 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Commit 2f187bfa6f35 ("net: ethernet: ocelot: remove the need for num_stats initializer") added a macro that patchwork warned it lacked parentheses around an argument. Correct this mistake. Fixes: 2f187bfa6f35 ("net: ethernet: ocelot: remove the need for num_stats initializer") Signed-off-by: Colin Foster Reviewed-by: Vladimir Oltean Tested-by: Vladimir Oltean --- include/soc/mscc/ocelot.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/soc/mscc/ocelot.h b/include/soc/mscc/ocelot.h index 75739766244b..8d8d46778f7e 100644 --- a/include/soc/mscc/ocelot.h +++ b/include/soc/mscc/ocelot.h @@ -106,7 +106,7 @@ #define REG_RESERVED(reg) REG(reg, REG_RESERVED_ADDR) #define for_each_stat(ocelot, stat) \ - for ((stat) = ocelot->stats_layout; \ + for ((stat) = (ocelot)->stats_layout; \ ((stat)->name[0] != '\0'); \ (stat)++)