Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp449758ybl; Tue, 7 Jan 2020 08:55:29 -0800 (PST) X-Google-Smtp-Source: APXvYqwvaoOgAbZ7EDM1vL6vq3+b98Y+BkXgLm8/bSqXpppN0f0k3RueXjYfbVSTYEOtQptWdYoQ X-Received: by 2002:a9d:6857:: with SMTP id c23mr647336oto.351.1578416129694; Tue, 07 Jan 2020 08:55:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578416129; cv=none; d=google.com; s=arc-20160816; b=PH6TovLrZnLk1/1mS+vQMNfXtIUazSrO3frCqWBPVA807xQ25scGsrWbtODUocNbT8 zFA9nOsNrkKRLwdbkVDAaRgU3Du8AL/mi3QhZThH7tQrhdQr5QVYGvLvN1vJOMKbdumA Sn8ZijoxKWxUDQ1PlPMp3ujad+B2fz6NnrJk3b5UR0Wh6wuxbrgfJkb5poUBaVZfQ3/d zg5DPRwizCrO64xdC2LJyA8aEt7GJzWYpxONzV572KaCUQ0qTgGqCLpsHQUFrTfKmrOb XGOL2TcBS+rXUW2s3U6AtOZgOSJagx9wT0U0b1aepsuD8Cs3W0O6lpgZpXesG0j8EcOp mCqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=07KcwXxzXkAH3nTG1Hr65r9/NqYBl6VuiH2SaFmm/xI=; b=Bos+SFTfLie0/p7NDh+bo1hVtjcUig6Vr0sGgK4oVN3DCHh/ZefxiOsX36Dp8tc4Gl c7vXDXHv8uYESL2H2Sw77uIO4mnnP6SfM0Y0QvV285ss0SipsUGQ6ps4K2F9a9oiFH+J /4KwZMErJF1yxHBErLoFMYJAoU406Q7cXTfF6XryQoSnf3Nx9PWk4Y8vSHQWWJR5xWM+ Aznq86a0O1cRvyHXAdM1ERjBsQ54+HoBK7alBkh8fA3ng+Hy3lB1BP9ekp5Po8u0MMU2 UjndwBIVd0rQUgpbFPlIguDrCPdUyPC731O8tSdMOVDdx+IDPCb2ahyiVY4PBDWXvpPF iryQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MyjPtgAp; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r22si147450otn.192.2020.01.07.08.55.19; Tue, 07 Jan 2020 08:55:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MyjPtgAp; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728656AbgAGQym (ORCPT + 99 others); Tue, 7 Jan 2020 11:54:42 -0500 Received: from mail.kernel.org ([198.145.29.99]:42320 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728391AbgAGQym (ORCPT ); Tue, 7 Jan 2020 11:54:42 -0500 Received: from PC-kkoz.proceq.com (unknown [213.160.61.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4E4BC24676; Tue, 7 Jan 2020 16:54:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578416081; bh=pyS3wZ02TYoQQFrhCaT28XntjPpq/hHYDQKnecGVi1c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MyjPtgApzAeWBBxzp9EQBWQXZ+iwA999spRine79c7OM4lsnSPBUGIGrBr9MZxl+K qVZbWWFCLhelBQoFuIPPOarD6WgO7KDyfRquNgQ3rTLR4Z1FvS7QTS1zTSCX5JmiYr znxaQdgOb6csvJ/r8Qjz1jvr9IFWhhb4LsApylCQ= From: Krzysztof Kozlowski To: Richard Henderson , Ivan Kokshaysky , Matt Turner , Alexey Brodkin , Vineet Gupta , "James E.J. Bottomley" , Helge Deller , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Yoshinori Sato , Rich Felker , Dave Airlie , David Airlie , Daniel Vetter , Ben Skeggs , Mauro Carvalho Chehab , Jiri Slaby , Nick Kossifidis , Luis Chamberlain , Kalle Valo , "David S. Miller" , Dave Jiang , Jon Mason , Allen Hubbe , "Michael S. Tsirkin" , Jason Wang , Arnd Bergmann , Andrew Morton , Thomas Gleixner , Geert Uytterhoeven , linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-sh@vger.kernel.org, dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-media@vger.kernel.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-ntb@googlegroups.com, virtualization@lists.linux-foundation.org, linux-arch@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [RFT 06/13] arc: Constify ioreadX() iomem argument (as in generic implementation) Date: Tue, 7 Jan 2020 17:53:05 +0100 Message-Id: <1578415992-24054-9-git-send-email-krzk@kernel.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1578415992-24054-1-git-send-email-krzk@kernel.org> References: <1578415992-24054-1-git-send-email-krzk@kernel.org> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org The ioreadX() 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. Signed-off-by: Krzysztof Kozlowski --- arch/arc/plat-axs10x/axs10x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arc/plat-axs10x/axs10x.c b/arch/arc/plat-axs10x/axs10x.c index 63ea5a606ecd..180c260a8221 100644 --- a/arch/arc/plat-axs10x/axs10x.c +++ b/arch/arc/plat-axs10x/axs10x.c @@ -84,7 +84,7 @@ static void __init axs10x_print_board_ver(unsigned int creg, const char *str) unsigned int val; } board; - board.val = ioread32((void __iomem *)creg); + board.val = ioread32((const void __iomem *)creg); pr_info("AXS: %s FPGA Date: %u-%u-%u\n", str, board.d, board.m, board.y); } @@ -95,7 +95,7 @@ static void __init axs10x_early_init(void) char mb[32]; /* Determine motherboard version */ - if (ioread32((void __iomem *) CREG_MB_CONFIG) & (1 << 28)) + if (ioread32((const void __iomem *) CREG_MB_CONFIG) & (1 << 28)) mb_rev = 3; /* HT-3 (rev3.0) */ else mb_rev = 2; /* HT-2 (rev2.0) */ -- 2.7.4