Message ID | 20231012072051.1517826-1-alessandro.carminati@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp1045203vqb; Thu, 12 Oct 2023 00:28:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHDAqghStXtnHiszBabYcvuLBQ+thn1VwinQO2exJJT5KBXosSGbnDUEPpDLMtK1qRxvJbg X-Received: by 2002:a05:6358:2d94:b0:163:e0a:68a4 with SMTP id m20-20020a0563582d9400b001630e0a68a4mr16611884rwn.2.1697095732000; Thu, 12 Oct 2023 00:28:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697095731; cv=none; d=google.com; s=arc-20160816; b=u6ke+Mct1N6x0msl5B8AJ5JmPkhBfZ1PsvoP7E0H9JuWbU5k6GY1tKpX/d2/+n2r7c 6IW+j4Im0xwHT55nYIfx7u4jVvYZYYQj03wKmyJruDLjUM2v2ZzyCdYR1WuoeQSe5kaC 8t6+sWZjW01+llzFEMySyPJTnLXd4/5TQGiTGJ+OFmdMFAjgNPEdX83z073Mw8ygqVXJ MuKwk/lbopSc60HFsm/ydajtgZjvRJa8AfG06ePwPDFgC7AOGlJJafrbp6LXSN6Jmvo/ NKA0paKYdpGdLQ1b0rGefe22eCO0Q6X2P0yCQKvAXewI88xvak4Fes6pY894hp/SGvlN 9W1w== 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=kEqKvIWeFRr8W5s0BPeSsPwNLKn93+5XPQoiJhuCABo=; fh=o5RZ/l+jBG9b9RmWhMhFDLqjgqCC2vDWUYMpXQG4J1Y=; b=xMl97+qG6YSQiSfpd8d9bChzwNuD9KXl4yxIWVvTqq2WoW8/AHWUeaMNBGZA6VylL0 9iZoZRHGdOyXomGexOkBsuuFvhgEXZn4j53AuzO/6QoPci8MklgNA3K1bNuhsWVLPCst 3nJ+2YLT36inJ/ZfLbBbaqmVtShnX1OJZc2uwMCV22hMzuEqO4pU6t65i3ekZRsMgMnP uIjz0DDkagisYgqHU+qqiZEph8NQjI7xhTr5NuxzQOJmK6TdmjbzGH2sFH+qZX/LIcXH OwwedZ8LIpl/AtqcjSGvKc7oNFqKmLvAM8VfxhMHG+n5fMliHyoh79neV32QuXCR8ay1 4Scw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=b5UXYZkc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id s11-20020a63e80b000000b00573fc6de956si1693905pgh.223.2023.10.12.00.28.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 00:28:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=b5UXYZkc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id A209F802C515; Thu, 12 Oct 2023 00:28:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377780AbjJLH2e (ORCPT <rfc822;rua109.linux@gmail.com> + 19 others); Thu, 12 Oct 2023 03:28:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234125AbjJLH2b (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 12 Oct 2023 03:28:31 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 501CC9D; Thu, 12 Oct 2023 00:28:27 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-9b2cee40de8so125154466b.1; Thu, 12 Oct 2023 00:28:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697095706; x=1697700506; 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=kEqKvIWeFRr8W5s0BPeSsPwNLKn93+5XPQoiJhuCABo=; b=b5UXYZkc91cIBJ7igE7i2UsySuIydTQXjE55MupknR44qFIjeVJIL2eLMxwFvD7sSG 6h14rQqhPym0LJg/Vzb0XzLQdpSYqUhAx664sIYN12deQcb+bqTrskESdpJyaLSQKT2I rIvMTcCZzZFiR5i0BeUDTYN+s2xAuoE5uDKViBFonnPCv4H3qts1V8fIOCx8zUVCE17U Ve7GulhV/o0p6GLhQ/PXtE+0JvJYvdYZNiWtRU/PaQ3sk0aqoeevCGaXTb3qGe0TUNq9 naqOlSixCZu4HyuaUeXX0PZbun9xANgfKLsjImFXHepvL6TBt0norQ84MzrWL6Si+Ryw WpZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697095706; x=1697700506; 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=kEqKvIWeFRr8W5s0BPeSsPwNLKn93+5XPQoiJhuCABo=; b=IcufihXrY9gM7/bnLrIDjXMzSsTlYLJYW+0H30WIOidWyHcj1YTm1dLyAUqcxcwyTZ KrJGRegIp6MmnMVSimjwyFj/mpQEVPVOyJDU/Z4eJb7RG8FdjTaM4NhRlPIXHkyxXwcW ccXMI363j1mvzkj4Cj8Gql8DxlL6MXJU+u0HyL3AzDY9CK0h6keFU4ww3THpVXFAk0NY enXSnk4POBEm9XIR465XVRDIhk8l+ugGht0YVoEZDvDqRCllOFTXoK3tD1y2j3wsTwvU cx63jz7uiFGVlVtGCC1f57CLUmAupk4YrEt+QWVV+mgvA1PTI10wgKjbzeHqX8J4wuEk cJcA== X-Gm-Message-State: AOJu0YxoHdRTMIBmMfrOGlHgKg60eK4WfUz23ZMQj5yu6919nY+Lf0zY xopNcQhtxIs8BfpZHDS1//8= X-Received: by 2002:a17:907:7f08:b0:9a9:9d19:b250 with SMTP id qf8-20020a1709077f0800b009a99d19b250mr16312225ejc.17.1697095705420; Thu, 12 Oct 2023 00:28:25 -0700 (PDT) Received: from lab.hqhome163.com ([194.183.10.152]) by smtp.googlemail.com with ESMTPSA id a6-20020a170906468600b009a5f7fb51dcsm10616261ejr.42.2023.10.12.00.28.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 00:28:24 -0700 (PDT) From: "Alessandro Carminati (Red Hat)" <alessandro.carminati@gmail.com> To: manivannan.sadhasivam@linaro.org Cc: alim.akhtar@samsung.com, andersson@kernel.org, avri.altman@wdc.com, bmasney@redhat.com, bvanassche@acm.org, conor+dt@kernel.org, cw00.choi@samsung.com, devicetree@vger.kernel.org, jejb@linux.ibm.com, konrad.dybcio@linaro.org, krzysztof.kozlowski+dt@linaro.org, krzysztof.kozlowski@linaro.org, kyungmin.park@samsung.com, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-scsi@vger.kernel.org, martin.petersen@oracle.com, myungjoo.ham@samsung.com, nm@ti.com, quic_asutoshd@quicinc.com, quic_bhaskarv@quicinc.com, quic_cang@quicinc.com, quic_narepall@quicinc.com, quic_nguyenb@quicinc.com, quic_nitirawa@quicinc.com, quic_richardp@quicinc.com, quic_ziqichen@quicinc.com, robh+dt@kernel.org, sboyd@kernel.org, vireshk@kernel.org, "Alessandro Carminati (Red Hat)" <alessandro.carminati@gmail.com> Subject: [PATCH] scsi: ufs: core: Fix build error: ufshcd_opp_config_clks Date: Thu, 12 Oct 2023 07:20:51 +0000 Message-Id: <20231012072051.1517826-1-alessandro.carminati@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231011122543.11922-4-manivannan.sadhasivam@linaro.org> References: <20231011122543.11922-4-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Content-type: text/plain Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 12 Oct 2023 00:28:48 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779533854274075584 X-GMAIL-MSGID: 1779533854274075584 |
Series |
scsi: ufs: core: Fix build error: ufshcd_opp_config_clks
|
|
Commit Message
Alessandro Carminati (Red Hat)
Oct. 12, 2023, 7:20 a.m. UTC
Building linux-6.6-rc3 with this patchset applied and the following
configuration:
CONFIG_SCSI_UFSHCD=m
CONFIG_SCSI_UFS_BSG=y
I got:
scripts/mod/modpost -M -m -a -o Module.symvers -T modules.order vmlinux.o
ERROR: modpost: "ufshcd_opp_config_clks" [drivers/ufs/host/ufshcd-pltfrm.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:145: Module.symvers] Error 1
make[1]: *** [/home/alessandro/src/linux-6.6-rc3/Makefile:1865: modpost] Error 2
make: *** [Makefile:234: __sub-make] Error 2
I needed to add an export symbol to have the build complete
Signed-off-by: Alessandro Carminati (Red Hat) <alessandro.carminati@gmail.com>
---
drivers/ufs/core/ufshcd.c | 1 +
1 file changed, 1 insertion(+)
Comments
On Thu, Oct 12, 2023 at 07:20:51AM +0000, Alessandro Carminati (Red Hat) wrote: > Building linux-6.6-rc3 with this patchset applied and the following > configuration: > > CONFIG_SCSI_UFSHCD=m > CONFIG_SCSI_UFS_BSG=y > > I got: > > scripts/mod/modpost -M -m -a -o Module.symvers -T modules.order vmlinux.o > ERROR: modpost: "ufshcd_opp_config_clks" [drivers/ufs/host/ufshcd-pltfrm.ko] undefined! > make[2]: *** [scripts/Makefile.modpost:145: Module.symvers] Error 1 > make[1]: *** [/home/alessandro/src/linux-6.6-rc3/Makefile:1865: modpost] Error 2 > make: *** [Makefile:234: __sub-make] Error 2 > > I needed to add an export symbol to have the build complete > > Signed-off-by: Alessandro Carminati (Red Hat) <alessandro.carminati@gmail.com> Thanks for the diff. I will squash it with the offending patch. - Mani > --- > drivers/ufs/core/ufshcd.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c > index ccd7fcd18355..c0631c37c3d1 100644 > --- a/drivers/ufs/core/ufshcd.c > +++ b/drivers/ufs/core/ufshcd.c > @@ -1098,6 +1098,7 @@ int ufshcd_opp_config_clks(struct device *dev, struct opp_table *opp_table, > > return 0; > } > +EXPORT_SYMBOL_GPL(ufshcd_opp_config_clks); > > static int ufshcd_opp_set_rate(struct ufs_hba *hba, unsigned long freq) > { > -- > 2.34.1 >
diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c index ccd7fcd18355..c0631c37c3d1 100644 --- a/drivers/ufs/core/ufshcd.c +++ b/drivers/ufs/core/ufshcd.c @@ -1098,6 +1098,7 @@ int ufshcd_opp_config_clks(struct device *dev, struct opp_table *opp_table, return 0; } +EXPORT_SYMBOL_GPL(ufshcd_opp_config_clks); static int ufshcd_opp_set_rate(struct ufs_hba *hba, unsigned long freq) {