From patchwork Fri Apr 9 07:46:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhang Xiaoxu X-Patchwork-Id: 12193211 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 805ACC433B4 for ; Fri, 9 Apr 2021 07:41:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 58D2861168 for ; Fri, 9 Apr 2021 07:41:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231496AbhDIHl1 (ORCPT ); Fri, 9 Apr 2021 03:41:27 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:16429 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229751AbhDIHl0 (ORCPT ); Fri, 9 Apr 2021 03:41:26 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4FGqlB5r3ZzlWFc; Fri, 9 Apr 2021 15:39:18 +0800 (CST) Received: from localhost.localdomain (10.175.101.6) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.498.0; Fri, 9 Apr 2021 15:40:59 +0800 From: Zhang Xiaoxu To: , , , , , Subject: [PATCH] cifs: Fix build error when no CONFIG_DNS_RESOLVER Date: Fri, 9 Apr 2021 03:46:34 -0400 Message-ID: <20210409074634.1809521-1-zhangxiaoxu5@huawei.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 X-Originating-IP: [10.175.101.6] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org hulk robot following build error: ld: fs/cifs/dns_resolve.o: in function `dns_resolve_server_name_to_ip': dns_resolve.c:(.text+0x154): undefined reference to `dns_query' make: *** [Makefile:1251: vmlinux] Error 1 Fixes: e488292a31fa ("cifs: On cifs_reconnect, resolve the hostname again.") Reported-by: Hulk Robot Signed-off-by: Zhang Xiaoxu Reported-by: Hulk Robot Signed-off-by: Zhang Xiaoxu --- fs/cifs/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/cifs/Kconfig b/fs/cifs/Kconfig index fe03cbdae959..0d8199765045 100644 --- a/fs/cifs/Kconfig +++ b/fs/cifs/Kconfig @@ -18,6 +18,7 @@ config CIFS select CRYPTO_AES select CRYPTO_LIB_DES select KEYS + select DNS_RESOLVER help This is the client VFS module for the SMB3 family of NAS protocols, (including support for the most recent, most secure dialect SMB3.1.1) @@ -179,7 +180,6 @@ config CIFS_DEBUG_DUMP_KEYS config CIFS_DFS_UPCALL bool "DFS feature support" depends on CIFS - select DNS_RESOLVER help Distributed File System (DFS) support is used to access shares transparently in an enterprise name space, even if the share