Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2350419rwb; Sat, 19 Nov 2022 14:13:31 -0800 (PST) X-Google-Smtp-Source: AA0mqf5/580x4w3hDrs8H1BCqzD/e1c2RVhRppQ+qi+zk1Ep/undZ89OKpQlTXfwSlH7ENKdP8s4 X-Received: by 2002:a63:1d47:0:b0:46e:df6b:b87 with SMTP id d7-20020a631d47000000b0046edf6b0b87mr11642519pgm.540.1668896011405; Sat, 19 Nov 2022 14:13:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668896011; cv=none; d=google.com; s=arc-20160816; b=U+iqc2NlFax3HxFH0gPNhrxpZaAnCzXg2Nth5BkxbQV57QOr3mZbmZy11U+EJsWMBB Df21nspFw4Ub5FQdZTxDvM2J37la0qjGBQJsiipKGOV7a2Plql8fTCaaOM1dNIRHwRiS at7mQb0byZeMWMaxj3OjkYtr4splVmtM86ddLPf426pUdKJm+hx/BPFxp7Esk/ZpHBnx rSNjZ/j2YSR+XJ0FPkQL3VGLifEcdoqIholo7MPcjEjgFzAiodPGTMIKTYvOlJjTUSS/ t87wF0KZTdF/njljGI/67BKcPqot7k4lzkF0oYoFnCU2YXCNCrOvQMNqayWeBkUSKKVr RDrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date; bh=aKT4TCB5a9J9mtjigSYqb/b/76M+lQiL2SyN0yRIO1o=; b=dOyFUNtmsuKJ7Ej7tlJ0Luw/Bg5QcHR3KMwsO/cSD+Ur4v6O31yTbpZ9wWMy+uAizt 1ToCR1EJLox8LIiMEmAO5W/+P1PUQKCBn7yqKQDbrPWNwoUVpcEWKsSIex9uJtsy5xLA TW6KwmLv7Tn5N7N+dh0mliH6UGYcPJ+I24ulmwYi6Vn5Lesc5S3w0zOhsa2hsOkhNkTc LL9cYC4U2TLW+sD3CaRmsJwSNYZW+YFmt3gSMrRKjs6UH46r8psTa3/EwRUKVIno1HR6 2CQB0+r4SFwdZz0/7BWSNpMyjZuPJJ2wrtz9VMHOe6ZGrRc1Laky2JpcECOEn2opIuFH ZMBw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s137-20020a632c8f000000b00476eab03fbbsi7504760pgs.21.2022.11.19.14.13.20; Sat, 19 Nov 2022 14:13:31 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234311AbiKSVZz convert rfc822-to-8bit (ORCPT + 91 others); Sat, 19 Nov 2022 16:25:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231445AbiKSVZx (ORCPT ); Sat, 19 Nov 2022 16:25:53 -0500 Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 626D0102 for ; Sat, 19 Nov 2022 13:25:52 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 28C7763E516F; Sat, 19 Nov 2022 22:25:51 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id NjSMm1e3K7LC; Sat, 19 Nov 2022 22:25:50 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id A5E1B63E5157; Sat, 19 Nov 2022 22:25:50 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id UJoQ5eQwxLyi; Sat, 19 Nov 2022 22:25:50 +0100 (CET) Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lithops.sigma-star.at (Postfix) with ESMTP id 8726363E5146; Sat, 19 Nov 2022 22:25:50 +0100 (CET) Date: Sat, 19 Nov 2022 22:25:50 +0100 (CET) From: Richard Weinberger To: "Lihua (lihua, ran)" Cc: Sascha Hauer , linux-mtd , linux-kernel , Wei Yongjun , yusongping@huawei.com Message-ID: <433070166.256175.1668893150374.JavaMail.zimbra@nod.at> In-Reply-To: <23feff35-6f2d-5cd7-57f9-ff2591a3c74e@huawei.com> References: <20221115083335.21211-1-hucool.lihua@huawei.com> <23feff35-6f2d-5cd7-57f9-ff2591a3c74e@huawei.com> Subject: Re: [PATCH] ubifs: Fix build errors as symbol undefined MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Originating-IP: [195.201.40.130] X-Mailer: Zimbra 8.8.12_GA_3807 (ZimbraWebClient - FF97 (Linux)/8.8.12_GA_3809) Thread-Topic: ubifs: Fix build errors as symbol undefined Thread-Index: xvKUd6iNeIA9uYaj0+JoIBNTDdG+WA== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, T_SPF_PERMERROR 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 ----- Ursprüngliche Mail ----- > Von: "Lihua (lihua, ran)" >> diff --git a/fs/ubifs/Kconfig b/fs/ubifs/Kconfig >> index 45d3d207fb99..93bda1057fdc 100644 >> --- a/fs/ubifs/Kconfig >> +++ b/fs/ubifs/Kconfig >> @@ -13,6 +13,7 @@ config UBIFS_FS >> select CRYPTO_HASH_INFO >> select UBIFS_FS_XATTR if FS_ENCRYPTION >> select FS_ENCRYPTION_ALGS if FS_ENCRYPTION >> + select UBIFS_FS_AUTHENTICATION I fear this is not a proper fix. This changes does not longer allow building UBIFS without the authentication feature. With what configuration do you see this error? I just tried with: CONFIG_UBIFS_FS=m CONFIG_UBIFS_FS_ADVANCED_COMPR=y CONFIG_UBIFS_FS_LZO=y CONFIG_UBIFS_FS_ZLIB=y CONFIG_UBIFS_FS_ZSTD=y CONFIG_UBIFS_ATIME_SUPPORT=y CONFIG_UBIFS_FS_XATTR=y CONFIG_UBIFS_FS_SECURITY=y # CONFIG_UBIFS_FS_AUTHENTICATION is not set But don't get the error and, as expected, fs/ubifs/ubifs.o has no reference to ubifs_bad_hash. Thanks, //richard