Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp13474337ybl; Sun, 29 Dec 2019 12:47:01 -0800 (PST) X-Google-Smtp-Source: APXvYqzUl4YELRzFiFDHOAOEr485PQQHs58hDxjH0dbagThM+wA11yTwBME6WFH55xnSVLxwPuGU X-Received: by 2002:a9d:799a:: with SMTP id h26mr67546874otm.240.1577652421864; Sun, 29 Dec 2019 12:47:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577652421; cv=none; d=google.com; s=arc-20160816; b=oJlNyR7x1rB41U5X4P0N85hTTU8HbQlCCG8E7wMMVniWYyilVAj2nY0VbsH87YuQB2 cbMy3kkaHnyUy0hppVJzuTc1ew4ORMF7+RXAVDDD3QYeckvM/R2tH4gKivhJ03DeIMiN auC9puIvTS2obBLSwXd43kOeOAllXbkNbxtueoqd3GqprpHbc+jKCAk+tJlrOpMFuejR bGGjKh+6Zn0EE6AJEeRw9SOrLSPrO0jwAGpnuDgN6Am1rAuH0nHw5UMu4smvQbFMJ3k4 14pwFDQYJy86TLEhFwytwjskEjvU0flPjq5RlfPFRuW1fZAQ/sN0ApzYmwb/+PoBfypt Hr7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=5gdNa35CDnf5zQp/ak+Aa5RHqCkU/q1gT6IE6LD5wRQ=; b=ZGu/JTpRpLqbxdkV0oMP91tq74FUm6veQ5LfNjHUikHj3rkJ4XsO8Y07i/qMSSz1md yMAxowM0Ujdk0PXlSDkNezFDr1w9zQ2jOGqcCUPRMKrqb1vr6QBJgKRWkfrWTZqobQCB QQMArYlAJOxv2Ali2Pv1/n0h9maAMz78pzmSlr84tsucMv8M1XtL03MypmKYSVAhgjGL LBVrr8BcV4Ss9eHBIoeVN2+2TOCtqE36bfq7/bwTCJNIcypNIqJtf6J6nWslZMYGAJWk lmFS7zGRyyuFS4cUyqlqYeryMYoP0WzbPxaoLlNp/6eq6CnSoxEJ318x5iYgKhXm0IVX 9Bnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kKErp31y; 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 a5si16402361oie.17.2019.12.29.12.46.51; Sun, 29 Dec 2019 12:47:01 -0800 (PST) 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=kKErp31y; 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 S1731548AbfL2Ru0 (ORCPT + 99 others); Sun, 29 Dec 2019 12:50:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:34862 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731524AbfL2RuY (ORCPT ); Sun, 29 Dec 2019 12:50:24 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 577D1206A4; Sun, 29 Dec 2019 17:50:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1577641823; bh=KvVcsg5lqPQtLpqPc52N0Vg8q6S+q1oWffGb/QpJtEY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kKErp31yQl+ALNwJudkWhKLJogxDM5Qob33bDRkM/U/gERElupAX2EvpvmElzLzZQ uYmOQxMPot3CjMtl5x5fXi9lvJitsd/mMjlAxGkN/i/ZlN78O4LGG+ZqljtEjWjId1 ml+OjZazOYUuoyP8BVA8cK29rWekB4bluhAuVfBE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Ben Dooks (Codethink)" , Linus Walleij , Sasha Levin Subject: [PATCH 5.4 225/434] pinctrl: amd: fix __iomem annotation in amd_gpio_irq_handler() Date: Sun, 29 Dec 2019 18:24:38 +0100 Message-Id: <20191229172716.801599919@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191229172702.393141737@linuxfoundation.org> References: <20191229172702.393141737@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ben Dooks (Codethink) [ Upstream commit 10ff58aa3c2e2a093b6ad615a7e3d8bb0dc613e5 ] The regs pointer in amd_gpio_irq_handler() should have __iomem on it, so add that to fix the following sparse warnings: drivers/pinctrl/pinctrl-amd.c:555:14: warning: incorrect type in assignment (different address spaces) drivers/pinctrl/pinctrl-amd.c:555:14: expected unsigned int [usertype] *regs drivers/pinctrl/pinctrl-amd.c:555:14: got void [noderef] *base drivers/pinctrl/pinctrl-amd.c:563:34: warning: incorrect type in argument 1 (different address spaces) drivers/pinctrl/pinctrl-amd.c:563:34: expected void const volatile [noderef] *addr drivers/pinctrl/pinctrl-amd.c:563:34: got unsigned int [usertype] * drivers/pinctrl/pinctrl-amd.c:580:34: warning: incorrect type in argument 1 (different address spaces) drivers/pinctrl/pinctrl-amd.c:580:34: expected void const volatile [noderef] *addr drivers/pinctrl/pinctrl-amd.c:580:34: got unsigned int [usertype] * drivers/pinctrl/pinctrl-amd.c:587:25: warning: incorrect type in argument 2 (different address spaces) drivers/pinctrl/pinctrl-amd.c:587:25: expected void volatile [noderef] *addr drivers/pinctrl/pinctrl-amd.c:587:25: got unsigned int [usertype] * Signed-off-by: Ben Dooks (Codethink) Link: https://lore.kernel.org/r/20191022151154.5986-1-ben.dooks@codethink.co.uk Signed-off-by: Linus Walleij Signed-off-by: Sasha Levin --- drivers/pinctrl/pinctrl-amd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-amd.c b/drivers/pinctrl/pinctrl-amd.c index 2c61141519f8..eab078244a4c 100644 --- a/drivers/pinctrl/pinctrl-amd.c +++ b/drivers/pinctrl/pinctrl-amd.c @@ -540,7 +540,8 @@ static irqreturn_t amd_gpio_irq_handler(int irq, void *dev_id) irqreturn_t ret = IRQ_NONE; unsigned int i, irqnr; unsigned long flags; - u32 *regs, regval; + u32 __iomem *regs; + u32 regval; u64 status, mask; /* Read the wake status */ -- 2.20.1