Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4741273pxj; Tue, 25 May 2021 15:30:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKeD7UO8S5dQ9fQNT+q9qBAqz4+wKacYuck8osD3jepsvEh1HZPrkSg7VbR6guy9ud/R6+ X-Received: by 2002:aa7:cd16:: with SMTP id b22mr20287449edw.108.1621981808056; Tue, 25 May 2021 15:30:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621981808; cv=none; d=google.com; s=arc-20160816; b=bdlqksVgOHXpOV/NEXEDidC0t8VeXIgcwSqsy3QAiLW/rGwMW4Zq8zzX6/DkOc7/t2 Y0R64IaYcwp/KNqehW+GzdrWRhHmXuZVcdLFDrmZxylMW25Yh8gc9l6EFT1Q+2u5hc7/ Dow8wdiEL6LgHOkhD3OQ8x9QtXpSX4xOlhh2HUMdZrzjPD0lap0AjRw7efvopCo4etBG PFt6lKT0ieCFNhAln2w5suXkFKJFc68VcnXCk5HKe4MqJb/QLhebtvtQMmXLDZUSxazL qGV5z9xGNvwVANyLt4VCHKJFbXchEr789a9txvfTsIxsnsuSGax0+uO6UO4gfa3ppoGk qdVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=5PHhIWN+eO5SHcNAJWfZ/2KL4dpfn55E8zQX0ZucmOU=; b=uUM2ghLPwMEwkuIn5pZTIWJwYi4M4HqVnj1+c6EITnTr2YVIC6OWe3dlTOF7zcJDvm T9Wo1DJoA521M1RfNx9i7Av4rfmBwUwoOd0KnZndsX0QMPTVrVzmwZK5zVyGl+lu5maA AE0G/o/AVTuVBCJNjdFDHmL8UCAN5/haFpAzi12NzizFNW91O2WaJAosPfvX0Yui5sBI gXAZnQmIUscJUvcVZ8DrwS4pAhLg1vHDQ1wP7nX7W0DwOycCsey5VhqCJNahej95sj+j CEzEz/Cx1AG91HH3RV54VI3mlB1IpKCka7eqZduYs9guIdS1dZieSzqLgbVqOQgEtVG0 bkPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="l/kSEVjz"; 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 lu18si17253910ejb.247.2021.05.25.15.29.43; Tue, 25 May 2021 15:30:08 -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=k20201202 header.b="l/kSEVjz"; 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 S233252AbhEYUc0 (ORCPT + 99 others); Tue, 25 May 2021 16:32:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:33968 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229643AbhEYUcZ (ORCPT ); Tue, 25 May 2021 16:32:25 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9BA8A613EC; Tue, 25 May 2021 20:30:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621974655; bh=YB5s9KqU3I3U0EwmlQEZQw1u1H5+l4vhQZio8tQDxYs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=l/kSEVjzzpoSmDZtXwhyPpiLBWJFOMLiiJdkZnUkEnjVxIP+ymjMljIoA6VJxwL7f 6oHEtmU95MjYLld20dbrEUhyRA5a05j5LdrpfZ1SoSD+sNzvAeJj/L+x4UOLzJAMS7 jKhmGmaIqQUsWjxLEHCeJKHhYbQ7DLvN2m7scGtHFauO0fr53Y2S2j1EiuQcwC2/Vk iYl3Wl6Ge54GPYeQONO0Tgm40jtbkOUI63JYunfQuFF0kzdTPv08bgrSWHJxWDl8Dx ATTJniz3W3LO7Yyo3MkohMzYa407hq0Lp2pVYkkutpEObLKqUhHBmG4z72z+ZS9Uu8 8JDPTeCNf/1mw== Date: Tue, 25 May 2021 22:30:52 +0200 From: Wolfram Sang To: Jonathan Cameron Cc: Sean Nyekjaer , trix@redhat.com, lars@metafoo.de, andy.shevchenko@gmail.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org Subject: Re: [PATCH] iio: accel: fxls8962af: conditionally compile fxls8962af_i2c_raw_read_errata3() Message-ID: Mail-Followup-To: Wolfram Sang , Jonathan Cameron , Sean Nyekjaer , trix@redhat.com, lars@metafoo.de, andy.shevchenko@gmail.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org References: <20210518234828.1930387-1-trix@redhat.com> <20210521175406.274f713b@jic23-huawei> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="v0fj/HaOmU5lDP4H" Content-Disposition: inline In-Reply-To: <20210521175406.274f713b@jic23-huawei> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --v0fj/HaOmU5lDP4H Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > > > The build is failing with this link error > > > ld: fxls8962af-core.o: in function `fxls8962af_fifo_transfer': > > > fxls8962af-core.c: undefined reference to `i2c_verify_client' > > >=20 > > > This is needed for the i2c variant, not the spi variant. So > > > conditionally compile based on CONFIG_FXLS8962AF_I2C. > > > =20 > > Fixes: 68068fad0e1c ("iio: accel: fxls8962af: fix errata bug E3 - I2C b= urst reads") > > > Signed-off-by: Tom Rix =20 > > Reviewed-by: Sean Nyekjaer >=20 > Given the purpose of that check is to verify it was an i2c_client > should we be looking to instead provide a stub for the case where > we don't have CONFIG_I2C? >=20 > +CC Wolfram and linux-i2c list for input. Such a stub sounds reasonable. --v0fj/HaOmU5lDP4H Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmCtXncACgkQFA3kzBSg KbaGzg/+PC+EeK4TZxKGveYd0I11gaP37dNvJKXHqjBQO8pzsZnBpWzzprDPvrt7 7+hC6jYXPErO5okEMg+Dj+LC0T94F+YoNG7zvq4Q3BZ9aar6F8pmACeXKCTxU+di NmBDqGVqGUqu6YQY/0Ya3XBewc4OXfAJtFvtxydVJjwZ4U1r0gKssXoT2QD9GY1r 0MzNUtP6Vqgqu65wOGmtp36+hsxJQ+kesKA9YQhV/NyNwKKwO5+PRbUMeyNjAGIr nUsw7N+Y7K8jdinauJguJmwa75ff3ZL8fGj0hTJR4V+twKP+u0OwRHxNYi0jLNQF Zq7/4K+ktNEupCl0yJenrQyGTwdS6F5lpr3trPm8uY03SZBdnUZHUmmzpviX251l uyIv272uWq8PQVXQ203VjeOxbnvK6OUfOkc+yDoA5B22AWlrL/Q7HBWStZj8iVCr yjADh39qnZjdAbggBCkcL54hKumFhiHcIXP6tGsrtx64uAOoo7ndnqKDLVKPbuz7 qZaggAabA18Pi6o3+y+jE8u8xSxoU2JRGu+WdsFvfCZaYkIAnP4mVgD/duhumWww vC+x4XxSWVvR9bGX/FK5P3sh0J3kQF+Re7ysreydNBLiHlniVZ60Z7AhwetIw7eR wwP2oeNwHfkF60289uRYcCtSCuwCfUBaY0w3TnP/PqUMXrvW98U= =XRTq -----END PGP SIGNATURE----- --v0fj/HaOmU5lDP4H--