Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5414486ybe; Tue, 10 Sep 2019 03:22:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqyKWSoukW8pkq2EjvcjeLdGHCs/Bprl0qCmTE264ZIpPMB2bGl3IRGrXB++c7Z8GmzY0/WY X-Received: by 2002:a50:d68a:: with SMTP id r10mr29820850edi.151.1568110962032; Tue, 10 Sep 2019 03:22:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568110962; cv=none; d=google.com; s=arc-20160816; b=GQpkh0VHtNNB28VeIK/K3BlN+3VOCyHTei0xxZ6BD5n7PClOoonivjE1h9MhM/SkNW FBShiqkMmW1SZIfkN2a6vhQXWBOqyMNf0JnOluNuea90NVuQRh+s7m9S/O6sD0Fr42VF bbooV/RkpawQMek0Dxx5c0Ljf3LjHB/idi1nr6ZAVzTcJEQ1NIBbQnZCWLHftTz60SwQ XbbBCipaBG3upgKE/TqZl84q0CDnDJ5uCfadVYyyRdSQ4/tWjv2g68OpDExNK0EqVIAO 1xvDsfcuiGoCMz9e1/Qsc/y3EGalz0ScNALYq3bfTAargJCm1OYdEykBrJygTsnWaor1 o98Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=06X+uzHeRDg+QH1SaUjE0698OIrsfbiEeGRsijnxsiQ=; b=W2BmcSn/aWFNAtS4r9vtwD9F5+r58aAUghisu5rCioA8+yxL0T0FfiA9gYkiYpHR+Q hzOKmchYBWRIJD5TWWgi1uBJt7G1SCWr5/RjihxoHyihNcG4/zOfhc/6EhYgIQYDV9da nW4+8ljKnJXkV2BRczWNhvH29CY2/g6pSuDlXprksUES8fmo8UOh/7UC/xY3NiPiUlwE D2KJFxdtjDqtn0v2+o8jmtE3MpQZX0+fz29yDdptQxtnkyU5IKKjEB8yDvs5casJjIQW nb5CENEtiWaZm8pfHbHvvtF7Pj3aev/ddM+pB0w/MkH2WlC4bpK21dLDR1ZoXbGoWhS4 Y3oQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@onstation.org header.s=default header.b=a6YmcW0P; 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 r9si6096229edm.289.2019.09.10.03.22.18; Tue, 10 Sep 2019 03:22:42 -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 (test mode) header.i=@onstation.org header.s=default header.b=a6YmcW0P; 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 S1729845AbfIIXAw (ORCPT + 99 others); Mon, 9 Sep 2019 19:00:52 -0400 Received: from onstation.org ([52.200.56.107]:44768 "EHLO onstation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726474AbfIIXAw (ORCPT ); Mon, 9 Sep 2019 19:00:52 -0400 Received: from localhost (c-98-239-145-235.hsd1.wv.comcast.net [98.239.145.235]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: masneyb) by onstation.org (Postfix) with ESMTPSA id 071EA3EECB; Mon, 9 Sep 2019 23:00:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=onstation.org; s=default; t=1568070051; bh=6Kv4KMaygv0KswF7kk/EVVDG9vrBQXD7yG5Bil7Y34A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=a6YmcW0Ph4LLfgyO3jfVMFR5L6ufv/rzPUTiqRPgQ1puSrzqLxK+fq+ACbZrnbLLP +iVuxSaP2nanO9bD4PA7tWbbZqxpHI4LsocCCxi3Np9LvSjOIbT1vfvpYP1+uY/tkP rDgx16eprx9w9aRwXIqDbBsVXDLBOLzewb1/HHMY= Date: Mon, 9 Sep 2019 19:00:50 -0400 From: Brian Masney To: Arnd Bergmann Cc: Linus Walleij , Bartosz Golaszewski , Masahiro Yamada , Hulk Robot , YueHaibing , Hans Verkuil , Stephen Boyd , Enrico Weigelt , Johan Hovold , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] gpio: fix incorrect merge of linux/gpio/driver.h Message-ID: <20190909230050.GA5181@onstation.org> References: <20190909203512.675822-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190909203512.675822-1-arnd@arndb.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 09, 2019 at 10:34:59PM +0200, Arnd Bergmann wrote: > Two otherwise correct patches got merged incorrectly, which leads to > build problems when CONFIG_GPIOLIB is disabled: > > include/linux/gpio/driver.h:722:19: error: static declaration of 'gpiochip_lock_as_irq' follows non-static declaration > static inline int gpiochip_lock_as_irq(struct gpio_chip *chip, > ^ > include/linux/gpio/driver.h:706:5: note: previous declaration is here > int gpiochip_lock_as_irq(struct gpio_chip *chip, unsigned int offset); > ^ > include/linux/gpio/driver.h:729:20: error: static declaration of 'gpiochip_unlock_as_irq' follows non-static declaration > static inline void gpiochip_unlock_as_irq(struct gpio_chip *chip, > ^ > include/linux/gpio/driver.h:707:6: note: previous declaration is here > void gpiochip_unlock_as_irq(struct gpio_chip *chip, unsigned int offset); > > Fixes: 8a6abcd04e4c ("Merge tag 'gpio-v5.4-updates-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux into devel") > Fixes: 9091373ab7ea ("gpio: remove less important #ifdef around declarations") > Fixes: c7663fa2a663 ("gpio: Move gpiochip_lock/unlock_as_irq to gpio/driver.h") > Signed-off-by: Arnd Bergmann Reviewed-by: Brian Masney