Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp449988ybl; Tue, 7 Jan 2020 08:55:44 -0800 (PST) X-Google-Smtp-Source: APXvYqybsX97zLSh9cvIuPtpMjt9V8kUD9xrbxaqpjNCY+Q7FvHFOD3+8bnmwtLX/hI7XB7eJTTg X-Received: by 2002:a9d:5c1:: with SMTP id 59mr740661otd.192.1578416144879; Tue, 07 Jan 2020 08:55:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578416144; cv=none; d=google.com; s=arc-20160816; b=XNQJWkqa05ho8rrfif6p3aoqhM9bcALMUkEUPSE9I7bQSfSaSkYVETwKYwpAS0lGPe mBbuEpBfDGqece65uXe9qeMuYaiKEbLgfACZRAEwMTRXvWcp8FU7lYad5RDN/AKen+HZ xrCIfc01lNJPOEE8dI+ym7U6sGUXyXunHtLtTiBfD1t5QzC1VdbRisLz203gPy78+hGa DuwLlLe8uEPHJc8VfCfo7Gylad8TPx91W0sd07MFOc/f4cmRBwLyy0eRah1G9NKCT2Or uxwjkOJtNOmBQET2UhokTD8LR5sdEdo7xlOzGs3PdgKou1P+UMnSyA3oxXBqT4VeUHZh m28A== 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=t1lotGA0d6qnSuKDqg893YxSWiK51TDfYwTR9HjRYpk=; b=yC2nTGYF7TWmyrMslKCPt/AnmR69B/nVtFUZI/gW+l1fQIk/SjtQo6lBK6M4Wn01rF lNWuroqdsY/rcX5ieD/N4z+VewbnYgUHA+2ZL6zZnlF6UBNu8j9Ly0hZHCaeUckz/cwg fqBmaTOC8hwdh9G3gosmuYpJZcqm2o6cZw36BZJ9LOO4+AOJzYQwawJIHcood3UcoVJv Po1v7VpJp57O+PgKUR43Sh4pquoO1LnkQGqpXBDj4oM3/VOnH7mCizO98XVK+g9ABbEg HhfW7caQmBwccCdM2XvST9gmPL42RBqU/5dF2Pq8DGrOtqD8bfqZ+Okz4bLwv+A3Y8+/ W4QQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PcOSHuIz; 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 19si249275oiq.128.2020.01.07.08.55.34; Tue, 07 Jan 2020 08:55:44 -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=PcOSHuIz; 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 S1728702AbgAGQzA (ORCPT + 99 others); Tue, 7 Jan 2020 11:55:00 -0500 Received: from mail.kernel.org ([198.145.29.99]:42906 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728391AbgAGQy7 (ORCPT ); Tue, 7 Jan 2020 11:54:59 -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 DC2332073D; Tue, 7 Jan 2020 16:54:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578416098; bh=OxGpMROhFQfzTTYuwcffnfrxlv/oQuz0yC/lpIU6MVM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PcOSHuIz8JBQafaZPl+Y77y1zkCvkDs1VBTp8LO+zbVny8hx/J6wPKXXuNO7qZWEv t6vz7ARhdkvNJkn9k0UR4+64ynQfKbLLkft81RKWt9DPPnm6RjSRwXpheXwqqvs7m6 FQodZWHFP1QQuRMVqE/1jSl8YKy77s4AYmuLiyXQ= 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 08/13] drm/nouveau: Constify ioreadX() iomem argument (as in generic implementation) Date: Tue, 7 Jan 2020 17:53:07 +0100 Message-Id: <1578415992-24054-11-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 --- drivers/gpu/drm/nouveau/nouveau_bo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_bo.c b/drivers/gpu/drm/nouveau/nouveau_bo.c index f8015e0318d7..5120d062c2df 100644 --- a/drivers/gpu/drm/nouveau/nouveau_bo.c +++ b/drivers/gpu/drm/nouveau/nouveau_bo.c @@ -613,7 +613,7 @@ nouveau_bo_rd32(struct nouveau_bo *nvbo, unsigned index) mem += index; if (is_iomem) - return ioread32_native((void __force __iomem *)mem); + return ioread32_native((const void __force __iomem *)mem); else return *mem; } -- 2.7.4