Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp612004pxb; Mon, 25 Oct 2021 14:58:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfBAPP7i44YzW1Qz1yuw1k2o316J2iWbdHspXmjjYK6chXdAGLP2UdLh7C+3ZbjCoPWCNB X-Received: by 2002:a17:90a:aa0f:: with SMTP id k15mr23403779pjq.226.1635199136632; Mon, 25 Oct 2021 14:58:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635199136; cv=none; d=google.com; s=arc-20160816; b=LfwPaBrX3Wcp7KiuP+mVYiTqx1R8Tl/UHaGjg3DMVX6DChREmA+ECrROA9l8KcQlYl Lx840vsSMWkJMMeVEOKAhq97tt+CkBjf/fRLKo6dxINGjsavOAzTe5DqG2j4CogAievq yi+bOWaCoW3wTeCvxz18Ymrg+523CeYjVreI/GJ239cVo9fo5M1+Wmk9P3xR7V2JTh93 NRD6sYWIBgluU7GApfeDxAMUD7lBzGyRgIUqYUhlyLxwK/2JbrCpRk2MwWeYQ6BDNnHX 1O6xZIz9zU2U4U9wr/9Qga9AEIdfDCym/004xUbtkmBFkLW2P/URXh9THHWGCkY8gLxX atpw== 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=oklXdzRYNgXb0gBQWJf82WJhl+GI7q+lhTc8L0BWtkI=; b=qOcozZKL3Av1lSEm6hQDMKCcP//8FyoFT7ZApxi/9QWudsiranaYnNHVSe5QN6bcue JofUBbugRnUomwVEL/JQzJk3z4DVdFpm6Vrygw7CjpskMr8EWRsl4S2cDRezbuCAbvpV N5FHgVuDSRqhbKruuN2kOL00olnFRE03n5CjAYsUQD6WWAhts9QyYRqz806iF0GrV0Tw zIeZeGDoAIjOtlmwyhI+pcRydCV98SDygzEIo8GSucjcwGwZpTw6tUjx2esB6o/JKpkV HZ9GeQRHJ+JniEViU1Tc86u/CeVD9IFvxUXBGiXwSckQVgfxzKsqOHSZPlwHXzfubfUq zimg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lun3HOCv; 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 z24si2811788pgl.50.2021.10.25.14.58.41; Mon, 25 Oct 2021 14:58:56 -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=lun3HOCv; 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 S233510AbhJYTTw (ORCPT + 99 others); Mon, 25 Oct 2021 15:19:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:37130 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234303AbhJYTTQ (ORCPT ); Mon, 25 Oct 2021 15:19:16 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CB0A161078; Mon, 25 Oct 2021 19:16:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1635189413; bh=EKD0K3cnNSO6viGKSARwPCtn6KjLncIYO7XHtviKZx8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lun3HOCvSIpbW/eFyB27KgOSBTCkU9fGxODGuGNILFWRpkZ3OEfws6XbC2WeJGoyF hSePbgQyw+3tjw0OWpVTuQgotjWaexjK744GqIVGQ58RcIapuLklt4fXvdY2/7uN9p di3TLjd06CWF1BvVRImdtO+lsbXKQLfbTdmxJQN8= 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.4 25/44] NIOS2: irqflags: rename a redefined register name Date: Mon, 25 Oct 2021 21:14:06 +0200 Message-Id: <20211025190933.726240061@linuxfoundation.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211025190928.054676643@linuxfoundation.org> References: <20211025190928.054676643@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(-) --- 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_s */ 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) --- 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