Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2693093ybl; Thu, 29 Aug 2019 11:33:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqzrev+KWg0l0e8Bbhk/cIjjnBkEF92IxkwqUA2Etwp/LMsIS4+gWBbExe2FlPfIONXDFyX+ X-Received: by 2002:a17:90a:e984:: with SMTP id v4mr11756497pjy.128.1567103614939; Thu, 29 Aug 2019 11:33:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567103614; cv=none; d=google.com; s=arc-20160816; b=j60t+K7QWpDIrOjRzU8piO5WZJJS4HxCTpCJZ0wttl4AsM9MlG6SsWmhmhu76MMyN6 LTpJtr768jK1ocbX6Jx5Bww+oQoDBwzf68wz8cJEQfVX/f0vSBoI/J37Z0hOzWXKW+pb oA9uDS8OF8pevdW6MwTLT0UW8o55eoMqcCsWNLIzBdmg0vFRGiiQlsOahUJGTplTyFkL x6wTKlJExnWi0avCh4qg+oSy/XZLi57hCWIe/5pr6e65HCzNeu8MBkJfg4nsrnvF2pSa TGBMJf9BtbtNPgvr3M52BXCkvELFoL2SykcHZnoE3BOAMM9xOZ4BdRKTfiPIsqrIo0ZM rteg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=J/Sbq4asPY/tw0nFXP/jQADDgsNndK1ygcSQaAhs3oc=; b=qE/K6JEWpRAd1qh8m4L23+RZ/39NoPAO/nuHqfdY5LLxlCxI68pjna0cCC2GXxwY+u 06Q6Wk7tDAzCiNWQxeUA1eiJ1vX7YwZFhfepT3Zi+lx4entFAwmCS674vhKDdKUKzwIX lm5alQbzgMT6jW8VM5sJkMvrdqhDCA8d3crx1Gxl4iWOWMiLa6YJo0In3XA5PNrSm7f8 yDT+vb+C6yigFw5tQOL6GCK2xutVCGJ1UvoP8+r3tED93qfvWZFTFJiuFeYiuf86htgH GDOQMaDWc2b+lXqZ+gXTbMFMvF5ku3rck9+EXkuWlnBbTWoWNXjHguk7rlH7EiHtuESY /2Nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2I5O4I7X; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 29si2622409pgk.306.2019.08.29.11.33.19; Thu, 29 Aug 2019 11:33:34 -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=2I5O4I7X; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728694AbfH2SOA (ORCPT + 99 others); Thu, 29 Aug 2019 14:14:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:55646 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728614AbfH2SNz (ORCPT ); Thu, 29 Aug 2019 14:13:55 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A648B2189D; Thu, 29 Aug 2019 18:13:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567102434; bh=hGzTm4jDH5Y0WsNa/Vw17G8zXJmTDBmqLYC2f/tuNCw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2I5O4I7XPWdZrxGnB79Q0cuI7Ohcghxw11BRpyfnx8JOTFRh3FrsPOzfFRD9T/HAX gY8MRhqk5KIZ8pNECmB958Tqp1zMkzPfVTZ49pVAWc5cLw3UMSlSQpw7/yIJZiUVrY q1wRbRLc/k7+1wn0cMhd8GYn23VHB5Z8wbcQkhys= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: YueHaibing , Hulk Robot , Linus Walleij , Sasha Levin , linux-gpio@vger.kernel.org Subject: [PATCH AUTOSEL 5.2 23/76] gpio: Fix build error of function redefinition Date: Thu, 29 Aug 2019 14:12:18 -0400 Message-Id: <20190829181311.7562-23-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190829181311.7562-1-sashal@kernel.org> References: <20190829181311.7562-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: YueHaibing [ 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