Received: by 10.223.176.46 with SMTP id f43csp1439418wra; Fri, 19 Jan 2018 11:33:59 -0800 (PST) X-Google-Smtp-Source: ACJfBotx0fdfcHkHqJsPK/GHL5UJ01Yx+Jqeck8IHoCFc4T9mWmysKxCdo4Rur7/NthRIB3ETm4P X-Received: by 10.99.97.208 with SMTP id v199mr32916221pgb.387.1516390438989; Fri, 19 Jan 2018 11:33:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516390438; cv=none; d=google.com; s=arc-20160816; b=ByPbeaF6bgPIUefhUyDz3HYRXf1BUZ90mRno5v8F0I4sCQjm/vo0hDSEFEaol2qsFc XXMtd6gFQ9ieivsON8ZNBZCDsft1hDHXAC+jeqRhL6Jkf7SJmjeKkzhxCxORaCA69sqe dxxekpGxxP1wCKBlg+cc8Z0FVoLX/rdAFsdtYyHZQbtwvAZJp6Z8GoPKVeQaN2H3eo2T sDoRZmqnOuod1MxbZBMhJvJa7Ms0kCYYFcDzM0Qz1Wl+FLO04zFClX91172gGRCY7xVw R0qT99X9+fngpD0i/EEbbToeODVyr9WtU94Ye0V3DRSIBG1cTCxHJzlT0M6B6Y9sVPPd Kiww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:newsgroups:cc:to:subject :arc-authentication-results; bh=uy7YkjgcImPohxVvcS78NB2ZM3Bd1/5ZuwYB9+0cky4=; b=IqEU9Q646/8bvci+P1OX4NV2nsGWwtala0M/aRIm/n1pHYA2pPGriAfYAXMSmjyqm3 FUovWPG5w51u0NA6pYVoGPavgYl13XiS9jwrzYGqYoKvGmeRdYvxix9rLKc+M92v+ERt 7E8sUxV6/3ymfy9NomrK6iM2Lyslj8g35GvYNYI//3i/MANQnMSmCAtZUxqfwylBnJ1S 27b8bJu/XqqI/QEyBTUo78SHWpXq5xGAePpRC5WoIEhi913clCUaOw93pHZ8+31Q2k4W 66sehqa1B54YtDFqd6scwqRpssVAdWTCNNJBf4PHDMe47r+2hSccwNNSVl0KL+bJTluE CwjA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o2si7694178pgs.580.2018.01.19.11.33.44; Fri, 19 Jan 2018 11:33:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756244AbeASTc2 (ORCPT + 99 others); Fri, 19 Jan 2018 14:32:28 -0500 Received: from smtprelay.synopsys.com ([198.182.60.111]:58961 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756040AbeASTcV (ORCPT ); Fri, 19 Jan 2018 14:32:21 -0500 Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by smtprelay.synopsys.com (Postfix) with ESMTP id 1DDCF10C0ABC; Fri, 19 Jan 2018 11:32:19 -0800 (PST) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id AA86BCAE; Fri, 19 Jan 2018 11:32:19 -0800 (PST) Received: from us01wehtc1.internal.synopsys.com (us01wehtc1.internal.synopsys.com [10.12.239.235]) by mailhost.synopsys.com (Postfix) with ESMTP id 64525C79; Fri, 19 Jan 2018 11:32:11 -0800 (PST) Received: from IN01WEHTCA.internal.synopsys.com (10.144.199.104) by us01wehtc1.internal.synopsys.com (10.12.239.231) with Microsoft SMTP Server (TLS) id 14.3.266.1; Fri, 19 Jan 2018 11:31:51 -0800 Received: from IN01WEHTCB.internal.synopsys.com (10.144.199.106) by IN01WEHTCA.internal.synopsys.com (10.144.199.103) with Microsoft SMTP Server (TLS) id 14.3.266.1; Sat, 20 Jan 2018 01:01:50 +0530 Received: from [10.10.161.84] (10.10.161.84) by IN01WEHTCB.internal.synopsys.com (10.144.199.243) with Microsoft SMTP Server (TLS) id 14.3.266.1; Sat, 20 Jan 2018 01:01:50 +0530 Subject: Re: [PATCH] arc: fix iounmap prototype To: Geert Uytterhoeven , Arnd Bergmann CC: Andrew Morton , Linux-Arch , arcml , Linux Kernel Mailing List Newsgroups: gmane.linux.kernel.cross-arch,gmane.linux.kernel.arc,gmane.linux.kernel References: <20180102110141.1853608-1-arnd@arndb.de> From: Vineet Gupta Message-ID: Date: Fri, 19 Jan 2018 11:31:44 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.10.161.84] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/02/2018 06:23 AM, Geert Uytterhoeven wrote: > Hi Arnd, > > On Tue, Jan 2, 2018 at 12:01 PM, Arnd Bergmann wrote: >> The missing 'volatile' keyword on the iounmap argument leads to lots of >> harmless warnings in an allmodconfig build: >> >> sound/pci/echoaudio/echoaudio.c:1879:10: warning: passing argument 1 of 'iounmap' discards 'volatile' qualifier f >> pointer target type [-Wdiscarded-qualifiers] >> >> Signed-off-by: Arnd Bergmann Arnd, do you agree to Geert's comments - if you are busy I can respin a v2 ? Thx, -Vineet >> --- >> arch/arc/include/asm/io.h | 4 ++-- >> arch/arc/mm/ioremap.c | 2 +- >> 2 files changed, 3 insertions(+), 3 deletions(-) >> >> diff --git a/arch/arc/include/asm/io.h b/arch/arc/include/asm/io.h >> index c22b181e8206..2c9b98fabf82 100644 >> --- a/arch/arc/include/asm/io.h >> +++ b/arch/arc/include/asm/io.h >> @@ -30,11 +30,11 @@ static inline void __iomem *ioport_map(unsigned long port, unsigned int nr) >> return (void __iomem *)port; >> } >> >> -static inline void ioport_unmap(void __iomem *addr) >> +static inline void ioport_unmap(volatile void __iomem *addr) >> { >> } >> >> -extern void iounmap(const void __iomem *addr); >> +extern void iounmap(const volatile void __iomem *addr); > > Note that include/asm-generic/io.h also lacks the volatiles? > >> >> #define ioremap_nocache(phy, sz) ioremap(phy, sz) >> #define ioremap_wc(phy, sz) ioremap(phy, sz) >> diff --git a/arch/arc/mm/ioremap.c b/arch/arc/mm/ioremap.c >> index 9881bd740ccc..94d0116063a8 100644 >> --- a/arch/arc/mm/ioremap.c >> +++ b/arch/arc/mm/ioremap.c >> @@ -95,7 +95,7 @@ void __iomem *ioremap_prot(phys_addr_t paddr, unsigned long size, >> EXPORT_SYMBOL(ioremap_prot); >> >> >> -void iounmap(const void __iomem *addr) >> +void iounmap(volatile const void __iomem *addr) > > const volatile? > >> { >> /* weird double cast to handle phys_addr_t > 32 bits */ >> if (arc_uncached_addr_space((phys_addr_t)(u32)addr)) > > Gr{oetje,eeting}s, > > Geert >