Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp671989pxb; Mon, 25 Oct 2021 16:21:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwsi/w3XRWSe28/wtcWf5D3q6OYgkbo9u+vNoaiqAbjQ3Ibe6PdGJL3p6etc6ymx3O+8He X-Received: by 2002:a17:906:470f:: with SMTP id y15mr25653323ejq.521.1635204078202; Mon, 25 Oct 2021 16:21:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635204078; cv=none; d=google.com; s=arc-20160816; b=jjFRvZlnMPIG60XFgF9akxO1B4UcU7DKu32T9Tyt6utaJ8IDD2CmpxFBjwKt0VZApK zEk9Vus5Ubr8+IGvnjH/l7zTTHgvMV5g1HJxKy/NYzmD987RQZD3YE5YooZqpd1wYYn3 ZqvIyvlvWE/cYh+r35UKB5BJFeF8Yoq1LKgkKl5vNysslAltAWw2GhXEZYYR5GsJDMMK VpMRmuo8gRobCoGyPsLJKqnbtz++Y7OFVRs+x60jiZu/TxetYposn1rWGc4EoJVatjI2 9qZtxlXsUh+IDAd1SHnmtaQ3f8aI3jghSlvl3xzPm10cYkiYKbCfA+rM+Ha1IOMLzgdY snTg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=kVb3K84iiomwOYUTGPlAkPoQ1Dulc3vy9lSVcYp23LU=; b=Pn9JtHFVpUiFJsguBy7oLbAb7tDfaqnwnbKMo2gudp5tbte8Pxir9GWWsxZ2b3RCbR COsn3e5gLwVNbnI18WeqdEpkmw8tQDKyXeqtEVoVpx+5KvHnIkRYrAFieyfcOe8IABln ZPaUlfIkRMaLccA43rsT4cf/5n0Mt2wqlZ7bltO6/sWqDKwMcYGJ1i/tj4a/xHmbhSpi 8cB/AvWtz/fqBC67LDQoADX0SMDv3tq0dB2C3GswnVnQxi9yQC7y8AUlJ3hUNMRL5z2c exGePidrMlnjr1LNVPhc/iii925oTPNkIXq9CHK56AHJ2CLK7dbUjamCdtGVr2zjMDFz MzoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GM7JbEJP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ht15si13450271ejc.49.2021.10.25.16.20.54; Mon, 25 Oct 2021 16:21:18 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GM7JbEJP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234078AbhJYT0D (ORCPT + 99 others); Mon, 25 Oct 2021 15:26:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:43150 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234717AbhJYTXv (ORCPT ); Mon, 25 Oct 2021 15:23:51 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 633726108C; Mon, 25 Oct 2021 19:21:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1635189689; bh=uh+onX4lya15jpShJDlMJOjftqDM96kehkwXOaOh+Xc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GM7JbEJPXp/wYQBYAaeJGgmysnuWtjJvn8XvWuO6dejbMBjU1QQke4wnDHw7052bS +RGV539S7qtonOGIpsX7b7vLp7ChRan+5w4XR0p7XbV+Xqv8Bhd+QKIuUs2WYM2nEq MWusT09TcqxBWA29sjo0M3/+yvvoTK/u4FwsZXL4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , Dinh Nguyen , Sasha Levin Subject: [PATCH 4.14 07/30] NIOS2: irqflags: rename a redefined register name Date: Mon, 25 Oct 2021 21:14:27 +0200 Message-Id: <20211025190924.766630949@linuxfoundation.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211025190922.089277904@linuxfoundation.org> References: <20211025190922.089277904@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Randy Dunlap [ Upstream commit 4cce60f15c04d69eff6ffc539ab09137dbe15070 ] Both arch/nios2/ and drivers/mmc/host/tmio_mmc.c define a macro with the name "CTL_STATUS". Change the one in arch/nios2/ to be "CTL_FSTATUS" (flags status) to eliminate the build warning. In file included from ../drivers/mmc/host/tmio_mmc.c:22: drivers/mmc/host/tmio_mmc.h:31: warning: "CTL_STATUS" redefined 31 | #define CTL_STATUS 0x1c arch/nios2/include/asm/registers.h:14: note: this is the location of the previous definition 14 | #define CTL_STATUS 0 Fixes: b31ebd8055ea ("nios2: Nios2 registers") Signed-off-by: Randy Dunlap Cc: Dinh Nguyen Signed-off-by: Dinh Nguyen Signed-off-by: Sasha Levin --- arch/nios2/include/asm/irqflags.h | 4 ++-- arch/nios2/include/asm/registers.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/nios2/include/asm/irqflags.h b/arch/nios2/include/asm/irqflags.h index 75ab92e639f8..0338fcb88203 100644 --- a/arch/nios2/include/asm/irqflags.h +++ b/arch/nios2/include/asm/irqflags.h @@ -22,7 +22,7 @@ static inline unsigned long arch_local_save_flags(void) { - return RDCTL(CTL_STATUS); + return RDCTL(CTL_FSTATUS); } /* @@ -31,7 +31,7 @@ static inline unsigned long arch_local_save_flags(void) */ static inline void arch_local_irq_restore(unsigned long flags) { - WRCTL(CTL_STATUS, flags); + WRCTL(CTL_FSTATUS, flags); } static inline void arch_local_irq_disable(void) diff --git a/arch/nios2/include/asm/registers.h b/arch/nios2/include/asm/registers.h index 615bce19b546..33824f2ad1ab 100644 --- a/arch/nios2/include/asm/registers.h +++ b/arch/nios2/include/asm/registers.h @@ -24,7 +24,7 @@ #endif /* control register numbers */ -#define CTL_STATUS 0 +#define CTL_FSTATUS 0 #define CTL_ESTATUS 1 #define CTL_BSTATUS 2 #define CTL_IENABLE 3 -- 2.33.0