Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2207376imm; Mon, 28 May 2018 03:59:05 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoEZ08KyOSUAVunt+oK+rpr3pX6flVxFd7P/0lpQlll0wqGnTl7ou8pmcb+zlrqVgUbaQtU X-Received: by 2002:a17:902:e85:: with SMTP id 5-v6mr13281012plx.318.1527505145263; Mon, 28 May 2018 03:59:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527505145; cv=none; d=google.com; s=arc-20160816; b=HKRUQudQ29jtVnpY2wiRyiRKALYtgN9Fn0rLjDazYJCZS3PNAv2aubqouuCQqfxXiB ki8zmRoRHyQk1Xu2w/gmVNrwcMr5P/XeGRDEO+V1omiNDU+sRmGymwxn8RHHP74hfpn7 HrUFVdP9D+UsLEvbL1XbcXVjqZCknK/BvzCijgPa07fr880/RM7dI7o5lZHZxOpcJCwa FsTx6SIBLPAWqPu+LW1P/SyWKcXQ6l8I1oBZbA8tl3djeP+/Iv0pZyDBjIklhLD8+DSI mvjILd5tw9kJrBhalHXr3QIlcx3XA/0OCZ5gQmdPUDbXvic25PXzhXedEgAKZnK6SbUc TjEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=6lLqi9NoHmZV8kmj5cUFrVPB4DP/6zDb8MG9Pl3MF/k=; b=QUddz/tinSD3NailsOe8ZpivtUrgw6Pz7Pby7wOk6ITvINV1ObN8TsLkZ1ZcAN90yk Nxy4rcUjABYG1T5rNxKuHAYpXnRaqAhYB9MyCrvfQ4x0q+zkFBl5hXtfPPWn42rBD0U5 pIPm4YyEXvZCJJ12qhAvrmy72qeQkrvouCgwrzYnAFcK1r4Evp9TAu6gzKhHojHmhk81 /CwB/2qY5fezoaYZqkSwn3I0s5GxUaLSp5LjCQFdWKaDp2K0h4DaGS8i+oQNcnYZSiNT m5TwzrBUw+msVQCJzJuGRlojgDFHjJSzlbsLjLf7iCB97IuUPVSBYtZzjddUEtnl+9en ho+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rLAlseap; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h8-v6si12051166pll.58.2018.05.28.03.58.50; Mon, 28 May 2018 03:59:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=rLAlseap; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S938031AbeE1K6d (ORCPT + 99 others); Mon, 28 May 2018 06:58:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:46566 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S937983AbeE1K62 (ORCPT ); Mon, 28 May 2018 06:58:28 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2428F2088E; Mon, 28 May 2018 10:58:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527505107; bh=IYMVU5LFqkc1lfIhlalP5l29LzkbliwKMsC0LL0I5bc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rLAlseapzn1sXsfd3E1hjua5U+aQlnBV1hAzxVsFGevPmtmbdj/mIOGfBSHhl2a2m iIQPymTydntuY0MA3ydoPmLDFVT9L2kURYFN/4l0QO/0Zm0cFvRCh5Gvr/+Q7/xUpp fdGF2f0dYARSzfDWLHJ8YBMmgGvXY2QrJA8Tqfb0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Florian Fainelli , "David S. Miller" , Sasha Levin Subject: [PATCH 4.14 351/496] net: bgmac: Correctly annotate register space Date: Mon, 28 May 2018 12:02:16 +0200 Message-Id: <20180528100334.600880138@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180528100319.498712256@linuxfoundation.org> References: <20180528100319.498712256@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Florian Fainelli [ Upstream commit 16a1c0646e55c3345bce8e4edfc06ad119d27c04 ] All the members: base, idm_base and nicpm_base should be annotated with __iomem since they are pointers to register space. This fixes a bunch of sparse reported warnings. Fixes: f6a95a24957a ("net: ethernet: bgmac: Add platform device support") Fixes: dd5c5d037f5e ("net: ethernet: bgmac: add NS2 support") Signed-off-by: Florian Fainelli Signed-off-by: David S. Miller Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/broadcom/bgmac.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/drivers/net/ethernet/broadcom/bgmac.h +++ b/drivers/net/ethernet/broadcom/bgmac.h @@ -479,9 +479,9 @@ struct bgmac_rx_header { struct bgmac { union { struct { - void *base; - void *idm_base; - void *nicpm_base; + void __iomem *base; + void __iomem *idm_base; + void __iomem *nicpm_base; } plat; struct { struct bcma_device *core;