From patchwork Mon Sep 27 08:46:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 514666 Delivered-To: patch@linaro.org Received: by 2002:a17:906:f46:0:0:0:0 with SMTP id h6csp3726930ejj; Mon, 27 Sep 2021 01:46:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlKJow9j1zDbfhBtS5CnTjcB/e/C52YYHi+57PZuUtIIGnlggtH5Fgkgs4+XX5okypHJuf X-Received: by 2002:aa7:da89:: with SMTP id q9mr8676886eds.55.1632732385960; Mon, 27 Sep 2021 01:46:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632732385; cv=none; d=google.com; s=arc-20160816; b=wSR0mC6VojsnmU5EuRI1i5JBMmkmbrSA53PReYg0LquNJFKNFcRH8sV2510jy0Xh3O nodOetE4FnR9UTndUMyk4cvMFaZVLaEnp57Ht7+A09FLbs/JqqoSGof7p0vf29vDwHhh ml5hL0/dWaeGfwEqmSqg2PNLbE+GwFVlSLosk4sVDqg/ekFmshwUHt5DfH6eN2FmCSKN BwkBI04q5osU3Cjut8OGUtHyOWqawi0bUhypgk5vqwhYD+Z5Lmw7lmFOZH/AwhwHwBl8 mQvPV4st6X5Fq7PNCmpXWTagWQJ2CWMMKw3aPXJNeD889nImuTzIdKMyhGVOf/lH3Mea ML7w== 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:date:subject:cc:to:from :dkim-signature; bh=U0zut/STrbzFzEaYGrjx8N7OZIB3TgBNbxo/HurOdUQ=; b=rqKR18O+c/eRj5PW2ZWprTgJQWf1iZIldQAbFh8Drr09WgxT3Fj19TNeP3rqYRyUwN 1hB+ujZ0vpZCHha4DiEVqe+n8QV7MvABNutOL8B9TyXiw1mooth9OQp9t5kIlYjNoApY ml2trpTBhLwtOUS3WB0NNHbgqrN3V3HihAcYdHhyBHaGat6dcqsFzyfnFC5/cPm4ukAr Zq/1IXsVo9wPrrTtUTyzA8BoBc3PrDbJ4GM9Swp7/47p3Wa3VTno++y6Ls25fnwpkT3z NNduGfZyyF29Cw1dsOt/d+3HhM+knblLudYkQeET1uw9G+A7dZXV4Kxyjdvo/VFNfrGS eGNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VBqpJXND; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-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 e8si18638280edj.359.2021.09.27.01.46.25 for ; Mon, 27 Sep 2021 01:46:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-scsi-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=VBqpJXND; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-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 S233539AbhI0IsA (ORCPT ); Mon, 27 Sep 2021 04:48:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233517AbhI0Ir6 (ORCPT ); Mon, 27 Sep 2021 04:47:58 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72D6CC061714 for ; Mon, 27 Sep 2021 01:46:20 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id g41so73921462lfv.1 for ; Mon, 27 Sep 2021 01:46:20 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=U0zut/STrbzFzEaYGrjx8N7OZIB3TgBNbxo/HurOdUQ=; b=VBqpJXNDaL4icGpXRQtO2EpchiZGOb5gwRgp6IuJymn7c5Lx3j0LZ4s9DVi8oAe6bw QDQzplH1FcaAZ3hvbKOfOxr3EXJ8fKgEKlLcwWo5cQWbezaXBMdMcxOnKhK/HxATUNrp t+N6o00WIUC6InRAFXAh1Ixc5tFW7SjZMzLkL3ThmqWzz+5bpSVWAM50FHKDcxD4RGzn rw60tIZ9LCzTIpbeGxMkwHuK+U/hFNIGv1aTZ7QxJh7IK2XmnHWoswxmt+vKjS+KHCuk 7YCoZvkPJiwUaE+PgqBtEklKHuulNlsnyBwVMotvn4DQr7V8ScloLMWzvXFztV8/OqGP zGcg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=U0zut/STrbzFzEaYGrjx8N7OZIB3TgBNbxo/HurOdUQ=; b=HmKaTeaJmsTrFb6txnOS8WXg1hfn6ExhKcIZ7P/EZZ/tA41nBS40lMg0p1yNK4HvO4 yJs126E48696gursKsGD5Gnp2QQA5Wgz33XeQeUiI5VtDNoEJqDTXC3STUZL7zEYKsqU gLC9q8lrNLNC1tJC31oiYZW2VGCPxEw16oz7QbQkM4QA2Cnf7avS1YJy+MCI1+wPlpQ8 HHxfpc35DcHdeNqPf6PRjDYDptBgV4x5D+VLX8eTO7nNvjkDavhAFfEKdE+t+xGETDuM WgJ4+fXeZBCrVxkZFSdiUjapQTBO/9OjsGcEHu1g3dCpfWwhEwiYViEhd/i+t7JiZcW+ 0wcA== X-Gm-Message-State: AOAM5305psLuZCfKG/BtH7+FzHi/yMO6VkQBJ/iDVrNHd+urBMYLWbXv i9CNuASNvSAdqQuyJE7VM+fizA== X-Received: by 2002:a2e:145c:: with SMTP id 28mr19708234lju.295.1632732378811; Mon, 27 Sep 2021 01:46:18 -0700 (PDT) Received: from localhost (c-9b28e555.07-21-73746f28.bbcust.telenor.se. [85.229.40.155]) by smtp.gmail.com with ESMTPSA id c3sm128196ljf.113.2021.09.27.01.46.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Sep 2021 01:46:18 -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 , Randy Dunlap Subject: [PATCHv2] scsi: ufs: Kconfig: SCSI_UFS_HWMON depens on HWMON=y Date: Mon, 27 Sep 2021 10:46:15 +0200 Message-Id: <20210927084615.1938432-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@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") Also-Reported-by: Randy Dunlap Signed-off-by: Anders Roxell Acked-by: Randy Dunlap # build-tested Acked-by: Avri Altman --- drivers/scsi/ufs/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.33.0 diff --git a/drivers/scsi/ufs/Kconfig b/drivers/scsi/ufs/Kconfig index 565e8aa6319d..2ca69f87e4de 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 || HWMON=y help This provides support for UFS hardware monitoring. If enabled, a hardware monitoring device will be created for the UFS device.