Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2354309pxb; Mon, 20 Sep 2021 19:53:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpWtTP1G8OP5FXCixJv3vmWcasw7EzfZuWhhhpuqA/cRcDPA5XqVAuL4+Y1pObNgxlGqj1 X-Received: by 2002:a17:906:8a41:: with SMTP id gx1mr33787474ejc.507.1632192816949; Mon, 20 Sep 2021 19:53:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632192816; cv=none; d=google.com; s=arc-20160816; b=Gh7/Jd1j5aG6jXLDgpbvlk21ICIY40Y4iYRphndcwuL+cLzIDt+hBWUA79RRJL0g4X YsYvDM17/XEPpemJJ/xiHBy51Ir63fjjShOlTfYs6EGUXsC5e2gfspW3h70NNJlVIkjf m1/5J6AqF/X5pfvInc3WkxQhPbXX3yGTgJ7cBN337GAA+QGxwcGrBUUtIYmkquJCgt7A Y0x2HMAOY+NZAbrvc8/sucTP1WzKV9Zy6gWnKWpKCVIEra8YBr7qr8eDRKr5dkq8e175 K2nFgIEa70LDCBI3A5V0mpiMvZHu0NEpyrAODCBKLYTE/uE5cX4I9yjaZa43OVCWXr+H 6uMQ== 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=RIseoO0bqbHhCGBEOx3RG+fMSuNbOKwqxGZVbcJYx98=; b=BZbjpsJvn4S2mJ+WSEFt7UglKfiBCtioIk44WWdRv5QKjaUffcgcPiZAj01vM3u6We YDloUojhBaj6fxfgguJ6RWxvtS+suRDjNwV3CuZ2MMiwza8IJD7rK6/yYU3FaHUIu/bQ LCIgbRzrWYpUcqfDratIyAJBotmdgByRuFDwRkhvD+U7pxBWmC1dl2+qnQtymQMYMUEz JCXnJDccMsGOwIrzGAGHfgZRWB+72zp4pIRauftl9ndUth1y0DALkt8m6E8GuQobKoVB bIqovg0vstnnwuDj0W5QrF1pg4nWPhPA62ffPddi9evsUTnbOZaXuAi15sgeXfqYMvC1 jlmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FUQfIgu4; 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 rh20si1601894ejb.234.2021.09.20.19.53.13; Mon, 20 Sep 2021 19:53:36 -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=FUQfIgu4; 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 S1387443AbhITS54 (ORCPT + 99 others); Mon, 20 Sep 2021 14:57:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:37128 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1385801AbhITSw2 (ORCPT ); Mon, 20 Sep 2021 14:52:28 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0CCD961B08; Mon, 20 Sep 2021 17:35:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632159311; bh=wqxoSHrYnFKb1yKlRlNEg66y5BaK5jtnPVEV/r+uDP8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FUQfIgu4ElWB/weu302iSlrSpgfbZ+tLpmnmCx1qObiZx+SxtMsLctwvu2QLaCmGP MOoxeQSPtDPj2f08hHLPrZHj1abS/wxm6cfzj8XvNuFQulP7scGs9zELSx/vJihRFS 4YLcutSEhocVB5/zzRRMwh+sdFeEPZ4G9hG9n9sc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Denis Turischev , Randy Dunlap , Lee Jones , Sasha Levin Subject: [PATCH 5.14 166/168] mfd: lpc_sch: Rename GPIOBASE to prevent build error Date: Mon, 20 Sep 2021 18:45:04 +0200 Message-Id: <20210920163927.134340778@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163921.633181900@linuxfoundation.org> References: <20210920163921.633181900@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 cdff1eda69326fb46de10c5454212b3efcf4bb41 ] One MIPS platform (mach-rc32434) defines GPIOBASE. This macro conflicts with one of the same name in lpc_sch.c. Rename the latter one to prevent the build error. ../drivers/mfd/lpc_sch.c:25: error: "GPIOBASE" redefined [-Werror] 25 | #define GPIOBASE 0x44 ../arch/mips/include/asm/mach-rc32434/rb.h:32: note: this is the location of the previous definition 32 | #define GPIOBASE 0x050000 Cc: Denis Turischev Fixes: e82c60ae7d3a ("mfd: Introduce lpc_sch for Intel SCH LPC bridge") Signed-off-by: Randy Dunlap Signed-off-by: Lee Jones Signed-off-by: Sasha Levin --- drivers/mfd/lpc_sch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/lpc_sch.c b/drivers/mfd/lpc_sch.c index 428a526cbe86..9ab9adce06fd 100644 --- a/drivers/mfd/lpc_sch.c +++ b/drivers/mfd/lpc_sch.c @@ -22,7 +22,7 @@ #define SMBASE 0x40 #define SMBUS_IO_SIZE 64 -#define GPIOBASE 0x44 +#define GPIO_BASE 0x44 #define GPIO_IO_SIZE 64 #define GPIO_IO_SIZE_CENTERTON 128 @@ -145,7 +145,7 @@ static int lpc_sch_probe(struct pci_dev *dev, const struct pci_device_id *id) if (ret == 0) cells++; - ret = lpc_sch_populate_cell(dev, GPIOBASE, "sch_gpio", + ret = lpc_sch_populate_cell(dev, GPIO_BASE, "sch_gpio", info->io_size_gpio, id->device, &lpc_sch_cells[cells]); if (ret < 0) -- 2.30.2