Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp450142ybl; Tue, 7 Jan 2020 08:55:53 -0800 (PST) X-Google-Smtp-Source: APXvYqxYwDqPyZxzNUnLpV6s2HvYwudGnlUVYN2wfE8IsKny7S4vlthz/GRso7kkD974SGTfn6Wm X-Received: by 2002:aca:1b19:: with SMTP id b25mr452367oib.24.1578416153646; Tue, 07 Jan 2020 08:55:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578416153; cv=none; d=google.com; s=arc-20160816; b=za2XpZ/nyUfAs4LP7CvbY6HWFtJxhHpe3jL+fw4fWdglFBkgDzZzXXIUA95Z613Gvt MZkk7OkAtzGF+/JE1QXc5a+Lu5PkkwRHkGSc3rDgsKv7cuSn3f6DmPDom6l387uLdl/n mgSJrgrkE2cIhtLGbAjytjZGWmQBwdt6p3hgEJxlvCAxXnBhYMQ1sEDlWCkxPvtSlSNR OM29lKrB9B3l8+mL2++PxuQO6eR/8po0LG4kkg/1T8x3wmMav0MCoj5wHyttK7bNMosk FRZ6W+JoXz5U047liVtS/tJ2LVC9r04DoOf4MiFUDffthFAxlos9c0Y0rkzyYuyY4GkR lmfg== 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=Ogz1zIFOLPunK4ogjk4j7xg+IeGTHRBQljPBWnhbph8=; b=dWXXYRZmNB3+RBDQV4uzkhMNChyejPdyt0AYMt0DQ+03Tsx6gIYPCctJOZg1Wyi8Ec WaxFzPvDli/XMkY34Qv1Ay/nZ3LvRaNIFl0ro6ImaDHpGbrW7np+7mdG3SCcHJ7CBHdG 95fyY+Aw3vo0ikT3RUUEDiDpS9oA1WYNeT5OON3hkC/5yc/e0FUnimsD0aAs1Bv5AT13 lO+oCalln8fIMR8sRkcArXcrQ01eIYiKOSQMVcoBIoeq8TC8J2wifun/Y6oUjFQn4i4g iuyY1Vbc6NXWp+XBcMG2cfvC1FVAqOLqIzkbEerPb1egfVp2aRpY3D3xcmXkA9wVKC3+ qWjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Dvt+VbDP; 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 x26si207353oie.73.2020.01.07.08.55.42; Tue, 07 Jan 2020 08:55:53 -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=Dvt+VbDP; 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 S1728720AbgAGQzK (ORCPT + 99 others); Tue, 7 Jan 2020 11:55:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:43242 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728397AbgAGQzJ (ORCPT ); Tue, 7 Jan 2020 11:55:09 -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 C767F2467D; Tue, 7 Jan 2020 16:54:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578416108; bh=MC0/fBBQZWISkssJQ3ftJ0jgVHrJkdjW/7yjCdKM/PA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Dvt+VbDPltA0lHPjSuQfwSM0Nd7tqQxxSsTv3S1SfffgfHhybHwd8a+EUHLiKIH+o JZ8wcoMN9XNT6JC+7vIELwX97TOgTAWZP4h0a2WWwY8iZu3vyVNHxgCXxKvfsf1BLn K6XnKPbtjtYYIWRyO0QKbfknQAuj9KrHeyr4g67s= 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 09/13] media: fsl-viu: Constify ioreadX() iomem argument (as in generic implementation) Date: Tue, 7 Jan 2020 17:53:08 +0100 Message-Id: <1578415992-24054-12-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/media/platform/fsl-viu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/fsl-viu.c b/drivers/media/platform/fsl-viu.c index 81a8faedbba6..991d9dc82749 100644 --- a/drivers/media/platform/fsl-viu.c +++ b/drivers/media/platform/fsl-viu.c @@ -34,7 +34,7 @@ /* Allow building this driver with COMPILE_TEST */ #if !defined(CONFIG_PPC) && !defined(CONFIG_MICROBLAZE) #define out_be32(v, a) iowrite32be(a, (void __iomem *)v) -#define in_be32(a) ioread32be((void __iomem *)a) +#define in_be32(a) ioread32be((const void __iomem *)a) #endif #define BUFFER_TIMEOUT msecs_to_jiffies(500) /* 0.5 seconds */ -- 2.7.4