From patchwork Mon Apr 17 20:55:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 84461 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2403519vqo; Mon, 17 Apr 2023 14:09:09 -0700 (PDT) X-Google-Smtp-Source: AKy350bDRLTt7R8L1fNu62kon2539BGKa0dabm7gx4lRv1Uqy762NtfgfOnBrJ54gKP8tLQxe6lw X-Received: by 2002:a05:6a20:dd:b0:ec:26ee:e1eb with SMTP id 29-20020a056a2000dd00b000ec26eee1ebmr14260468pzh.2.1681765749170; Mon, 17 Apr 2023 14:09:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681765749; cv=none; d=google.com; s=arc-20160816; b=SlYlJk1Wes7Xv/lM42Dm9Uia9sD11DioUOM5+TCBWvcWQHmYopETt8RKejs0EAAENL MyYiZe+Ov58sgVVjc2ottB/bR2YXWdRsK9zYFSLTH/v7H0GJxgRng0XekZZn+UXFdx2V mwu7IFqYyMAxAmi8FlsJsbeFYwVUYubNTj0FP4Rt/1icZnLAFp/j/Uv7aJsXLQTlJZky BceV1gAfL5hRhKOcLbsm3gmYP6SLEXrFNiRiZOXtVoos/nU5TAocnIp8QjhrvR+ywTs1 YTR/ZYo4sF/cMnpgzsE+r3pvdfMAXBL9y4wHqed9Fra4ngZY9EYI4amLyp/7iuxXCnrX 4zaQ== 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=PA/QhDJqgGuFbvjBbGdcTuLjSeAf+mxidRxjNkvCxrs=; b=ITBOnGEqd6pvmKJ2MsQPeUvQbcerG/w4oTu6F+nEZMdsdkaBprWI+BzGCikYkbJ4dk Fhue73jrquAYlNAPIHOSX4RLEkBdmWtEkRBaFDGW+xLAn0OywYJCR/v/OiLQ45NvsnVm dbUxGGr2jhFqPU+fDg+g+6ExPnIyW8wRAb9E7oDP0bSJj3EToyWOWkzl8/lZx4UjRBBj pdHXJ+GJEGDVLrTgwJySxYuqUi6MalA+Px8F7ukHYsagj3Dn8y6ceDIhPlcgN2fawFvC kIejEZApCutuZ1Rzjp2SJ+Vp5ELS5h5V4JQjZIGISMQX+3ecc2+Hn/L09Syiy3LCA1fU YTlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Yx/ebFoe"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 78-20020a630251000000b0051b29733bc9si12463229pgc.715.2023.04.17.14.08.56; Mon, 17 Apr 2023 14:09:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Yx/ebFoe"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230435AbjDQU6i (ORCPT + 99 others); Mon, 17 Apr 2023 16:58:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229589AbjDQU6Q (ORCPT ); Mon, 17 Apr 2023 16:58:16 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBDC3118ED; Mon, 17 Apr 2023 13:56:04 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A9A4762A71; Mon, 17 Apr 2023 20:56:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 21F80C433D2; Mon, 17 Apr 2023 20:55:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681764960; bh=q90+u87m3wUu+Fg6qEnvdX/mkRJR5IxIH+69ZC9pncI=; h=From:To:Cc:Subject:Date:From; b=Yx/ebFoesBk8zWG2ppjw3XKCaVeJ2vKIcePzvjJurU5ReyFJj9mRsOx0zsYUVaHWQ w7afQvyS48RXdmqbfYVku8tUeGmiz3AS3Uam5F4bSUs6UExOsUi21UefIEvC3u3Bvt Az7LjvfhTTme9D+vtyz/5Y8nuRSJA81Z8M1tznIU8wYvIMucm6v1bBrh2jG8urrQa1 uOyYgIzqSO9F4DAs5yRVc/sIJLJqWrxytpj2K69OWZXl6Hb4kcZdj/hSjmRVekWeif XXxh/Rslpm8LD+mFjpDdzo2UUJl99CqyYvMaNbIIxFrNQ3Q7KiGTgoPFkBdiYXsf4F ge8i8cNNnfmLQ== From: Arnd Bergmann To: "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Saurabh Sengar , Michael Kelley Cc: Arnd Bergmann , linux-hyperv@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] net: hyperv: select CONFIG_NLS for mac address setting Date: Mon, 17 Apr 2023 22:55:48 +0200 Message-Id: <20230417205553.1910749-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763459201850709916?= X-GMAIL-MSGID: =?utf-8?q?1763459201850709916?= From: Arnd Bergmann A rare randconfig build error happens when this driver is enabled, but nothing else enables NLS support: x86_64-linux-ld: drivers/net/hyperv/rndis_filter.o: in function `rndis_filter_set_device_mac': rndis_filter.c:(.text+0x1536): undefined reference to `utf8s_to_utf16s' This is normally selected by PCI, USB, ACPI, or common file systems. Since the dependency on ACPI is now gone, NLS has to be selected here directly. Fixes: 38299f300c12 ("Driver: VMBus: Add Devicetree support") Signed-off-by: Arnd Bergmann Acked-by: Jakub Kicinski Reviewed-by: Simon Horman --- drivers/net/hyperv/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/hyperv/Kconfig b/drivers/net/hyperv/Kconfig index ca7bf7f897d3..924dad26ad47 100644 --- a/drivers/net/hyperv/Kconfig +++ b/drivers/net/hyperv/Kconfig @@ -2,6 +2,7 @@ config HYPERV_NET tristate "Microsoft Hyper-V virtual network driver" depends on HYPERV + select NLS select UCS2_STRING help Select this option to enable the Hyper-V virtual network driver.