From patchwork Tue Nov 15 08:33:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lihua (lihua, ran)" X-Patchwork-Id: 20233 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2580722wru; Tue, 15 Nov 2022 00:06:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf7aUlTbUh5AXg/DlGimrQZMcQaWX7GbtF3m888cVPJvohGwnnv6rgqxoyNUvJTGqs8zl2GY X-Received: by 2002:a63:24c5:0:b0:440:3cc0:c062 with SMTP id k188-20020a6324c5000000b004403cc0c062mr15159927pgk.10.1668499588510; Tue, 15 Nov 2022 00:06:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668499588; cv=none; d=google.com; s=arc-20160816; b=ezprLWAIbL/6b4blDuOH70FNNDwLHGsulycqUI5FyQp/ET6t3tuC0TS3inZwzwuQIZ Yg3G9kRicjRItscn4BsdTh4NlKngXRbofGfPTQdjWWo3TC4G4Q6ajGV8Swd2nOIAGDDo Lvib+MfPDrhMV5GOMw/YUWTuosceVO99F/yfmMoOBnhga/qgIHVP34yzM8192XcEFDVn 2vluBWlyRNhl+HVu6DqdsQ2PeSdyNUBrqHZFQM9Yl1NYs7khb9QEYheDpfoRvsf1e8VX vQLGoUnD9eip1i+eAj3ffUKUuRpYjNZO0Ancio16P5jLI8cKbyEtksiMg/TAvsDd22h2 68DQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y186-20020a638ac3000000b0046fbaeb1247si11647480pgd.48.2022.11.15.00.06.15; Tue, 15 Nov 2022 00:06:28 -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 + 99 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749548624420790575?= X-GMAIL-MSGID: =?utf-8?q?1749548624420790575?= 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.