Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1898735pxb; Fri, 24 Sep 2021 14:46:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHp5uc/mZof7hEIu4GJt09PkHnTBKIhNBSkPRbQATleIResFenKpJLgXLUWrrFSbbfsh8B X-Received: by 2002:a5d:9047:: with SMTP id v7mr10876183ioq.214.1632519983372; Fri, 24 Sep 2021 14:46:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632519983; cv=none; d=google.com; s=arc-20160816; b=xsop7E9nxiWNA3ZdM4W2YS0JCfDUc0cx+Z3+ONZzFwaN7U4EaeCNPn0J+XwUeDcZaZ AyvSI7CWDQgXXUgSiv5FLlman3K5MrF9/HEM2oR7Bs02DodAYwM8P30CoRyi/0zJKyKZ CugdmlTcAzIW9l4Pv87+hHvw6J0ylAxk3t+Aewd3TZmpNsBIFY7FPMe8OjeJW0343XNd jefzvkZ78R46VHynFt0rAM033ZFuP18omiu/IV2C0AisSzxEnsBxezaiUgEaPQj1qRe2 1Gk303BdSQyZAQbbHWyhtsOKnSYja/tVR0rA4uIlJsDlVlDRJws5zTp9N3QfC+E5Z1iT 0NCA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=1LAFg9M6uAMZeoujQ1jnGXzcNs1IsGlEHiARal+gy88=; b=FHqOe3WmQ1XC5ZasNPfZQBuZk+MdBztRG4uXIKXHb2Bc+cD5dCAvsgIAFrWMGTBiDP BeCYn9ANxf/Uv/ZasW04j5lKJeXbwSOMQ3p5+W5zS2KTx8u4k/9WW7QCfMPxdb1ozu+w 1hE8FYHDT0V0RE02jXnxAKoutKpSGDpGAdmlTtfC+F3HV8GpI5mvllCDL/3g1WSwSi3A qGgCM/UreGIU0j5P+P2glTm42NZojSoAeT3xAFDDsfwbiXKMYaDLFR5sHGZfuJ2wuRjA n2znZbKESG5vDqQR1V8vmDgeB5eFa2B4takYhKJf+AzQjI1PYL1KSrzCv2RzVPDj/Ev0 38AQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zyMfc6Sa; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p8si14380747ilh.169.2021.09.24.14.46.12; Fri, 24 Sep 2021 14:46:23 -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=@linaro.org header.s=google header.b=zyMfc6Sa; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244885AbhIXQse (ORCPT + 99 others); Fri, 24 Sep 2021 12:48:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238886AbhIXQse (ORCPT ); Fri, 24 Sep 2021 12:48:34 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B21D0C06161E for ; Fri, 24 Sep 2021 09:47:00 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id y28so42308572lfb.0 for ; Fri, 24 Sep 2021 09:47:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1LAFg9M6uAMZeoujQ1jnGXzcNs1IsGlEHiARal+gy88=; b=zyMfc6SalycpiXBUP16WblX0n0xkfb9/raUzu66BUucj9skaySnVkYUSE+u9F8tlve YVY8+4D6xrnlHKDRkgP5IgHYWxBXgDBKoFyOmH19YWZSUjWUpuUkJlizTgCASUrq/IDR DT3ECrARMWWdaOaSvjkAlkf7Sco2KBa8Jd9hRLEioQHyszXg5j/sezdF70/DeL4yAu6b 19SFcJfmEcEu3Sr7rEPcfs+03j11mYrUIwt8qOSx8O4Nx6/2UL/PDlQjPTvh5sXVOa7X hPSIM2D5dL347h2Mf0nxxflViB0qJhp7VDOs8W1kj4zq2ynk7C9JukB7VuDbd2pTzH1k 3bxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1LAFg9M6uAMZeoujQ1jnGXzcNs1IsGlEHiARal+gy88=; b=IUowHNopzPT139tXR1O8aQ1FSkXvn9QXo+PWYedKpO6MtDh+P2h3NhS0CIk/kVZDtX bXQP0jnZulY/ZDqJ2sowHz5o08vWhhes+erk4OSHPaZ4iz0QUtwf0rJPryoKmVz6Rjyg 0yo6PZqDoqFF8NRDo6/QM80MXSZ8JdUeeGH/OqoXWGNYfU66aQIjYntav4uOZMQ+6Vhz dO6k5fGxHKyRkUFSD0M67kuLf7jHgH0cbe8hic8BJAQFCvWwp7PcyZCRcsLB6fUza+yX VaLEs0R6fXLNr4OcyD/Ds+Wd7Cn8qn62BZw1YGwC5Cz+rqqIeY7GU94yt2bTGa1aYaoi RAAQ== X-Gm-Message-State: AOAM532i99jDa6PO7IJ71RSND3iOBFsR+tFEQFnryNToAGbRNqSRfUSL nP9X7APQZQcnvklAfPSWibisPA== X-Received: by 2002:ac2:4e0f:: with SMTP id e15mr10019887lfr.308.1632502018951; Fri, 24 Sep 2021 09:46:58 -0700 (PDT) Received: from localhost (c-9b28e555.07-21-73746f28.bbcust.telenor.se. [85.229.40.155]) by smtp.gmail.com with ESMTPSA id z2sm802266lfr.194.2021.09.24.09.46.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Sep 2021 09:46:58 -0700 (PDT) From: Anders Roxell To: jejb@linux.ibm.com, martin.petersen@oracle.com, jdelvare@suse.com, linux@roeck-us.net Cc: avri.altman@wdc.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, Anders Roxell Subject: [PATCH] scsi: ufs: Kconfig: SCSI_UFS_HWMON depens on HWMON=y Date: Fri, 24 Sep 2021 18:45:30 +0200 Message-Id: <20210924164530.1754128-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When building an allmodconfig kernel, the following build error shows up: aarch64-linux-gnu-ld: drivers/scsi/ufs/ufs-hwmon.o: in function `ufs_hwmon_probe': /kernel/next/drivers/scsi/ufs/ufs-hwmon.c:177: undefined reference to `hwmon_device_register_with_info' /kernel/next/drivers/scsi/ufs/ufs-hwmon.c:177:(.text+0x510): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `hwmon_device_register_with_info' aarch64-linux-gnu-ld: drivers/scsi/ufs/ufs-hwmon.o: in function `ufs_hwmon_remove': /kernel/next/drivers/scsi/ufs/ufs-hwmon.c:195: undefined reference to `hwmon_device_unregister' /kernel/next/drivers/scsi/ufs/ufs-hwmon.c:195:(.text+0x5c8): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `hwmon_device_unregister' aarch64-linux-gnu-ld: drivers/scsi/ufs/ufs-hwmon.o: in function `ufs_hwmon_notify_event': /kernel/next/drivers/scsi/ufs/ufs-hwmon.c:206: undefined reference to `hwmon_notify_event' /kernel/next/drivers/scsi/ufs/ufs-hwmon.c:206:(.text+0x64c): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `hwmon_notify_event' aarch64-linux-gnu-ld: /home/anders/src/kernel/next/drivers/scsi/ufs/ufs-hwmon.c:209: undefined reference to `hwmon_notify_event' /kernel/next/drivers/scsi/ufs/ufs-hwmon.c:209:(.text+0x66c): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `hwmon_notify_event' Since fragment 'SCSI_UFS_HWMON' can't be build as a module, 'SCSI_UFS_HWMON' has to depend on 'HWMON=y'. Fixes: e88e2d32200a ("scsi: ufs: core: Probe for temperature notification support") Signed-off-by: Anders Roxell --- drivers/scsi/ufs/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/ufs/Kconfig b/drivers/scsi/ufs/Kconfig index 565e8aa6319d..30c6edb53be9 100644 --- a/drivers/scsi/ufs/Kconfig +++ b/drivers/scsi/ufs/Kconfig @@ -202,7 +202,7 @@ config SCSI_UFS_FAULT_INJECTION config SCSI_UFS_HWMON bool "UFS Temperature Notification" - depends on SCSI_UFSHCD && HWMON + depends on SCSI_UFSHCD && HWMON=y help This provides support for UFS hardware monitoring. If enabled, a hardware monitoring device will be created for the UFS device. -- 2.33.0