Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp1924581pxa; Sat, 29 Aug 2020 07:58:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/KurNQzguI9edVxiVPPDcan5AYh1WOgDc5MxZaTrHr/5FbGlgDkPlPsvevlWDlhc+RTU4 X-Received: by 2002:a05:6402:1212:: with SMTP id c18mr3676229edw.344.1598713109540; Sat, 29 Aug 2020 07:58:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598713109; cv=none; d=google.com; s=arc-20160816; b=pI1l2a0P1LANronJp8e1JrgnafuQsu0Mh3NyKXyNi/hcdttfTjD3padP2qytyzlFMf zTLvs0ITp/IptvBI4woOpzAeJngi1sjwR12tm5r620fX3zRd8nthEjHNb/4B9Fj5JFOM qxne83CPg+ClddO03m/cwSdoGn2P63SfzQhos/8lcczQlQkdaON5Qm8yTULz6tg/YXDX edGET2rrd1fL7zf1MwhJTHZ0gohsqDDmr7LUBSN94UGe0SZFGYNMRRdqhfB/a2vc/ZEs mngzZFt0oxoAByMOBP0OrzodSV4oD7fLGvMqx+8bU+HY4ZR/08HNjAp8sbusZprNLQT1 CbnA== 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:subject:cc:to:from:date :dkim-signature; bh=8DZP9eEqeQ0s7x6iAcaEFYwu/V8c01BZFZEOx6lqi4E=; b=WbppLgZ9bnJMcz0aR0MEO1hf1bpGwKDjrLfQv95fjADujSXCBIPNak7JqYHJS1HFpX 7YY2U5GIt61OKXyUgXq4FDbj2v73bqjuv3hybdn5dOtWdN2hRygpDIw7Ed1VEf/mETXD v3mLAwJnyM0AjfA2u8UFZbD8lQBH89LFlmC2cyvd9RC3NDjw5UWO8t5D9zR3qxTGMqAK kPElgsdDOf/smoHyCAQSZ4l22ktZw2zfRuFCTH7ccYTAoNXInxHbznrP7RrwLRgnog7O h9fCXAvmGvD1S9bvOumsAg/nvPBzVCvjaMfKnHIke6zzSobAkZu5929pWJVnEE4FjNm8 uSoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mP0t5E8r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id v2si1961008ejx.207.2020.08.29.07.58.07; Sat, 29 Aug 2020 07:58:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mP0t5E8r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1728169AbgH2O5J (ORCPT + 99 others); Sat, 29 Aug 2020 10:57:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:49618 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727772AbgH2O5I (ORCPT ); Sat, 29 Aug 2020 10:57:08 -0400 Received: from archlinux (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (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 74A2020791; Sat, 29 Aug 2020 14:57:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598713027; bh=qdXm+nrrrgpho23Ano7UqAgXxxXTWhxdyQUQUsHB+YQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=mP0t5E8r1r1tz/SdOWztOtGPNsuXcfxsBDVX+KrSQKE7+NC78hTa02xJHHkBf6UOg ndBKdrzyZRNnBV42awFK77kWcRn6HiDV05LtIbxGu2OoQ2/j2b4l2O2agK5ztNiRs3 MBPeSM2rflYRXHhs9lkytUMx1fiWbw+moZkwF1tk= Date: Sat, 29 Aug 2020 15:57:03 +0100 From: Jonathan Cameron To: Alexandru Elisei Cc: linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, xxm@rock-chips.com Subject: Re: [PATCH] iio: adc: rockchip_saradc: Select IIO_TRIGGERED_BUFFER Message-ID: <20200829155703.19bf1c9f@archlinux> In-Reply-To: <20200828174242.338068-1-alexandru.elisei@arm.com> References: <20200828174242.338068-1-alexandru.elisei@arm.com> X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 28 Aug 2020 18:42:42 +0100 Alexandru Elisei wrote: > Building the Rockchip saradc driver can trigger the following error if the > driver is compiled into the kernel, but the IIO triggered buffer is not: > > aarch64-linux-gnu-ld: drivers/iio/adc/rockchip_saradc.o: in function `rockchip_saradc_probe': > /path/to/linux/drivers/iio/adc/rockchip_saradc.c:427: undefined reference to `devm_iio_triggered_buffer_setup' > > This is because commit 4e130dc7b413 ("iio: adc: rockchip_saradc: Add > support iio buffers") added support for industrial I/O triggered buffers, > but didn't update Kconfig to build the required file. Fix that. > > Fixes: 4e130dc7b413 ("iio: adc: rockchip_saradc: Add support iio buffers") > Signed-off-by: Alexandru Elisei Sorry, I've had a patch queued to fix this for a while, but had a vacation just after merge window occurred that delayed me sending it out. Will send a pull sometime this weekend. Jonathan > --- > drivers/iio/adc/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig > index 66d9cc073157..baa36a07a9cf 100644 > --- a/drivers/iio/adc/Kconfig > +++ b/drivers/iio/adc/Kconfig > @@ -865,6 +865,7 @@ config ROCKCHIP_SARADC > tristate "Rockchip SARADC driver" > depends on ARCH_ROCKCHIP || (ARM && COMPILE_TEST) > depends on RESET_CONTROLLER > + select IIO_TRIGGERED_BUFFER > help > Say yes here to build support for the SARADC found in SoCs from > Rockchip.