Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp4130564ybe; Mon, 9 Sep 2019 04:51:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqx69mbCiqAg20N9AxlMfM1fs6YkvccqCIdgf7c+Ep40W1ECewxuQUTjePFXM9cx5B9hIa5v X-Received: by 2002:aa7:dc59:: with SMTP id g25mr24067289edu.183.1568029863587; Mon, 09 Sep 2019 04:51:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568029863; cv=none; d=google.com; s=arc-20160816; b=eBG1Bk/3u58thuH6PmTlE73LRaaCl+8ZxJYuIrK4BTQmWrljj5xv71uiulCWTv7xz/ +ZE3uodyEMTJfAEzNPdML4ciaJjqWZiwFY240lCJv9SjLvv9L8ztp1iBv6p5Kc3yLvvv w9tRUS+rFA8atAZjfqKeQtnBTW58J9XEzsAoE0GxPPZdOs0uwRc/eJfjtsd6TWK9L8Kk Jxr9sDfQMFbDDHicNOG9BRdIIHDt7dzL/UVhGabpYDLol4XSs24xyYfS2UOhF8Spvoh2 q1woDbtlwuzwAp7X3/eZ97s9MdHYK2RN0AWc8z+GgOVHRPeM5Ck0kvjKJJNGQR5wORO9 UmzA== 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=tANXmXILXCL4v6pZZKK8TN1pKdblheYueuQm6cdGDS0=; b=XYVulfLPAXBkY6u4tvgpg6WPH/YBjHeL8bnwQzZpfCLlNt2RS9mLWjnQGaAUBVW+Jl KZqdCUiqdzv7sZ5ejC8wxTafFnSlW7UImhhBqIrK4D7GbuPAVYTWE34DJ2gPa1XEwDns Z3sR5GCDo4qlEPijQfkhMe+hp2b+4KnPJU+YsAMmKeW93nCohrH8I0bLRb8Aq2b08uh+ gM80jRGe36BIStCvQZmrxOdqXA8Q1AijaRH5LY+pE2lOHySnDPyWwRBnssThwbfRMja1 tC7dY5IRKPUtgTTgFfOHGo+YnC9DXVESovU2XLBnqDHSAYI67EqQcPZmyOsfI50GkRaW 89Aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Gsge2rNh; 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 f19si8806711edb.385.2019.09.09.04.50.40; Mon, 09 Sep 2019 04:51:03 -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=Gsge2rNh; 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 S1732376AbfIHMuy (ORCPT + 99 others); Sun, 8 Sep 2019 08:50:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:41968 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732329AbfIHMuv (ORCPT ); Sun, 8 Sep 2019 08:50:51 -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 56FB02196F; Sun, 8 Sep 2019 12:50:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567947050; bh=q54WEmURkkkwIjLKPzleqdQLu47tYN82atWMJMqBdwU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Gsge2rNhswBnjrN69bcy/kNHqwQVHxx2XrLh2+rDlU+tOIBlzpHeSJEtQhvFhoeUF Z2djA+4IJMUqqlZ4VL9cp84I6Xwiz2E1yy1oGKy6JicyvOaHmHgovwcr4FI+DvmibZ KIS59hEFeVz8mBY00sN9ZMR2lTZGpEaZxn6T8T24= 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 5.2 41/94] gpio: Fix build error of function redefinition Date: Sun, 8 Sep 2019 13:41:37 +0100 Message-Id: <20190908121151.615238950@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190908121150.420989666@linuxfoundation.org> References: <20190908121150.420989666@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 39745b8bdd65d..b3115d1a7d494 100644 --- a/include/linux/gpio.h +++ b/include/linux/gpio.h @@ -240,30 +240,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