From patchwork Wed Dec 16 16:10:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Tudor X-Patchwork-Id: 11977833 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,UNWANTED_LANGUAGE_BODY,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 086B2C4361B for ; Wed, 16 Dec 2020 16:12:09 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AAAEC2255F for ; Wed, 16 Dec 2020 16:12:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AAAEC2255F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=ufsih5UGZh7rjwadhNeFOSCwik72Sk0BZulvMXUJf/M=; b=pWf/+YQxQRqeoaEu3lHLQsUtWX FCPJML+eoA2VP9QTCXcAALtJ/e7RZWW9QWwBOarjJanXakixeyqd90A44y2fJlNVSMh32KqudnOKE RVL01/Zfmhp6tdkD1OJiIfTT0/+knTuRqFIPbO1m0dPpyksLKjC+yJYnmrfX+bG3TehypTd6rA5CO 8rOg9We/lkEWZGLZXkJEyZK83rRG0iCutBB6rEIZz/m1CwFvgwhLLndde/i3TTE8WMbDe9HhIsE7S iPuAyZjpOBdc6ZSbphjpxWu56OteIK5WJFm+lGYjNYIU8hA7hcqm6U4mhzqjQ9v1yx6dhFoMZlBfj k3+WBrOQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kpZNo-0007kj-L7; Wed, 16 Dec 2020 16:10:32 +0000 Received: from mail-db8eur05on2072.outbound.protection.outlook.com ([40.107.20.72] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kpZNm-0007kG-Go for linux-arm-kernel@lists.infradead.org; Wed, 16 Dec 2020 16:10:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=naT/lgXBJ4pF+3KE5McWeLZZ/rdcwJoKnmsYVoaSsGnmJ32NOtIhh9vxqlH0929loiFqn1PAg/ghgt4+7qIm3zjqr9qo6KCW2rKQAUq5MZI29DtQ8Aisrr4JAmoynRqoH6dRsMSTkx0PJQZ1oo7V833jsBwLM/sQuQbo0xUoPgQIS0vBEVc0hZViyG668cGYu/IVhbKb3TE7YLM67FuC1NfMKJ0mnP1ncShiLzyT5CBHYKMfoy+TqCfBGiLI4KArUscIcf8hP+0jc/jj5O3HeZLTouF2/uLbOUN1Arc3fqqbWK1d6hSWgCOiMbHlb9O6TLK20VmAFAl53HcSgm1UTg== 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-SenderADCheck; bh=3a9oVdAtGU7Uq3QPsBORUaNrWyC8b4xEplt+GHuNetk=; b=Hum6yVZBjspOQHdVWROESFvasJCN3XaPBukXrzlFYjBjVtzMOLvMDSkE8PmLl21Pol/Yzh9OFEv0OHZvZJrEWz9yQ1hsn1Thcmy46WQPmIxk2Y8952is8IdrnRGEyqJrjWFbKOjItI+ULXESlnjwYC8l4IJaTliIinWKO/Q/AgjJWzWL47piUBy4r22gVU8Ejw77cu9WGTjXf7a8uPJ3rIEicoP00JWClnrF0unR2uUVVQynp+F7UEJ6yPAMjjEgZGCopsho/G+lrgFxhjxHbdV/58UnQGbW/xT65pZLcztAlX8nPPZkF/z8PUpILCgIrq4i12tGWonAVXciNLSEjQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3a9oVdAtGU7Uq3QPsBORUaNrWyC8b4xEplt+GHuNetk=; b=JVnVPjuEL+14XEbkatFGUrIOrTKzV3zck/6dCbKot+RQIn9Q6F6HOhXvWJ4SxTDR6Keh3QJrYLj22iNZ/gOxU817KabnwXg8sNgaumBUf47tIsZypy14KPLmtLPtBxZfptBaIVYjRyqGeIBu77ui+WwbBWJovzBHGR4PULIyOQA= Authentication-Results: linuxfoundation.org; dkim=none (message not signed) header.d=none;linuxfoundation.org; dmarc=none action=none header.from=nxp.com; Received: from VI1PR0402MB3405.eurprd04.prod.outlook.com (2603:10a6:803:3::26) by VI1PR04MB2976.eurprd04.prod.outlook.com (2603:10a6:802:8::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12; Wed, 16 Dec 2020 16:10:26 +0000 Received: from VI1PR0402MB3405.eurprd04.prod.outlook.com ([fe80::6467:fb5:1181:e8b2]) by VI1PR0402MB3405.eurprd04.prod.outlook.com ([fe80::6467:fb5:1181:e8b2%7]) with mapi id 15.20.3654.026; Wed, 16 Dec 2020 16:10:26 +0000 From: laurentiu.tudor@nxp.com To: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org Subject: [PATCH] bus: fsl-mc: add missing __iomem attribute Date: Wed, 16 Dec 2020 18:10:15 +0200 Message-Id: <20201216161015.29060-1-laurentiu.tudor@nxp.com> X-Mailer: git-send-email 2.17.1 X-Originating-IP: [83.217.231.2] X-ClientProxiedBy: AM4PR0101CA0065.eurprd01.prod.exchangelabs.com (2603:10a6:200:41::33) To VI1PR0402MB3405.eurprd04.prod.outlook.com (2603:10a6:803:3::26) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from fsr-ub1864-101.ea.freescale.net (83.217.231.2) by AM4PR0101CA0065.eurprd01.prod.exchangelabs.com (2603:10a6:200:41::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12 via Frontend Transport; Wed, 16 Dec 2020 16:10:25 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 3f1b9438-ee3c-4ece-20e5-08d8a1dd198b X-MS-TrafficTypeDiagnostic: VI1PR04MB2976: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:590; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4YT0A0S+8sS3huLYtjI58PWuEZ6A0cIacGOgXSX45H21qrd6U2RgEv0AJGXW9O0FWJnZLaeIBWrhETgDX5e2YDBlNbWYqB9CIaH8Q/kY91RmmYa+pVoKir6krNwQjXuposbknETLNMejdPl4g32vyJFfduyEiP6JGmLKtq0ydlQgpu20gUWlwEDMKpFqkaluPb21ydt90keZlipQaHb0J3G/EVF/4ScnIct9Cx6BIOCg/qCA03KaDWCtfQu9JHu3prH7G0FEkgn+jDHPcbNNpWal/+gdvxxUdZLBjN32d/BKCbIncnLYfCB0oVwcbzvonzvE2CbFtbvZz8R3UyQOHA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR0402MB3405.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(136003)(39860400002)(396003)(376002)(366004)(2616005)(83380400001)(36756003)(52116002)(8676002)(16526019)(26005)(316002)(5660300002)(6486002)(86362001)(478600001)(956004)(6512007)(186003)(66476007)(66946007)(9686003)(66556008)(2906002)(1076003)(4326008)(8936002)(6666004)(4744005)(6506007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: OeUzPOu0bjotGxXspUbRwTkPvZvg86NGKVQ6f9WgSkfbo/RUV29HV5xX1dojG8k5WRw8lr6vXSzsuZMhosC/2DYgcmy2Fb2KBaVZY1nUa0Hs/56NScWqM/pmuN8wQCOQagHPvpiKFAy9MMekMALrEcyz0xZeSiQ6xtB9x0cCkzj8DRlZ4NkdaDKTTza/UvZNMl52yP4DEmWX/fTSgn7lUi6P6uqXalQMAZh4OD6X1jqb3Kx7OGfFh/J7RplvhlfT5Z6CJKn5GDTpXvUwLdVvJ6cPMl1PWiFrJd4Im8rIuTyoG2yUQNb1Yr827g/olwNOpr/39RkFWADJvaHG5AvWLgq0QdgjlmCGd0N3EAdWtzWEfQRDhEKB8GBL2XmBb/CGSuTeII9QCruVlI+ewqXZQNX1iXqRQ97nYmYk7fTIPZ5Xh2+G6jwz8ZfC73LlV/r4n/JRzPsAYyaaKbDPPgWIq+4hpd87MrXUvg9YKpbbefQQSdxMszf5sKb9EZ6Jh9nH5xN3pbKEt7ccwFPCk8M2t0jPjruKCxO0hvcTD+76jPv9w3Zc4Iq4l5yVc6UOuQ0RDmDCwHl7D2VxiVKafvXO+LOoC7jIZsjZT+UxHp/7kRhrBKehzA9qWnsemQXBLi2ZbCS8E3GnfSVpU0ZCqPv2KOwoE6Ex65P1A0ZjC/iwgR21G2J8FdmFQeC5oEpoFW1aFseTy0Ys+vR2SR988NytyMSsbxbwYA8oeyTxfzMmPD2S7EXO5p4QFrJQWu2tYFCgqIAZtuFiYlTm1uUFx7y6qaCiQFtwZm4mxxSLd+uT0fgH3/9+KugkNg7ajn0uALJVawAdVOqiJrFgQFU1HXN31XgfVWWHvKW/haWjcm/oU4SNbw+2oj9jSTR/BBDllaCkqkIb1tjSJP8IJuttKZKBY1XR6dxi15sgzQnD/6NlfKnm8rarRlrK017YPkcVq6DnLQJ0j0198qC3Ojctqdj/jVTF7BdnvFIBOFhr4W5ngau3FBbW2t1ADp4ef0chcfSx X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthSource: VI1PR0402MB3405.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Dec 2020 16:10:26.0698 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-Network-Message-Id: 3f1b9438-ee3c-4ece-20e5-08d8a1dd198b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Bt/BetfPtdJhbG/coK0HvWaqqYVUvz2w0Wnz58X0ccnCAk7h3Rib6SVXxf5xtiq6stSa4/KIR5L+VLkvoAOn3g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB2976 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201216_111030_777648_C818C554 X-CRM114-Status: GOOD ( 13.53 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: diana.craciun@nxp.com, Laurentiu Tudor , linux-arm-kernel@lists.infradead.org, ioana.ciornei@nxp.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Laurentiu Tudor This pointer to an i/o register block is missing the __iomem attribute, so add it. The issue was found by 0-day sparse run. Reported-by: kernel test robot Signed-off-by: Laurentiu Tudor --- drivers/bus/fsl-mc/fsl-mc-bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bus/fsl-mc/fsl-mc-bus.c b/drivers/bus/fsl-mc/fsl-mc-bus.c index b8e6acdf932e..5a8fc68d6109 100644 --- a/drivers/bus/fsl-mc/fsl-mc-bus.c +++ b/drivers/bus/fsl-mc/fsl-mc-bus.c @@ -41,7 +41,7 @@ struct fsl_mc { struct fsl_mc_device *root_mc_bus_dev; u8 num_translation_ranges; struct fsl_mc_addr_translation_range *translation_ranges; - void *fsl_mc_regs; + void __iomem *fsl_mc_regs; }; /**