Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6585928rwb; Tue, 15 Nov 2022 00:14:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf4exq0T968yweyAAaP1+18Stgj8uJ8Z0/XGwaGsqU0C6JIA7DmoUOt6DZcdYVxNbV9PFVft X-Received: by 2002:a62:1a06:0:b0:56d:570a:ef1c with SMTP id a6-20020a621a06000000b0056d570aef1cmr17020503pfa.22.1668500086694; Tue, 15 Nov 2022 00:14:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668500086; cv=none; d=google.com; s=arc-20160816; b=utQ0NwndehY/sKNmCjfBZ8k8LBi58uHOh/6aObFfp+ho7NhkHdL5xMllRy9mdkBA3X YLSXIht0FhU08Q9ot0IC5k1qb16Fztg5SD93Z2jBCZNtAoLetLmmTAPu+KKiEZHsiZMx abCZq/HOhqUqAYstR2vhLtLQGlc6jegQBpSSOG3Pgl++G2OizprMufqkCkav2gh2GVLX oNLCE7qMWWQ4s0T/AsJ8G45GihNaYYRoC/zPFQ7QJ37kcCi/R8Y955MpW7Ku351NY1L0 wfPbymzAolW78fRDA7E02FJ8qPNbRKcAfOFCCYFysH3bddaSFRggIPmkqNphPXyK5XIO JQxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=lo4jJzPlrZE7RYO00j7H3lNT7HwLWLgjjJf5mq9nw9w=; b=U6FR2SIHZIdYepj+r6UJSlb2JggvpRTr5Qm++lzr+cf+T1JPC+6d5nFfWSQ/pX9INY nI50hpu8JjQchGxvMVF6ke+lRN6M3GbP2DHXseE5pIsZLXBuSsK45mqiVSIPKFqmiVeL QRA51TV7K9wCDLpS60P9l0LWJd6A7FWt7oY12Vo7J8UvT55M/F6IMMXT3g0YaPnUNHlv SZOaOSLv7s1K8O+SOyOlw6xRO3fCJPGNcTooHojYhyd0B6tRhV6d+tXhk0LCD7dS0nFH 0PBGKeEbaKlu3DIsO6STZ8Sav2u4/ZJr5CN0n0SG7y1Vc9BP/L+C7cV0fkjkgOJc1Lnc rFew== 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m1-20020a655301000000b0043a061cc079si11522233pgq.358.2022.11.15.00.14.28; Tue, 15 Nov 2022 00:14:46 -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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232487AbiKOIEz (ORCPT + 88 others); Tue, 15 Nov 2022 03:04:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230125AbiKOIEx (ORCPT ); Tue, 15 Nov 2022 03:04:53 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CCB4B1F3 for ; Tue, 15 Nov 2022 00:04:51 -0800 (PST) Received: from canpemm500009.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4NBJXG4fSJzqSS7; Tue, 15 Nov 2022 16:01:02 +0800 (CST) Received: from huawei.com (10.67.174.191) by canpemm500009.china.huawei.com (7.192.105.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 15 Nov 2022 16:04:46 +0800 From: Li Hua To: , CC: , , , , Subject: [PATCH] ubifs: Fix build errors as symbol undefined Date: Tue, 15 Nov 2022 16:33:35 +0800 Message-ID: <20221115083335.21211-1-hucool.lihua@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.174.191] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To canpemm500009.china.huawei.com (7.192.105.203) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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 When CONFIG_UBIFS_FS is enable but CONFIG_UBIFS_FS_AUTHENTICATION is not set: ERROR: modpost: "ubifs_bad_hash" [fs/ubifs/ubifs.ko] undefined! Fixes: 16a26b20d2af ("ubifs: authentication: Add hashes to index nodes") Signed-off-by: Li Hua --- fs/ubifs/Kconfig | 2 ++ 1 file changed, 2 insertions(+) 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 depends on MTD_UBI help UBIFS is a file system for flash devices which works on top of UBI. @@ -91,6 +92,7 @@ config UBIFS_FS_AUTHENTICATION select KEYS select CRYPTO_HMAC select SYSTEM_DATA_VERIFICATION + select SYSTEM_TRUSTED_KEYRING help Enable authentication support for UBIFS. This feature offers protection against offline changes for both data and metadata of the filesystem. -- 2.17.1