Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1615894lqs; Sat, 15 Jun 2024 18:26:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWrcboFY/fZSX3R0bnC0CH8WhLnZfbxcPASETXolD6nD3h9i+XRKivbnllzdM5IkgLShEUuEKv2LMMSbyUAYV5AJVkdJ33DSYs6rQ3Gpw== X-Google-Smtp-Source: AGHT+IFFhljvMN4CIvZwti318QTJzbpvk81QP2rBe7CQEhlDeKz8ww7HcMLtzikKUSGiYz74LBHJ X-Received: by 2002:a17:906:ba86:b0:a6f:758a:e35 with SMTP id a640c23a62f3a-a6f758a0fcbmr226287666b.6.1718501162709; Sat, 15 Jun 2024 18:26:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718501162; cv=pass; d=google.com; s=arc-20160816; b=zhPSiXdF9RhZHuYtxeEfltfy+JPsd4KWuzCOf+uBzWot/RnLYFf+haC54Anvyhxflj y3zPVGy89DN1+muYJR+5rW0IaFQ+6pUFyDPDigydbemtReFtEBmQXdskfyr5Xz9XNx+B 2JRZY1cAYX60YGuHKCsUfMzUbPTnfcncQT8TbgPNrp/xgVDx8NwLg9qI3TYgI6qzyY6p OYB4o/M621hfDMIMTOhl2BiYElLLLPOEFQugnYbqyRDjn6xC4D5kKEB5h2js84aQ836K pw2sEZOPVRU30hewb8p+BNCOjHo0QSAWWU9PAXJUIb7Fks+HER77XxpTzIQO+HRuT6oQ wtew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=gCrX2aP7omTOt40mjhlbJGCmLHhusecgyid8m4PMNe0=; fh=7bDUj4iOzdo8+9OQj3z1kIKhct4/3URtKep5cZ2f/rE=; b=0nunVLZnps1ZwuDPFRKeIbYuORaytdyiuYb2qm/7Gz9CeqtGx4RmQ5p2ap0sZT+JRt 18OzDoPMMdb2WJXpNzt02fO7DtCOcWo3gz9eeX2mMZVfjhEr6a50kG9p3GrmWL4DKY+q f46fw54Ef+fgvcTPnOQCFeZk3h2xi2+cLN9e4XQheM3EG+h97gOuiZdKNioY2LpaiZkd 5RVS9iU8OZGuCQVBFNKLPrq2RtBuqtJ4tlr1xelrYkLvov0+UHEEsljVGJMx6nM4rHQe KHoAfJDbEqVxoU0+C0zcvbY6jnKGm+PtRPx7irq8wjuQfk6R17wqm2zZvP0akVnG3sdD AHWw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=cD4CNg5O; arc=pass (i=1 dkim=pass dkdomain=broadcom.com dmarc=pass fromdomain=broadcom.com); spf=pass (google.com: domain of linux-kernel+bounces-216080-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-216080-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f56df7245si306920966b.506.2024.06.15.18.26.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jun 2024 18:26:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-216080-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=cD4CNg5O; arc=pass (i=1 dkim=pass dkdomain=broadcom.com dmarc=pass fromdomain=broadcom.com); spf=pass (google.com: domain of linux-kernel+bounces-216080-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-216080-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 6DEC01F21B05 for ; Sun, 16 Jun 2024 01:26:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EAB17154C18; Sun, 16 Jun 2024 01:25:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="cD4CNg5O" Received: from mail-qk1-f175.google.com (mail-qk1-f175.google.com [209.85.222.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A523115530B for ; Sun, 16 Jun 2024 01:25:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718501144; cv=none; b=hTJ1HpQKMVLXFzUpoxzW6+L+EsRS7MXsmrQyFkvFF5v71AvqBisAOZ9DU/weyCh8b3wxz6s4JGSu0xe0GninNHG+G2pad9t4SDKZz1m68vNGEDxI0KLG22Ot7EFxqtWNOVg6JoMoJlc7hAVNVr4zuqGpZJ+7y4t/Ld/bGNrMz44= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718501144; c=relaxed/simple; bh=TNTvvYis8B90+i8p/Z65lN6JmLBeayserglnYMBu3w0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=l8hNyeRLhr1WJ1ujD6GW/jYiqOkMFCx74WslyyU429ULB6FG6YXlM/iL0VS4NYTafGFsQezzA2FAZ4OQvGxloFHUUDxJL7LmBlhSCHP+b9LPKsRKlX9p6DqJwIUxya2DWVaDstDmBuK4zrXYGUaDWPvCgQ4l3MGUGDTOSetskS4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b=cD4CNg5O; arc=none smtp.client-ip=209.85.222.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Received: by mail-qk1-f175.google.com with SMTP id af79cd13be357-797a7f9b552so233802785a.0 for ; Sat, 15 Jun 2024 18:25:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1718501141; x=1719105941; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=gCrX2aP7omTOt40mjhlbJGCmLHhusecgyid8m4PMNe0=; b=cD4CNg5OTlFXcaBgZn1Er4CvTrk9Fhp4OZg77EpJJKqSLhgYW1OAqb+eIC00yncMUk n2QuPFS06hnCmCKJFYVBwbyscEW/uytC3DHq47rF0cYKHa8/3JMtSC+dwGVQzq8yvDSc KrKBFI0Ja3AR1MNOL4UqKvmNYlHmvGybblf00= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718501141; x=1719105941; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gCrX2aP7omTOt40mjhlbJGCmLHhusecgyid8m4PMNe0=; b=k9VdIO1GpRPkeyD2YbXy/zo4xncoyxBQg//Nsl0Dff3MQGR8JC8Z7FP6wHq9QtWOHI 6bu+t02SZnFD2p899vOdnmuZUOrUdYH659L3jG3McC6HQQYfg9wz8d+NbD/qwZEss3iR kmc3qUEBL2MQCVo+xp2yB1+Tcc0KynghcHTrED7pvdS6jS1XaTFNW6OGln1Cnz9Ua7YL Wc3NgUxn7py/3CiaLqnKuAGSXZrq6UmffnwPRClNATbiGW9YH2GAcy9zikCQFIsgip+R mo4UZ896gm5WXWLJjC81pz66PtiiqupH9Eb3XKas4wfeBWJxEiRT6dwb/kbnnHe3kUIM dZjQ== X-Gm-Message-State: AOJu0YzdIPWA0m1ebxaOZZVo7yZo81ZOrmC1ah7XVBEnZPxfWiB3lwbu legj2ZsePKE+2nq8rtFtxl214hO/rEmzmtRg2WGF3ODRptn6/8T0jU5zbg7R2D/4xXU4T5N8fkq z9cT+tpa6ozQ2g1qF8Qn6bznb7WXbtLc1FeObeODuXtZJ8+sxxbD3NNNyaOrREh9d1f0r9cj44A xOIn0HRr92jRmCvDmvJOtCCHxlQpygkHCgcMNzxlc2f2+X4/xpEQnX X-Received: by 2002:ac8:5a8c:0:b0:440:60f3:733b with SMTP id d75a77b69052e-4421685caa4mr69850701cf.14.1718501140971; Sat, 15 Jun 2024 18:25:40 -0700 (PDT) Received: from amakhalov-build-vm.eng.vmware.com ([192.19.161.250]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-441f310dae0sm32256121cf.97.2024.06.15.18.25.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jun 2024 18:25:40 -0700 (PDT) From: Alexey Makhalov To: linux-kernel@vger.kernel.org, bp@alien8.de, bcm-kernel-feedback-list@broadcom.com, lkp@intel.com Cc: 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, Alexey Makhalov Subject: [PATCH 2/2] iio: dac: Fix dependencies of AD9739A Date: Sat, 15 Jun 2024 18:25:11 -0700 Message-Id: <20240616012511.198243-2-alexey.makhalov@broadcom.com> X-Mailer: git-send-email 2.39.4 In-Reply-To: <20240616012511.198243-1-alexey.makhalov@broadcom.com> References: <202406152104.FxakP1MB-lkp@intel.com> <20240616012511.198243-1-alexey.makhalov@broadcom.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Closes: https://lore.kernel.org/oe-kbuild-all/202406152104.FxakP1MB-lkp@intel.com/ Signed-off-by: Alexey Makhalov --- 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 -- 2.39.4