Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5246447ybe; Tue, 10 Sep 2019 00:17:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqzkPsuG0HsqK6vCWil+4zEnKn4SUEfEjCa+Rdd6513cXkbKqSAnj7Qw5PRpUDxZJUJsZAkv X-Received: by 2002:a05:6402:b29:: with SMTP id bo9mr28648844edb.10.1568099871715; Tue, 10 Sep 2019 00:17:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568099871; cv=none; d=google.com; s=arc-20160816; b=PtQj05I2ZahtgkC31wu/RuBThhjuise73MXY6WuKDifmZ0OoL79ZpqT4D+ygkiL0uE a+7WsvIlUqUHsCnKjyquDHycqkCBILma70TkoYFDu+Dm1qfrJYlsn5SWy7g4Hw+puhup +MmbTMLoTEUWGB3JxtxVOOyEdU3KQNBNrIUXH/49t+8B2Ot8Hpt74XT7pG947dpYTy9B tc+XAo5lXQGXO5nFBm2fA72Rj28nyoxDjoB9PHpUcxOb+M7VIqN9ujuU+oCgtRxLhGom HhqO4FdVNoivvODgVrsSKm5dG5GqP53sZ/C5lHh314Otu5tCUkTrQWZjVX2h/+Au78kQ NtZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=trdu3Raqy6nBTvqg9hJg0PGo2feI6XlJlJMEiTHWpBs=; b=XBzWi6Qql3sljtDyUuhtyzYM8bcJ/9O6hux9k40pSVhCgUK+ZECDos9QKnfHjOv7xs NZ3VdMiBMpWcYz8SgSkm84q2XHfS1pGg50Gi+KfOH8xpmxAGT6L4WoMvkTCBIIYBTNbO mhCGJ/Pr80GicFaDSEl2ZXChiYoxMaCQpGzY5Z9lku7N+T/qndMYQcrW09/O09D4S0aA vZiTQF81pqw5/0tUTPPdkPY5h1855kjJubmfkMNMec5zYZ9Dza4KVOgKocbTEmUGsXJk 9Xsg60kgNbSET+uneVSzv8vUJ7FZil8InWOVVuQk8mFwxNBdduq3LknBd0Vgu5QDUdQP 7TdA== ARC-Authentication-Results: i=1; mx.google.com; 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 d17si7520150edr.294.2019.09.10.00.17.27; Tue, 10 Sep 2019 00:17:51 -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; 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 S2391130AbfIIMXP (ORCPT + 99 others); Mon, 9 Sep 2019 08:23:15 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:44529 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726713AbfIIMXO (ORCPT ); Mon, 9 Sep 2019 08:23:14 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 206C6808A9; Mon, 9 Sep 2019 14:22:59 +0200 (CEST) Date: Mon, 9 Sep 2019 14:23:12 +0200 From: Pavel Machek To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Hulk Robot , YueHaibing , Linus Walleij , Sasha Levin Subject: Re: [PATCH 4.19 21/57] gpio: Fix build error of function redefinition Message-ID: <20190909122312.GB18869@amd> References: <20190908121125.608195329@linuxfoundation.org> <20190908121134.504042593@linuxfoundation.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="98e8jtXdkpgskNou" Content-Disposition: inline In-Reply-To: <20190908121134.504042593@linuxfoundation.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --98e8jtXdkpgskNou Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun 2019-09-08 13:41:45, Greg Kroah-Hartman wrote: > [ Upstream commit 68e03b85474a51ec1921b4d13204782594ef7223 ] >=20 > when do randbuilding, I got this error: >=20 > 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_p= in_range was here > gpiochip_add_pin_range(struct gpio_chip *chip, const char *pinctl_name, > ^~~~~~~~~~~~~~~~~~~~~~ > I'm pretty sure this will cause problems. driver.h versions return zero and are conditional on !CONFIG_PINCTRL. gpio.h versions did return error and did warn... and are conditional on !CONFIG_GPIOLIB. So this introduces error in !CONFIG_PINCTRL && !CONFIG_GPIOLIB case. Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --98e8jtXdkpgskNou Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl12RDAACgkQMOfwapXb+vKZ5ACeJt2t4fTSAaWT+mQXU4LL/XUg BIoAnRgC42Bj6kxvyiOtAGtggTKSoTit =Rgfb -----END PGP SIGNATURE----- --98e8jtXdkpgskNou--