Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp4083687ybe; Mon, 9 Sep 2019 04:03:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqwrNgAx4SbBiw+alhl230gFTl+DBk8htFs/WSKN/gnqKbxzZvgIdjwBTd4tWYQgwL2XGrLX X-Received: by 2002:aa7:da01:: with SMTP id r1mr23729870eds.87.1568026980113; Mon, 09 Sep 2019 04:03:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568026980; cv=none; d=google.com; s=arc-20160816; b=QU2W5lulNOYHb8twaFEn8AUaP2H1GA5NZkGj0m52EPIFF8PpTg90cicxukNdoVdukb yLLbSE9zc0b1bIuVWTPkEwvBDFSxYJV8j+sqTBRaECzRax0ZcWOS0xPhGKKd5PuwlIgn 1oHpYH+i6QspCgYWir3Ky/GfD5tgLKnXBzj2ewnYV0TL2oOWDa1yzJs92yhKiupNSHvr 5WKwkfpoxidceSE37qt28HMcKzrNKkFFXk+dlZ1ffymp28M88y0A0iMe9EFlJKrnoAii GSmhxeyAjmk97QVWDwnS0b0EFN3z7yLIdXMQFArZSp9QAzTuyFntHaYDtITr/oM3RVJz KiMA== 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=8WNxmDwHOoarBc3jV79u2QR5JLKzL8s4W2FsfUPBsM4=; b=nCTJoFexCZ55v5HOugxjftrnXyHigUtdx2znimKARFFOP7kQOxaz6v4sRc5lFF7HML RKFpg6bt3PKxEs5rGAU8pptlEesDNaVIuu50Dmxhgw1d1lbpAhQILQ5z+RDavxynrTDh /njlFrEUJMaHyJlJnpRfhfAzxXKVRhr1AZSxVyPOAD46tsWvyW2clsR4AG7NPIlfXXqM cKi2BYog8z5Q5P2slB+LC641yb9yRiLcEKTXAtyySXXytmc2zFkrb73ij/vjNryxr3LW wihNWVRG2gaCCQrRTVqJUA4lVIMiEc48jE09cGACMRcrO6LTDYcx7OKUYMuynGqj1LCk qEDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AaaMLT5E; 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 y17si7918830edo.354.2019.09.09.04.02.35; Mon, 09 Sep 2019 04:03:00 -0700 (PDT) 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=AaaMLT5E; 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 S1730460AbfIHMqm (ORCPT + 99 others); Sun, 8 Sep 2019 08:46:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:34338 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730424AbfIHMqg (ORCPT ); Sun, 8 Sep 2019 08:46:36 -0400 Received: from localhost (unknown [62.28.240.114]) (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 23FBE20644; Sun, 8 Sep 2019 12:46:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567946795; bh=yj1L5TzB2zLxXbKr7boJeyCjD2/e8hSz4PmXW/rMXt4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AaaMLT5ER4D5RUfbq7szyVTxx87iysXobcjGuAid6xXlJtBbXHEtPmLRFktTJR40u ajsD9eb5A9OvW6Tqph76GZ59AdqUFcjs6iXiP9BHD0E0IdUffY7H5ojqOphXR9L9tE shnvBHU7lcAd/X+G6ueofklp5T+HK9rlugcS1inc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hulk Robot , YueHaibing , Linus Walleij , Sasha Levin Subject: [PATCH 4.14 07/40] gpio: Fix build error of function redefinition Date: Sun, 8 Sep 2019 13:41:40 +0100 Message-Id: <20190908121117.752034732@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190908121114.260662089@linuxfoundation.org> References: <20190908121114.260662089@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 [ Upstream commit 68e03b85474a51ec1921b4d13204782594ef7223 ] when do randbuilding, I got this error: In file included from drivers/hwmon/pmbus/ucd9000.c:19:0: ./include/linux/gpio/driver.h:576:1: error: redefinition of gpiochip_add_pin_range gpiochip_add_pin_range(struct gpio_chip *chip, const char *pinctl_name, ^~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/hwmon/pmbus/ucd9000.c:18:0: ./include/linux/gpio.h:245:1: note: previous definition of gpiochip_add_pin_range was here gpiochip_add_pin_range(struct gpio_chip *chip, const char *pinctl_name, ^~~~~~~~~~~~~~~~~~~~~~ Reported-by: Hulk Robot Fixes: 964cb341882f ("gpio: move pincontrol calls to ") Signed-off-by: YueHaibing Link: https://lore.kernel.org/r/20190731123814.46624-1-yuehaibing@huawei.com Signed-off-by: Linus Walleij Signed-off-by: Sasha Levin --- include/linux/gpio.h | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/include/linux/gpio.h b/include/linux/gpio.h index 8ef7fc0ce0f0c..b2f103b170a97 100644 --- a/include/linux/gpio.h +++ b/include/linux/gpio.h @@ -230,30 +230,6 @@ static inline int irq_to_gpio(unsigned irq) return -EINVAL; } -static inline int -gpiochip_add_pin_range(struct gpio_chip *chip, const char *pinctl_name, - unsigned int gpio_offset, unsigned int pin_offset, - unsigned int npins) -{ - WARN_ON(1); - return -EINVAL; -} - -static inline int -gpiochip_add_pingroup_range(struct gpio_chip *chip, - struct pinctrl_dev *pctldev, - unsigned int gpio_offset, const char *pin_group) -{ - WARN_ON(1); - return -EINVAL; -} - -static inline void -gpiochip_remove_pin_ranges(struct gpio_chip *chip) -{ - WARN_ON(1); -} - static inline int devm_gpio_request(struct device *dev, unsigned gpio, const char *label) { -- 2.20.1