Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp4843913rwl; Sun, 8 Jan 2023 04:18:51 -0800 (PST) X-Google-Smtp-Source: AMrXdXtdE36SRvPVoSSPlB9jvHSeGIY668EKxR8DokFHQpWyWRs5WeVaPlVZ6AdzEmSVHNIbiwdS X-Received: by 2002:a17:906:2ccc:b0:7c0:e23d:12c4 with SMTP id r12-20020a1709062ccc00b007c0e23d12c4mr47033759ejr.63.1673180330790; Sun, 08 Jan 2023 04:18:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673180330; cv=none; d=google.com; s=arc-20160816; b=uOzyZ2nQunqJMcG7zA26YSC6lTBaKd7ogAr91lhZf+QfeN91QjFPNDRZ2dKWXEe+RK eSkFze/70IlfIJnUbUsorJ5uB3nFF/WnYXz1PCeuKqDxLJEJKl8IRfDUrrlSMOV4wLU0 Qcf4n83YrNZqku4FcTyiqevZo6/X9+fiTIaV2CA9u0KvSzZm/USW78OkkRY+7yHpIC+h XOJWCM8WgP4h6Wsq4XtvA1am/dFTZU0Jo2XIJpQvjIMcf3uyn3pD/Ef6GfrhI5oMSSu5 Pudp73pvSLn+5I5v9I4sERM4DPy7DGSJOlLiHCQ51Fg0NXMb9vI93LTvamPwZWtGKbsW meAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=8RW+Uj8qVEx42DzM2cDQIGZ24kODXddf3FYZjnPHMc8=; b=bNve9sMhbtri/57ElcVnQqG6RdFePBO5VIHU1cB1Kd4PBWRw9VdO2YKoGLPr3ANgXf FHXR5iMbkGJUnfZSKlpL4s5hBXUP+rZKAgJhhNMlGmr8gBjwzyLNqSuSHPl/ZtEScc9K We57lHs7WjxvY+oYB3c0AsSiZf48A8sgxSC9Wghv48ts2hLXerbjIDHiM7x0WD2zax5w hla1gjTPSmge87iFqMhnWfDxsmb4uBPgO+tro03OHI53XAgmQ31qa8Y2TCqxBBnXLI3T xUrVxoe5ImPAf/J1A3m3dJQufr8GylyTjDdt4RapeY9v0xt5d4fBjx7Jx20qe5ghzprK u7Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sah0DuQT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sa11-20020a1709076d0b00b007c841b8fa31si7423807ejc.629.2023.01.08.04.18.37; Sun, 08 Jan 2023 04:18:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sah0DuQT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S233044AbjAHMCU (ORCPT + 55 others); Sun, 8 Jan 2023 07:02:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233186AbjAHMCQ (ORCPT ); Sun, 8 Jan 2023 07:02:16 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0DD3FCEA; Sun, 8 Jan 2023 04:02:14 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 99155B8085C; Sun, 8 Jan 2023 12:02:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26C13C433D2; Sun, 8 Jan 2023 12:02:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673179332; bh=SGxjXK9k/w/LOoqXLxQr0dPDFa8dALCIhSRUWIRumeA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=sah0DuQT7VF2ToVJVCTF+wuUx3Sw4e+e5aoUR9Q/se+HFwyaVrdJUok9k5sUBgdiB eIXzqGZxG8XhimoHrjeheKLEfhIbAVzGt65LELmSrvBpBUwpjJbRH6FjK6g/8YjQQS MqKSaLaIJ4+5HylohTbg6BZOKi60+jCacXw6N/p3FiwaKh7FUZyckRQ2MhF3tOY9Um 6S5JisluBQ92vC95caqpOvqefMMxpNyT1cw/vwVqEHPPx59eoz9AZcQMLRmoEq2BFS FUuIGUPT+ASDqR5FPWnoiW9lCOaFjAvbGhAlsPwxJTYmWmtY9yVnlh2fu7ikqAvbUB 1IVLx22x0D/ag== Date: Sun, 8 Jan 2023 12:15:40 +0000 From: Jonathan Cameron To: Vladimir Oltean Cc: linux-iio@vger.kernel.org, Lorenzo Bianconi , Lars-Peter Clausen , linux-kernel@vger.kernel.org Subject: Re: [PATCH] iio: imu: st_lsm6dsx: fix build when CONFIG_IIO_TRIGGERED_BUFFER=m Message-ID: <20230108121540.461f4c0c@jic23-huawei> In-Reply-To: <20230103130348.1733467-1-vladimir.oltean@nxp.com> References: <20230103130348.1733467-1-vladimir.oltean@nxp.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.36; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 3 Jan 2023 15:03:48 +0200 Vladimir Oltean wrote: > The following kernel linkage error: > > st_lsm6dsx_core.o: in function `st_lsm6dsx_sw_buffers_setup': > st_lsm6dsx_core.c:2578: undefined reference to `devm_iio_triggered_buffer_setup_ext' > > is caused by the fact that the object owning devm_iio_triggered_buffer_setup_ext() > (drivers/iio/buffer/industrialio-triggered-buffer.o) is allowed to be > built as module when its user (drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c) > is built-in. > > The st_lsm6dsx driver already has a "select IIO_BUFFER", so add another > select for IIO_TRIGGERED_BUFFER, to make that option follow what is set > for the st_lsm6dsx driver. This is similar to what other iio drivers do. > > Fixes: 2cfb2180c3e8 ("iio: imu: st_lsm6dsx: introduce sw trigger support") > Signed-off-by: Vladimir Oltean Applied to the fixes-togreg branch of iio.git and marked for stable. Thanks, Jonathan > --- > drivers/iio/imu/st_lsm6dsx/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/iio/imu/st_lsm6dsx/Kconfig b/drivers/iio/imu/st_lsm6dsx/Kconfig > index f6660847fb58..8c16cdacf2f2 100644 > --- a/drivers/iio/imu/st_lsm6dsx/Kconfig > +++ b/drivers/iio/imu/st_lsm6dsx/Kconfig > @@ -4,6 +4,7 @@ config IIO_ST_LSM6DSX > tristate "ST_LSM6DSx driver for STM 6-axis IMU MEMS sensors" > depends on (I2C || SPI || I3C) > select IIO_BUFFER > + select IIO_TRIGGERED_BUFFER > select IIO_KFIFO_BUF > select IIO_ST_LSM6DSX_I2C if (I2C) > select IIO_ST_LSM6DSX_SPI if (SPI_MASTER)