From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=atomide.com header.i=@atomide.com header.b="OoYqo2C9" Received: from mail5.25mail.st (mail5.25mail.st [74.50.62.9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3C48D40; Tue, 21 Nov 2023 22:18:34 -0800 (PST) Received: from localhost (91-158-86-216.elisa-laajakaista.fi [91.158.86.216]) by mail5.25mail.st (Postfix) with ESMTPSA id 798D060852; Wed, 22 Nov 2023 06:18:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=atomide.com; s=25mailst; t=1700633913; bh=s2Rn9HZSrXpT1wimrPImmfufYVdONUvRoqjmZHEvbes=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OoYqo2C9oHA9tXrpgOX+dWYtyewBVusp46hd+a/zwCo5Skm1JZBaAqBY+c2qDMNUV YKFbT+vCt9NA/OfC18UJq9WK402lwsLMZ3w4uNFevHkG9QxCituKGb7+XaBdOAwyjQ 9FeNq3BfE2p0RWIV/55LrymCmxSIqWwRcHWO5+Rc6BMQy3gVurOlIcKGk4Grq1puVr moVB9Xwx6VQVd6/27FfDTmzdpBAQA8D4KTcv8ACydf2smsCi9ri5GOnQtF8v38cNn8 NTWAa5x8eauL9f9tgO8102loKoMSHsQCb7pUwrrtatHgtXOJ9BWXHEtzg4ANv2WYoe of0M5APHo1rtw== Date: Wed, 22 Nov 2023 08:18:00 +0200 From: Tony Lindgren To: Andy Shevchenko Cc: Greg Kroah-Hartman , Jiri Slaby , Petr Mladek , Steven Rostedt , John Ogness , Sergey Senozhatsky , "David S . Miller" , Dhruva Gole , Ilpo =?utf-8?B?SsOkcnZpbmVu?= , Johan Hovold , Sebastian Andrzej Siewior , Vignesh Raghavendra , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: Re: [PATCH v3 1/3] printk: Save console options for add_preferred_console_match() Message-ID: <20231122061800.GC5169@atomide.com> References: <20231121113203.61341-1-tony@atomide.com> <20231121113203.61341-2-tony@atomide.com> Precedence: bulk X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: * Andy Shevchenko [231121 17:53]: > On Tue, Nov 21, 2023 at 01:31:55PM +0200, Tony Lindgren wrote: > > +#include > > > +#include > > I think instead of kernel.h you may want to see these: > > linux/init.h > linux/string.h > > asm/errno.h > > > +#include "console_cmdline.h" OK > > +/** > > + * console_opt_save - Saves kernel command line console option for driver use > > + * @str: Kernel command line console name and option > > + * > > + * Saves a kernel command line console option for driver subsystems to use for > > + * adding a preferred console during init. Called from console_setup() only. > > scripts/kernel-doc -v -none -Wall ... > > most likely will complain (no Return section). OK adding. > > + */ > > +int __init console_opt_save(char *str) > > str is not const? Hmm... Nice yes it can be const char *str here. Hmm maybe with the third patch also console_setup() can use const char * now.. Will check. Thanks, Tony