Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp395007rdb; Mon, 14 Aug 2023 22:51:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGZMQ+CsaftprcmdRfIK84fIye3amJpmlLjJXdndIphDLv4NSfXo5fplQYifIa0WNq6g9/C X-Received: by 2002:a17:906:3284:b0:965:6075:d100 with SMTP id 4-20020a170906328400b009656075d100mr9866804ejw.39.1692078678255; Mon, 14 Aug 2023 22:51:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692078678; cv=none; d=google.com; s=arc-20160816; b=cyjuc87aMHhuuXaoKEYNQFUX0CCPucmehcLz1rtJut+86UrraC9BEP+bgS8fsgnKeO NlTQNDjdc8o8g+yXL1a1OjGjJQXVhUpvryC6BOlS8KAqEnH+Le/xbZXLpi57jOt5iKcR UNxCf8KV5N1vKF0NLwxBiTdlB6U2gBH0H6XdIOmyL2O6fbPyPLa+annW7eOq9J8AoaQJ v0lFBGfXVcrz0a120/lK+2+ZiznPSxMeTqkFxT16EHbXXxI/yPhp+cJbvf9YNfudh9jH gUME042M3zLZKEEeZqy+Y6W0LWACyPhPY5feMmMHJXniqd8HjIVZvLhQAu1O/KeIzEri kulA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=djHImNGc9DMLXtF8evGCdgzvzm/dH0277JjO3ve9ZYU=; fh=uFFDd+iAEowcAM16RomFzMJ2WecoxWKAI8xs4ti1aYA=; b=Ptj6w2eMh7biamD433Lpu43f5/mM0ZRs29DPlodZs4UeZRMXIgZpOES1muuh+Epb+l K7wj+4rsGSZk+/EWivJgACVoYyf23wLeSHMEKsd0H5t6bCQQVYzcM5tuWTdlORZj+oCB VL4ZKqyWBy4D8Awgw79EISjeQgVlBZrVubKWUC50UEcQ+db0hOGqYs7Smw+SzzVayDJ5 9q96/5uAAjbcvtDYzV9aqOmPo4Un1mkTytB+P/YYqT9l0wH90L4WvGokXqihxyGHQVnC 7/M4JmkeAD+uJyYPis7gTx6rzF+hrZ/aCVa4PLlElpUiNpgzsZVfpxj1xcp7PB4NGZMK nxOg== 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 ss22-20020a170907039600b0099381745ba0si9938248ejb.156.2023.08.14.22.50.41; Mon, 14 Aug 2023 22:51:17 -0700 (PDT) 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 S234125AbjHOCIq (ORCPT + 99 others); Mon, 14 Aug 2023 22:08:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234111AbjHOCIU (ORCPT ); Mon, 14 Aug 2023 22:08:20 -0400 Received: from SHSQR01.spreadtrum.com (mx1.unisoc.com [222.66.158.135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C8CC10F9 for ; Mon, 14 Aug 2023 19:08:17 -0700 (PDT) Received: from dlp.unisoc.com ([10.29.3.86]) by SHSQR01.spreadtrum.com with ESMTP id 37F27SJo052258; Tue, 15 Aug 2023 10:07:28 +0800 (+08) (envelope-from Yunlong.Xing@unisoc.com) Received: from SHDLP.spreadtrum.com (bjmbx02.spreadtrum.com [10.0.64.8]) by dlp.unisoc.com (SkyGuard) with ESMTPS id 4RPvjr0qrmz2P8CXW; Tue, 15 Aug 2023 10:05:20 +0800 (CST) Received: from tj10379pcu.spreadtrum.com (10.5.32.15) by BJMBX02.spreadtrum.com (10.0.64.8) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Tue, 15 Aug 2023 10:07:25 +0800 From: Yunlong Xing To: , , , CC: , , , Subject: [PATCH] printk: export symbols for debug modules Date: Tue, 15 Aug 2023 10:07:11 +0800 Message-ID: <20230815020711.2604939-1-yunlong.xing@unisoc.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.5.32.15] X-ClientProxiedBy: SHCAS03.spreadtrum.com (10.0.1.207) To BJMBX02.spreadtrum.com (10.0.64.8) X-MAIL: SHSQR01.spreadtrum.com 37F27SJo052258 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,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 From: Enlin Mu the module is out-of-tree, it saves kernel logs when panic Signed-off-by: Enlin Mu --- kernel/printk/printk.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index 357a4d18f638..f381442512b3 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -538,12 +538,14 @@ char *log_buf_addr_get(void) { return log_buf; } +EXPORT_SYMBOL_GPL(log_buf_addr_get); /* Return log buffer size */ u32 log_buf_len_get(void) { return log_buf_len; } +EXPORT_SYMBOL_GPL(log_buf_len_get); /* * Define how much of the log buffer we could take at maximum. The value -- 2.25.1