From: Alexey Makhalov <alexey.makhalov@broadcom.com>
To: Borislav Petkov <bp@alien8.de>
Cc: linux-kernel@vger.kernel.org,
bcm-kernel-feedback-list@broadcom.com, lkp@intel.com,
zack.rusin@broadcom.com, dri-devel@lists.freedesktop.org,
daniel@ffwll.ch, airlied@gmail.com, tzimmermann@suse.de,
mripard@kernel.org, maarten.lankhorst@linux.intel.com,
linux-iio@vger.kernel.org, jic23@kernel.org, lars@metafoo.de,
nuno.sa@analog.com, dragos.bogdan@analog.com,
anshulusr@gmail.com, andrea.collamati@gmail.com,
oe-kbuild-all@lists.linux.dev, x86@kernel.org
Subject: Re: [PATCH 2/2] iio: dac: Fix dependencies of AD9739A
Date: Mon, 17 Jun 2024 13:48:38 -0700 [thread overview]
Message-ID: <19e8a6dd-b0d4-4e88-9ad2-e38787a5aee8@broadcom.com> (raw)
In-Reply-To: <20240617090428.GBZm_8HMQ9XJe_VQga@fat_crate.local>
On 6/17/24 2:04 AM, Borislav Petkov wrote:
> On Sat, Jun 15, 2024 at 06:25:11PM -0700, Alexey Makhalov wrote:
>> 0-DAY CI Kernel Test automation reported an issue:
>>
>> ld: drivers/base/regmap/regmap-spi.o: in function `regmap_spi_read':
>> regmap-spi.c:(.text+0xf): undefined reference to `spi_write_then_read'
>> ld: drivers/base/regmap/regmap-spi.o: in function `regmap_spi_gather_write':
>> regmap-spi.c:(.text+0x2b4): undefined reference to `spi_sync'
>> ld: drivers/base/regmap/regmap-spi.o: in function `spi_sync_transfer.constprop.0':
>> regmap-spi.c:(.text+0x337): undefined reference to `spi_sync'
>> ld: drivers/base/regmap/regmap-spi.o: in function `regmap_spi_async_write':
>> regmap-spi.c:(.text+0x445): undefined reference to `spi_async'
>> ld: drivers/iio/dac/ad9739a.o: in function `ad9739a_driver_init':
>> ad9739a.c:(.init.text+0x10): undefined reference to `__spi_register_driver'
>>
>> Kconfig warnings: (for reference only)
>> WARNING: unmet direct dependencies detected for REGMAP_SPI
>> Depends on [n]: SPI [=n]
>> Selected by [y]:
>> - AD9739A [=y] && IIO [=y] && (SPI [=n] || COMPILE_TEST [=y])
>>
>> The issue is caused by CONFIG_AD9739A=y when CONFIG_SPI is not set.
>>
>> Add explicit dependency on SPI and conditional selection of REGMAP_SPI.
>>
>> Fixes: e77603d5468b ("iio: dac: support the ad9739a RF DAC")
>> Reported-by: kernel test robot <lkp@intel.com>
>> Closes: https://lore.kernel.org/oe-kbuild-all/202406152104.FxakP1MB-lkp@intel.com/
>> Signed-off-by: Alexey Makhalov <alexey.makhalov@broadcom.com>
>> ---
>> drivers/iio/dac/Kconfig | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/iio/dac/Kconfig b/drivers/iio/dac/Kconfig
>> index 3c2bf620f00f..d095f4d26e49 100644
>> --- a/drivers/iio/dac/Kconfig
>> +++ b/drivers/iio/dac/Kconfig
>> @@ -133,8 +133,8 @@ config AD5624R_SPI
>>
>> config AD9739A
>> tristate "Analog Devices AD9739A RF DAC spi driver"
>> - depends on SPI || COMPILE_TEST
>> - select REGMAP_SPI
>> + depends on SPI
>> + select REGMAP_SPI if SPI_MASTER
>> select IIO_BACKEND
>> help
>> Say yes here to build support for Analog Devices AD9739A Digital-to
>> --
>
> FWIW, I appreciate it you fixing other breakages. However, there's a patch for
> that already, on its way:
>
> https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git/commit/?h=fixes-togreg&id=75183e461ce033605c3e85518a9f3d4e4ef848a3
>
> Don't get discouraged, though, when fixing something that is not in our
> immediate area of interest!
>
> :-)
>
> Thx.
>
Lesson learned and noted for next time to address only related/new
warnings and errors. Thanks!
next prev parent reply other threads:[~2024-06-17 20:48 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-15 13:22 [tip:x86/vmware 4/8] vmwgfx_msg.c:undefined reference to `vmware_hypercall_slow' kernel test robot
2024-06-15 14:33 ` Borislav Petkov
2024-06-15 20:41 ` Alexey Makhalov
2024-06-15 21:41 ` Alexey Makhalov
2024-06-16 1:25 ` [PATCH 1/2] drm/vmwgfx: Fix missing HYPERVISOR_GUEST dependency Alexey Makhalov
2024-06-16 1:25 ` [PATCH 2/2] iio: dac: Fix dependencies of AD9739A Alexey Makhalov
2024-06-17 9:04 ` Borislav Petkov
2024-06-17 20:48 ` Alexey Makhalov [this message]
2024-06-17 21:02 ` Borislav Petkov
2024-06-17 9:07 ` [PATCH 1/2] drm/vmwgfx: Fix missing HYPERVISOR_GUEST dependency Borislav Petkov
2024-06-17 10:01 ` Borislav Petkov
2024-06-17 13:47 ` Zack Rusin
2024-06-17 20:51 ` Alexey Makhalov
2024-06-17 21:17 ` Borislav Petkov
2024-06-17 22:48 ` Alexey Makhalov
2024-06-19 9:55 ` [tip: x86/urgent] " tip-bot2 for Alexey Makhalov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=19e8a6dd-b0d4-4e88-9ad2-e38787a5aee8@broadcom.com \
--to=alexey.makhalov@broadcom.com \
--cc=airlied@gmail.com \
--cc=andrea.collamati@gmail.com \
--cc=anshulusr@gmail.com \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=bp@alien8.de \
--cc=daniel@ffwll.ch \
--cc=dragos.bogdan@analog.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=jic23@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lkp@intel.com \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=nuno.sa@analog.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=tzimmermann@suse.de \
--cc=x86@kernel.org \
--cc=zack.rusin@broadcom.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox