From patchwork Tue Nov 15 10:05:12 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: 20267 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2613613wru; Tue, 15 Nov 2022 01:39:40 -0800 (PST) X-Google-Smtp-Source: AA0mqf7f+lmPMJ7YEPqCZmerIJYauBWMbZdq9DT8kQHBRhEhZeg32EsmtBBpLiztwwYMUGUTvA8d X-Received: by 2002:a17:906:3688:b0:7ad:a943:ee49 with SMTP id a8-20020a170906368800b007ada943ee49mr12877545ejc.311.1668505179953; Tue, 15 Nov 2022 01:39:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668505179; cv=none; d=google.com; s=arc-20160816; b=nsjHfMHVQCOMzDHlJokc6R7/nr+iAZcEECc/psVOrYosuQ8wcJMP6L9vdvq67YkVV+ d4bk10Bq23YJrQmAnHtgIUBa0GaBKMvnmG2Sk3gHsNmiCARFMNKlnvMvdlGnieITexes hkz5WRMRNaNVkfwM0ES1bEK1RvCdWZvrzwLNDw3HImL8V2ui55iUpNbWv/fj8LJBh19C D7UXk3QoZYSXf24KFzpJBAYiasPvkmiMMbETpye/d2X3DdGmzlht93JKlizvfWi0fjLl PFVJCUzsH5AGd//+0Lmh/LYR+ZapY1f/PW3DKCi1OPYhrsmq/HnbRspqmMe869mSn2nt KadA== 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=WJqyeRLJJxT3hdAJTJ8bpBUYWI+9s5LG24kdyWSCsoY=; b=CkGsY/Ha+ysCUPfNR1YE0+jUffEvkTK4HjhfxuORZPF8tOEL1XauKMoJHSg0NWo52d xjmN2RDfTBXeiWdZWk+Xr1PJpvn/CNMZPKtsg/FnbRY3+mTT4erHpAJKrk0kpNpnwt44 RSs37LptXv8Gks2+Hyo5h7tz2wzozfidMBT0lAyIfYxrZITqdlbny815ozInjAaGYl/d ruHF9RYv0QiXtdVFm8yPJMaJvk1+k7+IfiPLY4WQG6XMiaLVn9HEEoC4Kk0ntH08j2ti FjDZLkyUkPW9eg/haTprkeD9a0ZgSIUOVwMSyLXDi0iaRL4r0h9DxmHf5FTqSpJRJooc O6bw== 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 p18-20020a170906839200b0077951929340si8637184ejx.271.2022.11.15.01.39.15; Tue, 15 Nov 2022 01:39:39 -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 S232114AbiKOJga (ORCPT + 99 others); Tue, 15 Nov 2022 04:36:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229644AbiKOJg2 (ORCPT ); Tue, 15 Nov 2022 04:36:28 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 186D313DCF; Tue, 15 Nov 2022 01:36:28 -0800 (PST) Received: from canpemm500009.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4NBLdx3c0JzmVwj; Tue, 15 Nov 2022 17:36:05 +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 17:36:26 +0800 From: Li Hua To: , , , CC: , , , , , Subject: [PATCH] KEYS: asymmetric: Fix build errors as symbol undefined Date: Tue, 15 Nov 2022 18:05:12 +0800 Message-ID: <20221115100512.20147-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: dggems703-chm.china.huawei.com (10.3.19.180) 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?1749554487489400067?= X-GMAIL-MSGID: =?utf-8?q?1749554487489400067?= pkcs7_supply_detached_data is called by x509_key_parser module, but not exported: ERROR: modpost: "pkcs7_supply_detached_data" [crypto/asymmetric_keys/x509_key_parser.ko] undefined! Fixes: cfc411e7fff3 ("Move certificate handling to its own directory") Signed-off-by: Li Hua --- crypto/asymmetric_keys/pkcs7_verify.c | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto/asymmetric_keys/pkcs7_verify.c b/crypto/asymmetric_keys/pkcs7_verify.c index f6321c785714..4fa769c4bcdb 100644 --- a/crypto/asymmetric_keys/pkcs7_verify.c +++ b/crypto/asymmetric_keys/pkcs7_verify.c @@ -485,3 +485,4 @@ int pkcs7_supply_detached_data(struct pkcs7_message *pkcs7, pkcs7->data_len = datalen; return 0; } +EXPORT_SYMBOL_GPL(pkcs7_supply_detached_data);