From mboxrd@z Thu Jan 1 00:00:00 1970 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=-3.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS autolearn=no 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 79099C32771 for ; Thu, 9 Jan 2020 12:00:58 +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 4EF2E20656 for ; Thu, 9 Jan 2020 12:00:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="rGp86pJX" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4EF2E20656 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-snps-arc-bounces+linux-snps-arc=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-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=3nlJ8Flc6QWHDYYjWRVbNt8xLhqyof0xOc0eydUxRsk=; b=rGp86pJXBdAy4h 4YqmAiZFadetELW0hoexAKYbUhA7bcnxxaKM6sSaMV9dOQMNVA6uBue9VaSf1Tx4GkbKOXTcuCFeO +Eiv5S0bZ7ljToUfAFn11wkESPMtTIN6FHr1cTdnqkGwAtQJA3lNu/8XdXhc+/z/YI3x2nf2hQ2yR 7rtv+xmxzkOUEy/59yEqIRxwLrV8yRlnpvjvStd02mDSd+485xn428odGhzV90c13u0c9IQGRkJYO +MshfV+G9XijRDgCYpa1LTLepKspt7EXTtbFMNzLpmpG+PUfaZMTplANPrCFTSNctywZeEK3qZrZd FiYEI4kmgkTK+Xhz9+DQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ipWUi-0005Nq-2T; Thu, 09 Jan 2020 12:00:56 +0000 Received: from mail-oi1-f193.google.com ([209.85.167.193]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ipWUf-0005NS-Fb for linux-snps-arc@lists.infradead.org; Thu, 09 Jan 2020 12:00:55 +0000 Received: by mail-oi1-f193.google.com with SMTP id z64so5628045oia.4 for ; Thu, 09 Jan 2020 04:00:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nZfyuOmXpaLxOTcihxRatR1N5b6cV8bkVUYtr9LoScQ=; b=r+bW3ehkvEBdCNZs098AsiNTAXZzxtoOK9PPzdMlLSQF/u/7ADoGzjWoOzo452u63A EDHEbRCCxq7qQ5bQ0pH+d8ieGFKzDMSo6qlZvsyQxA/O88uikGzujitBmk0PlWu2ctJ3 e5O3ekKHEGzmNl0S/s7dimdWFv7rI7VD98xGihCK9NHydJ0Z5cofSbIUjp+rgRICBSKZ gfm5fM7KFBlnAuLqxeZHePbaMTEe6JqQPNTjK+QpttWWu1egKCh+53CeB3UleglFKxKF lSihT4Sa+AmJ6Smc4yLt6zx21qg8SE17joJLFhXHTp7mC3GkVPa7JH7d/a0FuMeLAh19 dbQQ== X-Gm-Message-State: APjAAAUms+qp2xjVv+FEgukGGL3L77Aea9pFikmmtE9uwZph1iW0sTjJ brJ0lRUeJpmN/wegaWNWjLCLlLGK086U0C+iDbo= X-Google-Smtp-Source: APXvYqx2rj2SeSvboe2k3ZgItcDXoEvkOpB0Do773ErXMGvWblx7KEY69OGBF2+yLrNaZ+Tob+6Upx4TfamT+URhRjM= X-Received: by 2002:aca:eb83:: with SMTP id j125mr2637148oih.153.1578571251757; Thu, 09 Jan 2020 04:00:51 -0800 (PST) MIME-Version: 1.0 References: <20200108200528.4614-1-krzk@kernel.org> <20200108200528.4614-2-krzk@kernel.org> In-Reply-To: <20200108200528.4614-2-krzk@kernel.org> From: Geert Uytterhoeven Date: Thu, 9 Jan 2020 13:00:40 +0100 Message-ID: Subject: Re: [PATCH v2 1/9] iomap: Constify ioreadX() iomem argument (as in generic implementation) To: Krzysztof Kozlowski X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200109_040053_524038_6558BB99 X-CRM114-Status: GOOD ( 11.27 ) X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rich Felker , Jiri Slaby , Geert Uytterhoeven , "Michael S. Tsirkin" , David Airlie , Benjamin Herrenschmidt , Jason Wang , DRI Development , virtualization@lists.linux-foundation.org, "James E.J. Bottomley" , netdev , Paul Mackerras , Linux-Arch , Dave Jiang , Yoshinori Sato , Michael Ellerman , Helge Deller , Linux-sh list , Alexey Brodkin , Ben Skeggs , nouveau@lists.freedesktop.org, Dave Airlie , Matt Turner , arcml , Nick Kossifidis , Allen Hubbe , Arnd Bergmann , alpha , Ivan Kokshaysky , Thomas Gleixner , Mauro Carvalho Chehab , Kalle Valo , Richard Henderson , Parisc List , Vineet Gupta , linux-wireless , Linux Kernel Mailing List , Luis Chamberlain , Daniel Vetter , Jon Mason , linux-ntb@googlegroups.com, Linux Media Mailing List , linuxppc-dev , "David S. Miller" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+linux-snps-arc=archiver.kernel.org@lists.infradead.org On Wed, Jan 8, 2020 at 9:05 PM Krzysztof Kozlowski wrote: > The ioreadX() and ioreadX_rep() helpers have inconsistent interface. On > some architectures void *__iomem address argument is a pointer to const, > on some not. > > Implementations of ioreadX() do not modify the memory under the address > so they can be converted to a "const" version for const-safety and > consistency among architectures. > > Suggested-by: Geert Uytterhoeven > Signed-off-by: Krzysztof Kozlowski > Reviewed-by: Geert Uytterhoeven Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds _______________________________________________ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc