From patchwork Mon Mar 13 00:49:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 68610 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp950733wrd; Sun, 12 Mar 2023 18:24:09 -0700 (PDT) X-Google-Smtp-Source: AK7set+BFdfmx/DJv+UBNYPtIABHyVCiL0zWquh+kQKMWpAKHTScDAZAIPXqiH9GTJOozmOToJOB X-Received: by 2002:a17:90a:560f:b0:23b:33a6:8c18 with SMTP id r15-20020a17090a560f00b0023b33a68c18mr6139880pjf.19.1678670649460; Sun, 12 Mar 2023 18:24:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1678670649; cv=pass; d=google.com; s=arc-20160816; b=D25TUzyI5Doj6G1SVewNkA2frhHzALJjKyajI1HlwxTXZ4oAcBe6Lm7tGtqGAcNHE0 MDwyUaIqtgiVNnk0hiclMNQN5g+jzJ0gbIAIPErJZS9DYhn0DG2yUBO6fPH+TXj5x+4i xhfntfWDkuiaHS2KVf3OTCPeWNbmrUcje745NsOwx/Pq2l5nyJ43uDTdWtUT2I0SxWW/ PaD0FOktirLXZ3uoiNUr9k/+/ZW1zCGjWAI2Qb2P1zwcmOg7WjNb6lzNQOCt+VsdPsG1 ICAdJ01qEST3TLJyEhR7C7E1MZcpViZEj7UbMJs8qf6+TOd7IBMp6JPWs1UK/kZwQ0cG yWiA== 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=Yiazyo90lykK5uReHJ1txz5icxWeq8Fdm8xkA6Ua0yc=; b=OMupLHId9n6G4HczsG9DBzJ95dJBWkXR2tgT9zfyAUDzeIOW0B2nhBaESFuPwDLYg1 vuDpA9AS4U3gdzfVaWGFqW/3aeU1q7oST5gZqSgVt3RsO1EhAxdgURgHsmX7vDx0OPzx DjukfylgbovJfLqIggOavp4kN3h662WzJCZwMkwwa58yUygmYOk6UeLvuh6Hwg3hRh27 zXw41UDs1/4GuTurBvahmaoH77rxA/wlr3n6TmDMXBSNXHUNhErV25Ew8QUI1dE0SRA9 fHO+Ph9JnefXZqlDIO2eygnARjQCdjwT29J281NtDBEEHCHKpc5ctrzpV4t5AF7U/m4a I1Aw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b="Ti/gVRUf"; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n11-20020a17090a9f0b00b0023b32e93affsi4643229pjp.103.2023.03.12.18.23.57; Sun, 12 Mar 2023 18:24:09 -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=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b="Ti/gVRUf"; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229749AbjCMAoI (ORCPT + 99 others); Sun, 12 Mar 2023 20:44:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbjCMAoG (ORCPT ); Sun, 12 Mar 2023 20:44:06 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2067.outbound.protection.outlook.com [40.107.21.67]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1264523D8C for ; Sun, 12 Mar 2023 17:44:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OA95E7//qqlxDMT9LQDxrcqaJTOj16yRFKgrpC8EbV50EQpUWj+phkpf/XDtxwHAr619LYlDc4edSL7/m5GoC5zzd4L0OKs4fMTzXYVnmefpdLJDlfPLTWF3gbzlOLOnoGo+XGAseFfQ6Yuc574KNAoM2lhfrWFUDoZ2IkymvmFwANGrOlbYCCCj1Ojt50vVGi+/kOxK40csb9ZM2W6/Ea2v6YSrZQejJS9Kg2lod1jdu09ylMtQ8NYRzItDM3m2jVBQqeOYZe7n5ki4KiwbUHJdAS645H82NIbjcQVW4EZUrCbt9NdlKvmWpZ1eYHBgXF98oL9dpJh5cMpAegsjRQ== 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=Yiazyo90lykK5uReHJ1txz5icxWeq8Fdm8xkA6Ua0yc=; b=IsYy5L5xzhH25BQ/aRh6FI4bxzkhoq2Kp+BdE/c9mDcIZd3I+jwYtl0bcKOF1/JKZXrUpg0EbGwgAkFLXeD6sE2nro6/JX8XMno64n8VgsqMNqpR35thfsFfZKgoB1fcdN/ZZna0IBMEOAk3HuwenRFr57DpaY8+2GsYIIYRNK5E0AE1OTiEcudbPMYZ6IP1u0yC7ESg3KPyG8OesW4ZWJGedVTxHoJPDTFqRxY7OJoaUppojZ9ZBkxCp7Q4EjMv+AeCZYODxjnKheQmPDwzohOJ8ZdrhaP2J5zFwlaz20twkeU6fPoIkCc6kLR4ZY7p3WVVkfxwr5WMBOl3mF3n0g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Yiazyo90lykK5uReHJ1txz5icxWeq8Fdm8xkA6Ua0yc=; b=Ti/gVRUfQysIX7R65CRWPx7RY4146re/yFTvVIJKfSgVXRH58NCTx+OM3X+uQZGxnKGCugCGw84FCkI1EXy6JVidcNWAnJtVeha5fsSPQ785+NETbzWlN90mRfeiYAidSMm9cXH306RnGebzM3sh7z4Jk/DPAwjSbFosVpGjTHs= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by PAXPR04MB8686.eurprd04.prod.outlook.com (2603:10a6:102:21d::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.24; Mon, 13 Mar 2023 00:44:00 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::f55a:cf12:da08:6d2a]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::f55a:cf12:da08:6d2a%7]) with mapi id 15.20.6178.024; Mon, 13 Mar 2023 00:44:00 +0000 From: "Peng Fan (OSS)" To: shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Peng Fan , kernel test robot Subject: [PATCH] soc: imx: imx8m-blk-ctrl: reordering the fields Date: Mon, 13 Mar 2023 08:49:03 +0800 Message-Id: <20230313004903.1997375-1-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 X-ClientProxiedBy: SI1PR02CA0057.apcprd02.prod.outlook.com (2603:1096:4:1f5::10) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|PAXPR04MB8686:EE_ X-MS-Office365-Filtering-Correlation-Id: 9aadde0e-b862-4066-d98e-08db235c0931 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5/+bL7dg57gzxgDc60K4s54a0olVnVjHqFhh7UwaAEhvQ7KV5+tkfdcwK0yo45XwbATkDTUEASnsRz/eLV8VlUiMqxsuFm7uny1Mft8z5bzcQP+mMQYAarFSqbcKuiZkGuy+sX405kZ3RwruQFbv5jKCA9gkfH0JB5umlGKIhCNsCp1NBQ9FvjjojJrF3YccxL1lqj1v+ErQlQdEjSXKOOJ0W3zaglQp42Ov9evouU49iuyCfJJVmNbpEFq1Q7SIJzDMrymJQ6qOA1Mv2yietY1PTgr8Mi5rDDO3jrbXE5GLGd+hiU09YTkhYfJYYmpcHVPY+sMXDZXULgWjEHaXIWnPwEb+AAE81WWEdhibjnLuZ61kGEioeYs67jPQFKpagPLOtPBEn0yASk0QQJRMQcvLVRiQcCYL96jlEdvvNflnC6t4cHnaRqAhcvZJZ6wRSTO8PRe68V8azhyIhsy6bkgtcGy/G0mUNrtQ0QqZJmUu1AzlW26/OeXYm6yKw4IuBkMDUlbFewklwelUwLrJ5OUzt6gjeFzmQlVar3t9BxA9pdjY+y/bhO9sRVOqu9QfqVToPNo93CsLRbQ5G0ThL6Lr0QhgLeIvpXAFirzzo8+VSKe0ksXwAkmA9KiSA6m8Y9AIlxms63o/elDVOacZqPvOqCQhzWdREZsK/3tg6N8HHsOi//4L2tNcgMrGBXJd5IUWYMWchkwG+Fr3HmcblnFVnaUhrY8iurp9Z+imMcU= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(4636009)(136003)(376002)(39860400002)(396003)(366004)(346002)(451199018)(2906002)(83380400001)(5660300002)(66556008)(66946007)(8676002)(8936002)(41300700001)(66476007)(4326008)(38100700002)(38350700002)(316002)(54906003)(86362001)(478600001)(2616005)(186003)(26005)(6506007)(52116002)(6512007)(1076003)(6486002)(32563001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: oMh7BIbAkPUwf5zs8HVfMOecwxy7T7zKDr4nJFhUmGh7gLN+hhCxBBJQ0FANUbq7cKNFGCDikmHvFveC+X9BEWJxO4y22Mmd/lXVewdBSFEslUM2cDWrOhfXuy5u9Xe/GL8DLMUvEVh/pDh1J7ABV139ibFMQqvBmAfYvSOs4GqlMPTJQzcQgJZ81i5L0N+Tk4HZsJPDS7R23aBNGisTMRaIYXShB5sMv5vPK4fk+N7oZSz7fII0ELtyqQ4eVQoESzOqs8LTvUWOYsfodSCqNVFnuHtbwa2wdAsYHEsMOXZKwDAdLs9An84lYoGn3WWYsdJpkZxwYS7rbo/P2iGE9HKdI4kUcWSqmuE0pC7NKvUXpeQ/ACq+Mynnb0Qhvjt0yXkDqRlVwVizd3DucD80LoVSIoRS8UeaVB5gYejk9e8pIBDqAk3W6WdMX0naohiFB0mlLf4Q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a+KBNW6RXKdPwLRTAO2gCzRhB8rAjKsLDjZ0rPRNp1iYEH+kx X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9aadde0e-b862-4066-d98e-08db235c0931 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Mar 2023 00:44:00.5656 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: POLkkOuoIfYPOF9kJt0WG1p0OcZULALZ5SfXsOFIqsrMClTuBh/rk1YGyBtlminCwKtHKMUc4kVlj4LhPBLhBQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8686 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760213755204602509?= X-GMAIL-MSGID: =?utf-8?q?1760213755204602509?= From: Peng Fan The clang-analyzer reports: "Excessive padding in 'struct imx8m_blk_ctrl_domain_data' (12 padding bytes, where 4 is optimal). Optimal fields order: name, clk_names, path_names, gpc_name, num_clks, num_paths, rst_mask, clk_mask, mipi_phy_rst_mask, consider reordering the fields or adding explicit padding members [clang-analyzer-optin.performance.Padding] struct imx8m_blk_ctrl_domain_data {" So reordering the fields. Reported-by: kernel test robot Signed-off-by: Peng Fan --- drivers/soc/imx/imx8m-blk-ctrl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soc/imx/imx8m-blk-ctrl.c b/drivers/soc/imx/imx8m-blk-ctrl.c index 9b0f81dc292b..716e6eb4838f 100644 --- a/drivers/soc/imx/imx8m-blk-ctrl.c +++ b/drivers/soc/imx/imx8m-blk-ctrl.c @@ -37,10 +37,10 @@ struct imx8m_blk_ctrl { struct imx8m_blk_ctrl_domain_data { const char *name; const char * const *clk_names; - int num_clks; const char * const *path_names; - int num_paths; const char *gpc_name; + int num_clks; + int num_paths; u32 rst_mask; u32 clk_mask;