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=-8.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 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 2F60EC4360C for ; Tue, 8 Oct 2019 17:57:33 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 F371A217D7 for ; Tue, 8 Oct 2019 17:57:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="e0R7IfXX"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="F5s2dQP4" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F371A217D7 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-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=bombadil.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=TF77hvgc8p/0KxGdmY7lkDrS+8UAytyIhO+OLyTngxU=; b=e0R7IfXXuQeIiOTmtd4Veq+aU u2fT9UtWxYI91ZAczSESsPGDGyIhILvE91habmfPQeyiv5YHDC6L2pzBcYnzxRuuQlPk9vG/7sctn vdPBbTIpVU/Ca5awzRk9Crzi9g0vKQvGKMs+zk6KuVpYVC95ctU7c/x+I8L1/PClF0mbnRu4gvDW9 16Pa4VtCmKUof5ePfCCkAuhjfQPxP1i+huun+K+uFsJG3lrhYekH+URIgX9KsUGvbKLbMdm8u1XQU jVI6rttsys+Bfn0Cqj9Q2b1PMLXhWR+lUodyBhslwj6GB9Yx0tRotJCxM8IDGThLH5NGlUBZt6IV6 GiFYUHDkg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.2 #3 (Red Hat Linux)) id 1iHtjo-0003Af-Bo; Tue, 08 Oct 2019 17:57:32 +0000 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.92.2 #3 (Red Hat Linux)) id 1iHtjj-00039u-0W for linux-arm-kernel@lists.infradead.org; Tue, 08 Oct 2019 17:57:30 +0000 Received: by mail-pf1-x442.google.com with SMTP id y72so11184064pfb.12 for ; Tue, 08 Oct 2019 10:57:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=Yef5E9Iz9f+7n/5/axHFKoPE3pK/yUGvRPUha6xlga4=; b=F5s2dQP432QAUKh4cPR48vcv2U0EjDhsvQQ507LUCnkbDp/RhirKSfOeD90hzKhExK lz6GUMrSTgSwAUp8tQgyR4KO99QUsDyXrGeV6govgIRjR24yNKRXpd1LIwCb8Ss34fcr Gl4bjFWsuzbxeFf9nxR3P13jxvXGiz3HJzhyE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=Yef5E9Iz9f+7n/5/axHFKoPE3pK/yUGvRPUha6xlga4=; b=cl8wM9O2sSFlZrnKjr8EI1E4rOdK+ZcM5y8oZCKHYixLhOOwUz2wByJSke4Su5xKk5 s29fiDWBys2iMB1mEk08S6sR0GA1GBavnQ5B9ZKycNGaElK02E3w9MSSwb8IjKXBmDLy oru45N7NlJdgYVHbxRtIe8jYPxaywLFo/VG6W1TEkkbFniLzlFF+5Af3nn+sY7jbDOPL CW99kz7esdSCLgwOnzSHcioTuLnLRUqjwxfV9u3W5SDCap3PTDrQVGxtsAbEJ/9wiPGu YC6VYmEpTmgqkGNJFfqYdrY4mtc3IlueY5AiHqmvDkI9B0J0uA8b/pLwDVaX1tU17hlr gLbQ== X-Gm-Message-State: APjAAAXeHdstI5TBuMjdHjTBcLloXhWxgq+73Nt0wq7EDMnr+spx8zzN 9L3MxA6sOWvluaaU9hGiiDq64g== X-Google-Smtp-Source: APXvYqzWBD1I2peLNGZ8oZB8HCxKXr/nilEmYk9UdRrkBuxVcnRpvCXNbkNsQ1EHk+MVHEtkecakyA== X-Received: by 2002:a17:90a:f986:: with SMTP id cq6mr7452147pjb.17.1570557446108; Tue, 08 Oct 2019 10:57:26 -0700 (PDT) Received: from [10.136.13.65] ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id h4sm19020736pfg.159.2019.10.08.10.57.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Oct 2019 10:57:25 -0700 (PDT) Subject: Re: [PATCH 02/11] ARM: bcm: fix missing __iomem in bcm_kona_smc.c To: Ben Dooks , linux-arm-kernel@lists.infradead.org References: <20191008123453.1651-1-ben.dooks@codethink.co.uk> <20191008123453.1651-2-ben.dooks@codethink.co.uk> From: Scott Branden Message-ID: Date: Tue, 8 Oct 2019 10:57:20 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20191008123453.1651-2-ben.dooks@codethink.co.uk> Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191008_105727_065397_6FA26694 X-CRM114-Status: GOOD ( 18.57 ) 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: linux-kernel@lists.codethink.co.uk, Ray Jui , Florian Fainelli , bcm-kernel-feedback-list@broadcom.com, Scott Branden Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 2019-10-08 5:34 a.m., Ben Dooks wrote: > Fix the following sparse warnings from a missing __iomem > in __bcm_kona_smc() function by adding __iomem attriubte. > > arch/arm/mach-bcm/bcm_kona_smc.c:143:21: warning: incorrect type in initializer (different address spaces) > arch/arm/mach-bcm/bcm_kona_smc.c:143:21: expected unsigned int [usertype] *args > arch/arm/mach-bcm/bcm_kona_smc.c:143:21: got void [noderef] *static [toplevel] [assigned] bcm_smc > _buffer > arch/arm/mach-bcm/bcm_kona_smc.c:149:9: warning: incorrect type in argument 2 (different address spaces) > arch/arm/mach-bcm/bcm_kona_smc.c:149:9: expected void volatile [noderef] *addr > arch/arm/mach-bcm/bcm_kona_smc.c:149:9: got unsigned int [usertype] * > arch/arm/mach-bcm/bcm_kona_smc.c:150:9: warning: incorrect type in argument 2 (different address spaces) > arch/arm/mach-bcm/bcm_kona_smc.c:150:9: expected void volatile [noderef] *addr > arch/arm/mach-bcm/bcm_kona_smc.c:150:9: got unsigned int [usertype] * > arch/arm/mach-bcm/bcm_kona_smc.c:151:9: warning: incorrect type in argument 2 (different address spaces) > arch/arm/mach-bcm/bcm_kona_smc.c:151:9: expected void volatile [noderef] *addr > arch/arm/mach-bcm/bcm_kona_smc.c:151:9: got unsigned int [usertype] * > arch/arm/mach-bcm/bcm_kona_smc.c:152:9: warning: incorrect type in argument 2 (different address spaces) > arch/arm/mach-bcm/bcm_kona_smc.c:152:9: expected void volatile [noderef] *addr > arch/arm/mach-bcm/bcm_kona_smc.c:152:9: got unsigned int [usertype] *[assigned] args > > Signed-off-by: Ben Dooks Acked-by: Scott Branden > --- > Cc: Florian Fainelli > Cc: Ray Jui > Cc: Scott Branden > Cc: bcm-kernel-feedback-list@broadcom.com > --- > arch/arm/mach-bcm/bcm_kona_smc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/mach-bcm/bcm_kona_smc.c b/arch/arm/mach-bcm/bcm_kona_smc.c > index 541e850a736c..43a16f922b53 100644 > --- a/arch/arm/mach-bcm/bcm_kona_smc.c > +++ b/arch/arm/mach-bcm/bcm_kona_smc.c > @@ -140,7 +140,7 @@ static int bcm_kona_do_smc(u32 service_id, u32 buffer_phys) > static void __bcm_kona_smc(void *info) > { > struct bcm_kona_smc_data *data = info; > - u32 *args = bcm_smc_buffer; > + u32 __iomem *args = bcm_smc_buffer; > > BUG_ON(smp_processor_id() != 0); > BUG_ON(!args); _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel