Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp720910pxb; Mon, 25 Oct 2021 17:25:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMKkgytGwq+gKSss1R9vLbmzQlZn1rCnaYughrQs6icgy7qBHGuuuEi8gfKG5W3U6FfXp2 X-Received: by 2002:a63:b349:: with SMTP id x9mr16198981pgt.421.1635207913204; Mon, 25 Oct 2021 17:25:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635207913; cv=none; d=google.com; s=arc-20160816; b=p1j/K1rO8vdL4CGsLVJmQG7OGu8SQ3rM7hI4kL8mVqaLelc3PWOq2vuBy1fyLbW0wN gqm1g2HXP810aADx2DGzrHpCOfVe/LCjRioUUZ+ug6QXdpO6OVEiVPu9qNPgeV1lDJjJ 6a5RzJG+lxp90WSh9Las0U3ryxbwjt5KgCRNnqgYESi60f6EN8WOAfVeHWxE5AX1533A uZguDYQtVOb3fljeDV8vkXv/5q3ukYh8V/vyZhYSTV5OqC8tDLmm8nYkRxD+O2kg3JZS EF0bAc8N0BGuz0DHKFyPOcBEfvqXbIDlcC0WoMvK8i4qybd34BMfHu/00gtqxEC24uBv QS8w== 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=mSVImfGfE/8R5DPDlfsRpnRo7M80LxA6TuzJjyJh0kc=; b=pYjdbxibBEQO+ifVRrsxFTaVsSDq8PmOndVA5c5FgA5GPLmXNijdPGazRAs+O96cJv q+YchELzCu9Sm+eXuc7c13qoKplNsv9puiLlaBJ6nfyaJUtLNeX2bC1SVSKuqPayestV yIMpeeKpHssocc/ZYbGZ6LHjB8Vmtl1NM2mKiwnV/JMbOJlLbkVOv6P/79BFYTEJQnez XzW/dBC3WmI/ufix9wlnpERrojKFM6CHyiWhvG8QH5Bf/feHAdq3PUtyhYZEdy0nCTKq HxNLqaCUp4jeA1vIMZlM4YkYSPRaomwTSJ0di4ri9vpHjvswI60AAl5MWs0cOi9DREhu midg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="ocM1G/+X"; 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 h17si20478477plf.222.2021.10.25.17.25.01; Mon, 25 Oct 2021 17:25:13 -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="ocM1G/+X"; 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 S235813AbhJYTuu (ORCPT + 99 others); Mon, 25 Oct 2021 15:50:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:36944 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236857AbhJYTpX (ORCPT ); Mon, 25 Oct 2021 15:45:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4F2C560F4F; Mon, 25 Oct 2021 19:39:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1635190744; bh=xeZfBoYUUj8wuwf6ngr4Dp5HMAeqVdy8+8l0XBq+WTI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ocM1G/+XjBmALY96/dReVI2haAQcpmG8gmpeDbjSHn8hHBLnZKEzSDKW2b+069Buq SEO5Vst+2NL6EdUlYPY+eQlDbJ8SaU/QWxhTJBaamQvuNmJLSnHPBGQYCoMB+Y2JHG Eyp7celOuzBjRsprjpUfZ2GvpB6LuN8tPrCb7RC8= 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 5.14 041/169] NIOS2: irqflags: rename a redefined register name Date: Mon, 25 Oct 2021 21:13:42 +0200 Message-Id: <20211025191023.023574522@linuxfoundation.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211025191017.756020307@linuxfoundation.org> References: <20211025191017.756020307@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 b3ec3e510706..25acf27862f9 100644 --- a/arch/nios2/include/asm/irqflags.h +++ b/arch/nios2/include/asm/irqflags.h @@ -9,7 +9,7 @@ static inline unsigned long arch_local_save_flags(void) { - return RDCTL(CTL_STATUS); + return RDCTL(CTL_FSTATUS); } /* @@ -18,7 +18,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 183c720e454d..95b67dd16f81 100644 --- a/arch/nios2/include/asm/registers.h +++ b/arch/nios2/include/asm/registers.h @@ -11,7 +11,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