Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp453700pxb; Sat, 18 Sep 2021 07:36:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlZ1oeTAOtrFhW+Lu5TlFgCyqYYyHp1xZPXm9a6ide2uqn0wmn1XqtLONWuHgdEkLKQt1o X-Received: by 2002:a92:c8d2:: with SMTP id c18mr11510087ilq.121.1631975765612; Sat, 18 Sep 2021 07:36:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631975765; cv=none; d=google.com; s=arc-20160816; b=J1H824xj9bvebUToGLnnTU16ZMZmBnHuH+qz4U9LtMuvnNqaMHc98HEJBnlU4sBv/q 7/LZGcTEtsLiYFi9VDqEjmR7/TzpclL0DygIaqUQune+vkozOEC2JWz9AAV4ExwAPVvG XZ7L+QvVXUOXV1ep+NIAPN7VCyLwPyY6rl93gUKoJ4eGlTHyJN+vkuntxsMeVDDBhYYQ +GEHe09jIdeXShV34vENxBQiwn3e92j3pMD5r+0Mx5EAETI+T0tkC0mTH9wzqRA7CgB4 SE2HrZg6oNwgsx3cseGDehGXUkpgyfbwh7hJ2R8D9QvXKE30VkpX58/eec4Kc/6CkkYZ IKIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=B3NbCgDI7h+Qf3vfkhHmeoOlWtQHaMpf2CI+hAJKDXk=; b=i0Ir7/3C7Ez022qXS5AE2w7XO4zvY9ktaOlBf0N4Jz9Dlqy49oZ/vOzd9dzBTLYESl 176Gsx9J8xDbfVO1kssmHqeGpO+D/i8w6r63zyGJTzfBve3cWle+XyfQZCxI6/puWWez Nevc46OyJ1Fl14RjT8XyNhm/gLBIJw2OGHz8y+XrKimfuYG+nqL/jE0D3beblhmc3KS8 rCfECm+7jztDvCB2/CYiWN7cst5pc0DnTysbXaQcBc6x3mZFY01vndn+qJS7GO6AePnB A39JJHPoYel5BtoWFOMU8rOcG5A12vWpeNpOvtP8+zOJvZQfQtDqpGbSSWiza7Uvvzc0 F2ew== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i29si4347452jab.79.2021.09.18.07.35.53; Sat, 18 Sep 2021 07:36:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238181AbhIRJYS (ORCPT + 99 others); Sat, 18 Sep 2021 05:24:18 -0400 Received: from pegase2.c-s.fr ([93.17.235.10]:53769 "EHLO pegase2.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236255AbhIRJYR (ORCPT ); Sat, 18 Sep 2021 05:24:17 -0400 Received: from localhost (mailhub3.si.c-s.fr [172.26.127.67]) by localhost (Postfix) with ESMTP id 4HBQMw75JKz9sTp; Sat, 18 Sep 2021 11:22:52 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from pegase2.c-s.fr ([172.26.127.65]) by localhost (pegase2.c-s.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SDXvAXDFgcxi; Sat, 18 Sep 2021 11:22:52 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase2.c-s.fr (Postfix) with ESMTP id 4HBQMw655Qz9sTK; Sat, 18 Sep 2021 11:22:52 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id BBC698B768; Sat, 18 Sep 2021 11:22:52 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id i9VziOO7HdnQ; Sat, 18 Sep 2021 11:22:52 +0200 (CEST) Received: from PO20335.IDSI0.si.c-s.fr (unknown [192.168.202.70]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 734A48B764; Sat, 18 Sep 2021 11:22:52 +0200 (CEST) Received: from PO20335.IDSI0.si.c-s.fr (localhost [127.0.0.1]) by PO20335.IDSI0.si.c-s.fr (8.16.1/8.16.1) with ESMTPS id 18I9MgmB785790 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Sat, 18 Sep 2021 11:22:42 +0200 Received: (from chleroy@localhost) by PO20335.IDSI0.si.c-s.fr (8.16.1/8.16.1/Submit) id 18I9Mclb785789; Sat, 18 Sep 2021 11:22:38 +0200 X-Authentication-Warning: PO20335.IDSI0.si.c-s.fr: chleroy set sender to christophe.leroy@csgroup.eu using -f From: Christophe Leroy To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: Christophe Leroy , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, kernel test robot , Alistair Popple Subject: [PATCH] powerpc/476: Fix sparse report Date: Sat, 18 Sep 2021 11:22:32 +0200 Message-Id: X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org arch/powerpc/platforms/44x/ppc476.c:236:17: warning: cast removes address space '__iomem' of expression arch/powerpc/platforms/44x/ppc476.c:241:34: warning: incorrect type in argument 1 (different address spaces) arch/powerpc/platforms/44x/ppc476.c:241:34: expected void const volatile [noderef] __iomem *addr arch/powerpc/platforms/44x/ppc476.c:241:34: got unsigned char [usertype] * arch/powerpc/platforms/44x/ppc476.c:243:17: warning: incorrect type in argument 1 (different address spaces) arch/powerpc/platforms/44x/ppc476.c:243:17: expected void volatile [noderef] __iomem *addr arch/powerpc/platforms/44x/ppc476.c:243:17: got unsigned char [usertype] *[assigned] fpga Mark 'fpga' pointer as __iomem. Reported-by: kernel test robot Fixes: ab9a4183fddf ("powerpc: Update currituck pci/usb fixup for new board revision") Cc: Alistair Popple Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/44x/ppc476.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/44x/ppc476.c b/arch/powerpc/platforms/44x/ppc476.c index 07f7e3ce67b5..fb7db5cedd4e 100644 --- a/arch/powerpc/platforms/44x/ppc476.c +++ b/arch/powerpc/platforms/44x/ppc476.c @@ -219,7 +219,7 @@ static int board_rev = -1; static int __init ppc47x_get_board_rev(void) { int reg; - u8 *fpga; + u8 __iomem *fpga; struct device_node *np = NULL; if (of_machine_is_compatible("ibm,currituck")) { @@ -233,7 +233,7 @@ static int __init ppc47x_get_board_rev(void) if (!np) goto fail; - fpga = (u8 *) of_iomap(np, 0); + fpga = of_iomap(np, 0); of_node_put(np); if (!fpga) goto fail; -- 2.31.1