From nobody Thu Nov 28 18:29:23 2024 Received: from szxga04-in.huawei.com (szxga04-in.huawei.com [45.249.212.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DA6F65674E for ; Mon, 30 Sep 2024 08:04:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.190 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727683497; cv=none; b=MzXq8WI4nGfsSB4urRVowkBG6IEeh1IwKt2sv7cAv8/BuTetxiup0M2QLyfQ8ios+jXrt1SzFspvTH3gUwb4VYZjQjZAWOdBtnEiwldIxKi9hdU+tHbOBK4QcRXs6sywrwCB5pSJ1OIu48rmVVng8KBDhjt82IRSsyV/gcb7vKw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727683497; c=relaxed/simple; bh=n+3ucnwcpKavVDnZ0QPclYZ6KtnqyG/pl1f3tfLnuvE=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=G+PzMdC+kHWlmGJ6phgI6dUJj16O9Pas3Q5OgtyJZdIXnVXvJ0tG8dhrhubgQjPqyKl7q/yUk8dTedU3z+tmSeA5YwjS65NI1crr+qW0OtDctfGlVq4baAjqoClLObfKlEQ5zo0rmPnvU//ynR/LwZhAhJevLQJYi+jOWmALbO4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.190 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.162.112]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4XHDB04ZQLz20pSY; Mon, 30 Sep 2024 16:04:24 +0800 (CST) Received: from kwepemh500013.china.huawei.com (unknown [7.202.181.146]) by mail.maildlp.com (Postfix) with ESMTPS id 437471400CB; Mon, 30 Sep 2024 16:04:51 +0800 (CST) Received: from huawei.com (10.90.53.73) by kwepemh500013.china.huawei.com (7.202.181.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Mon, 30 Sep 2024 16:04:50 +0800 From: Jinjie Ruan To: , , , , , , , , , , , CC: Subject: [PATCH] net/9p/usbg: Fix build error Date: Mon, 30 Sep 2024 16:15:20 +0800 Message-ID: <20240930081520.2371424-1-ruanjinjie@huawei.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemh500013.china.huawei.com (7.202.181.146) Content-Type: text/plain; charset="utf-8" When CONFIG_NET_9P_USBG=3Dy but CONFIG_USB_LIBCOMPOSITE=3Dm and CONFIG_CONFIGFS_FS=3Dm, the following build error occurs: riscv64-unknown-linux-gnu-ld: net/9p/trans_usbg.o: in function `usb9pfs_fr= ee_func': trans_usbg.c:(.text+0x124): undefined reference to `usb_free_all_descripto= rs' riscv64-unknown-linux-gnu-ld: net/9p/trans_usbg.o: in function `usb9pfs_rx= _complete': trans_usbg.c:(.text+0x2d8): undefined reference to `usb_interface_id' riscv64-unknown-linux-gnu-ld: trans_usbg.c:(.text+0x2f6): undefined refere= nce to `usb_string_id' riscv64-unknown-linux-gnu-ld: net/9p/trans_usbg.o: in function `usb9pfs_fu= nc_bind': trans_usbg.c:(.text+0x31c): undefined reference to `usb_ep_autoconfig' riscv64-unknown-linux-gnu-ld: trans_usbg.c:(.text+0x336): undefined refere= nce to `usb_ep_autoconfig' riscv64-unknown-linux-gnu-ld: trans_usbg.c:(.text+0x378): undefined refere= nce to `usb_assign_descriptors' riscv64-unknown-linux-gnu-ld: net/9p/trans_usbg.o: in function `f_usb9pfs_= opts_buflen_store': trans_usbg.c:(.text+0x49e): undefined reference to `usb_put_function_insta= nce' riscv64-unknown-linux-gnu-ld: net/9p/trans_usbg.o: in function `usb9pfs_al= loc_instance': trans_usbg.c:(.text+0x5fe): undefined reference to `config_group_init_type= _name' riscv64-unknown-linux-gnu-ld: net/9p/trans_usbg.o: in function `usb9pfs_al= loc': trans_usbg.c:(.text+0x7aa): undefined reference to `config_ep_by_speed' riscv64-unknown-linux-gnu-ld: trans_usbg.c:(.text+0x7ea): undefined refere= nce to `config_ep_by_speed' riscv64-unknown-linux-gnu-ld: net/9p/trans_usbg.o: in function `usb9pfs_se= t_alt': trans_usbg.c:(.text+0x828): undefined reference to `alloc_ep_req' riscv64-unknown-linux-gnu-ld: net/9p/trans_usbg.o: in function `usb9pfs_mo= dexit': trans_usbg.c:(.exit.text+0x10): undefined reference to `usb_function_unreg= ister' riscv64-unknown-linux-gnu-ld: net/9p/trans_usbg.o: in function `usb9pfs_mo= dinit': trans_usbg.c:(.init.text+0x1e): undefined reference to `usb_function_regis= ter' Select the config for NET_9P_USBG to fix it. Fixes: a3be076dc174 ("net/9p/usbg: Add new usb gadget function transport") Signed-off-by: Jinjie Ruan Tested-by: Kexy Biscuit --- net/9p/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/9p/Kconfig b/net/9p/Kconfig index 63f988f0c9e8..ee967fd25312 100644 --- a/net/9p/Kconfig +++ b/net/9p/Kconfig @@ -43,6 +43,8 @@ config NET_9P_XEN config NET_9P_USBG bool "9P USB Gadget Transport" depends on USB_GADGET=3Dy || USB_GADGET=3DNET_9P + select CONFIGFS_FS + select USB_LIBCOMPOSITE help This builds support for a transport for 9pfs over usb gadget. --=20 2.34.1