From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 47E69EE57DA for ; Fri, 8 Sep 2023 07:22:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240089AbjIHHWM (ORCPT ); Fri, 8 Sep 2023 03:22:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239017AbjIHHWL (ORCPT ); Fri, 8 Sep 2023 03:22:11 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A5D31BCB for ; Fri, 8 Sep 2023 00:22:06 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 39D711F461; Fri, 8 Sep 2023 07:22:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1694157725; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=yMgosH2V+Vld6J5jBXIJkB3KbdeHiICDvgis7QJxV0A=; b=IfwXxUiGCHEs7s52yIjPuK33PsBsr2W6P5xxFnrDtsO0pgoz7DbPk5fUzTv/3Ku/o/piZA qukMOP+J+UVZnnmmvXgbB8OXAPdcRRHFTmjWdpW40Q5Dnph2WNTb/1b0sT+4/J3lj61tgU 0f5ttoi2htW5vyKwtQV0zzIfMWmX/jY= Received: from suse.cz (pmladek.udp.ovpn2.prg.suse.de [10.100.201.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id D3F1C2C142; Fri, 8 Sep 2023 07:22:03 +0000 (UTC) Date: Fri, 8 Sep 2023 09:22:03 +0200 From: Petr Mladek To: Christoph Hellwig Cc: rostedt@goodmis.org, john.ogness@linutronix.de, senozhatsky@chromium.org, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, Yunlong Xing , enlinmu@gmail.com, yunlong.xing23@gmail.com Subject: Re: [PATCH] Revert "printk: export symbols for debug modules" Message-ID: References: <20230905081902.321778-1-hch@lst.de> <20230905132022.GA26718@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230905132022.GA26718@lst.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 2023-09-05 15:20:22, Christoph Hellwig wrote: > On Tue, Sep 05, 2023 at 11:54:37AM +0200, Petr Mladek wrote: > > Yeah, I did not have a good feeling about this patch. > > > > I accepted it because there was an intention to upstream > > the module, see > > https://lore.kernel.org/all/CAAfh-jM0B2Cn579B0CkCrW44pJGGvjs112K+oMuViib+jDKafg@mail.gmail.com/ > > > > I think that it was bad decision. We should not export > > symbols when there is no in-tree user. > > I think raw address to the printk buffer is a bad idea even for an > in-tree module. Yeah, I suggested to use the kmsg_dump() API in the original thread. Sigh, I made the bad decision in a hurry before vacation. I know that it is a bad excuse but... Thanks for catching it. Best Regards, Petr PS: I have just sent a pull request with the revert.