Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp171258iob; Mon, 2 May 2022 16:12:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9JerJsicKpdMkEqgqwSwb52fjZAghzzZDLb/h/RlhMfHGmnJG9wu8z3rKiUpy9SWoD1d6 X-Received: by 2002:a17:90b:2311:b0:1d9:2e43:c7ae with SMTP id mt17-20020a17090b231100b001d92e43c7aemr1600630pjb.47.1651533159424; Mon, 02 May 2022 16:12:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1651533159; cv=pass; d=google.com; s=arc-20160816; b=gEicRjHuwK4ceyUCv3rBC0SFmgDPP9s7kyx0BrK6XFzUm2OHxju73bAMKYT6EJVVNH W6udVdB/UVy+3pUVPpUOama1OGhZMJGCSjVzlFei9/DZIGabnzh4Hg4qdpigcULGE1+a BNe4hljv58f4WJmzdi8fBvvR5CQgIphsr7+fya9OYxtj5uuGN5QYwhFJqkA9pWB2V4vY N7EDIwY1QgrulQq7Gxx2Lg/xzUfJu1bgI6HOzWgR/mSrcSXrZWiyuXf7j+xXfPRUX0Fy BC1uapWOroSnL96xUru6ZsS8eG+KAfFsObpsZP8K362/ln+WqolScMJNXkbqvtEQt6LW ooFw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=eN02WzS31QTwevn7g/w180OsGJPKU4kHUSaNahaVfTc=; b=y98ieAJD8SzWRXjg01ri2gp6Bc5YANPDW+2QWFQQNReUNugD3knwNb8aFe9ouS1FAA hD+G/usdFOSt0E9wJeiu14DZINwnnqnv2ARpFbCzbJwPDL2Gs1z2Ef7X6kp7CLSzaPDa 3TtQ7WjPoqWILgGxaQRVAXcBD1464c48JRXiqf9OSXLKODMoB4Ba+5v/EahakYAtMvPJ sw9GxJ+eyVY43vWgTrhNK8ieT0iXaErIbzUDa6KE4Ax8txxkeIZBF29FhYZzrt/tva0a WcUX57ROp3XTdWGvflvpagId0VSfl7hy0HFCYxEKl1VmImV6DW4+lK4KpouvTYCtm2O6 Tlmw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@inadvantage.onmicrosoft.com header.s=selector2-inadvantage-onmicrosoft-com header.b=csHEcd81; arc=pass (i=1 spf=pass spfdomain=in-advantage.com dkim=pass dkdomain=in-advantage.com dmarc=pass fromdomain=in-advantage.com); spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=in-advantage.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id s4-20020a170902a50400b0015cf359df8dsi13977231plq.258.2022.05.02.16.12.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 16:12:39 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@inadvantage.onmicrosoft.com header.s=selector2-inadvantage-onmicrosoft-com header.b=csHEcd81; arc=pass (i=1 spf=pass spfdomain=in-advantage.com dkim=pass dkdomain=in-advantage.com dmarc=pass fromdomain=in-advantage.com); spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=in-advantage.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 198762F384; Mon, 2 May 2022 16:12:33 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237177AbiD3X1I (ORCPT + 99 others); Sat, 30 Apr 2022 19:27:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235671AbiD3X1G (ORCPT ); Sat, 30 Apr 2022 19:27:06 -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 C9FAE5A5A7; Sat, 30 Apr 2022 16:23:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=K7mlWljwCnLk01hS06j7mEjTkmnw+BXqkbKf/zhe3D6XTXOdKAjsDxz/+0BQlMIPzaNXBItYDNEQKGfEFTvet8aB9UX1b2s/D/HwfuAcI+njCeOUIWJmsBHx9VpE9enqN+4Ien5T5czl9mQieriaDDOlIOJvUjqY6KveIWWEZ/nxCKAXynLbkqBceeQPF4LvkVzrPSyJCkF+3AggaXec2Y/6lAAzm7ViK50Nn1BaH9vuZMZJyTkVM1Rq2i0w3ywAjaiOt9LGzmQML6Hc/5Rd9i4j2zCATNIfekyn+ixeFHdsa/7soL5ncOEG7LoMJPQbKFGTMc10IkfJaxGxljQIPw== 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=eN02WzS31QTwevn7g/w180OsGJPKU4kHUSaNahaVfTc=; b=Iwm1w7xMcZS1Gx3V8wlM8lVd7kmE+z/Crv3ibHj+6cJ4YnPJwUsgaHHt5EKCOVUb2AYpRt7EC9W9TWSjcZOeWfQNkUF151jeKWuCbEy98SWuc7fcbEazUtb7MYDBmFAyGzbHWFMNVyX04BABsXnQyJk5q3Y1IH3u8HLX9cDDcWnVFlgKDtr3Gwo7OHmBZSOuMUR5Gt2fOVg9nFjsFtdjnaP5Afhnf45FamJQMO3jjrrhxRcAzVW2p8NYO3UmccpwNHCIm4YuPPJgG3Az7+UB6UD19KvLdNoqIgWiWMQUu9Zsz45Q8rZzg9Yio9GKxmU5ZckLc4DOBVutgsyFLBtNYA== 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=eN02WzS31QTwevn7g/w180OsGJPKU4kHUSaNahaVfTc=; b=csHEcd813XknOg8FDKCH0DdaQgKPy3Dyeu1LLJq0E2xjkU9yzmb0jMYh+DUtfRndT/TR0LP2uT/WvIO2pbQyEae5aKhsxXRT6f3BxA6Q3IN59EOpffnTDL4H7nBQxMxe23ncgmdf+l2cRQDbIbqyzbsIn6IgZ0hIgRCf8HJT6pY= 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:41 +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:41 +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 0/2] ocelot stats improvement Date: Sat, 30 Apr 2022 16:23:25 -0700 Message-Id: <20220430232327.4091825-1-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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: 005ddeb9-e8dd-49bd-75d4-08da2b007687 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: RRSN71P+GKMj652uc5cqrk2H9jPk/zds1usibYoWx8peIu6zueQQcveN2FFc8ayBUEjkJ4PM0+c6vQl2b4I6cAxWCJFeEz9jPDNPXzoa2T4s0DgSj2bHe1Jm6hwqpOyRaAxyXD0pPck0hAq1CVH19sVzBksKQSkoe+b+ruhfnkkvSAir+DPtJxuCzFQEbIs/qOBROuICBg0Nhy5qY7Gf5BjB5lWlefMgIciXhQU09h+e+BKGhBTbw0aMAKyaMve+NKz7HKuxWxWK9VtiFhd9gLNf4j6o9R9uQad1oNoHEyaeKazlGCChwrg1tohCt3bxEvJ1Z4zhji65J1X4v06SJiIeLnXe/lOYuv8mdGCcSIOWyVeZANRoUcxktZyh2N4KqDLZR8JJ+hEKG1oTrxVqO6q8ziBCfrfNBau0/LY30ZbkstHvqpMMYWyOdZucLa60qCd7zSt7n/idA95ts9qbb5xw4sSb9ZL5h/81NZkSZcqjfRicEAXYPm8BqfUqEkragh1sGB/GpHX+EGdTxeSAgMnTqntIkAMoJuEIYGH99Yh9ITVdcbmVQeEbDl5kRXVYij7EWGpOCxt30Dpw09+8ajW5DVtnOpY2fWsX+sF+2UOxXSvnBLKpTCfVfTVHDfOWrF1emF2hcTu12cinyYmhP0qiEcSmK3UT5GWMsyHUWihAmBcdXDmatXE7fTZZ8ajanHG8yE6BPX4xLbRpOx6tng== 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: =?us-ascii?Q?dHKtitlSNKe4L5zR1CQNRzdg5vwk5DoBPX6fRL1zJMoB5KIeTU17H27N+B9q?= =?us-ascii?Q?HwtTY8ZSSthhwSeupNM7UxdC+WtZQC1Nzx+QzwkNlSniJ3kOiNqRJbrOGh73?= =?us-ascii?Q?UG02m2dj5MimXdzL34U78xPm8eHKpZLp4Nr5o6TiFV5XH/sBnPzyPeGo8zUO?= =?us-ascii?Q?Do53S0p+G5UX1eWgznlseJTqmWDsaf1GmyzWBPSzACm4A1hpfQhOJO/P5YLP?= =?us-ascii?Q?KO9BO0283HroZH/amb9dGd6X4ObSSFpWIuzzIGBOGhw3pnRjNtQ0M7A6TRib?= =?us-ascii?Q?o9NhzZQzhVGo0NzqEKSGqrORUQY/pIg52EpW3R1NqfC9zOx/+v4rtWyb/rIf?= =?us-ascii?Q?oDBo1JizJr71KiC/+gH+dGnBBYwUTOA51LHPTthJcTtYo5SmfFqTNr4eHh9u?= =?us-ascii?Q?+K4npgM35uv59uwG8JKpFUpX6be9zGqRr6lDCZl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MP0AiH7D9QSWAJTOpeBcyJppZWMZmKdBNGEDkjLAxRrpteNH?= =?us-ascii?Q?x9LQj0OoZGFXmv5zXU34foG4qDpZb2qQfqtMYCWGTjIphINSIeNXtKOb/hjt?= =?us-ascii?Q?kVQYPdo+jLRzG8MFiq5SnkcKHOgM+EeyY9ohn+3G1YwkLYtIZ5dO9H8toFm7?= =?us-ascii?Q?lG5sfF4ayaqGhQIkP9Ydq8di03sm6jFNNZD8srO4j/Suaf2IcbBlo5Bg65qw?= =?us-ascii?Q?qHoYDINk90CdKk/X35hWs2qNGypB8vO2+MmlnzU1SughmBa8DG6gqUTdig8p?= =?us-ascii?Q?MQDpZ7zy6ZECt5Qdx1TZUuWhQrUUkiNci2Npbibgs1gEHc/vdsbtxWGfjlD4?= =?us-ascii?Q?A2c7ubFxkxnMLJKZq0Li0y5W/PYr3NSZKZMpVmMwmPXJ3HLGQo1OPzIjBP70?= =?us-ascii?Q?hbLoI5nBfswyH6fWS8kI8KXJfAPN9xRrCnJJ+9Z/ZS0q9XmDA3UF?= X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: 005ddeb9-e8dd-49bd-75d4-08da2b007687 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:41.7117 (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: 6FUjgTDZOupD84Vdz4ai6SGjjG5S5i4b0ISPwkrXM+gaZ3OYN6QoWEgV6tii52Mqz8vTccgocRxxcQFOFv+g5VnUJnMoDZdOXxx0GoeZhyw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR10MB4802 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 A couple of pick-ups after f187bfa6f35 ("net: ethernet: ocelot: remove the need for num_stats initializer") - one addresses a warning patchwork flagged about operator precedence when using macro arguments. The other is a reduction of unnecessary memory allocation. Colin Foster (2): net: mscc: ocelot: remove unnecessary variable net: mscc: ocelot: add missed parentheses around macro argument include/soc/mscc/ocelot.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) -- 2.25.1