From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0AC9041C80; Mon, 19 Feb 2024 16:53:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708361586; cv=none; b=erK6LXC+rPMDydEqxzo26pdG+ktWdqg3PdM+v1TTrDW0aaUx7/oBAz5TJPbKI2JtvNI263hHBc9O6Tylz+IVZnPZNdgry5PD1Md4MJ9DSjn6IdwZ+R1d8qN+Ru7YWmXUEkkZYyY1skuBMR7Hav4sWK66rJii88r/1LPC7tLrudA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708361586; c=relaxed/simple; bh=Lb/0pHwD8Q/riJmHuwL4W03xRKJocFOd+7ePltlp0FM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=jP0tWK5X+1Jn8p0dPF2MIU9D7AjCWZqPi89c0MOm7oDZcpT34cr480aeSqmeGDhFlUBQV0jG97QvZTZdywNiPf0lQibB+6+dFvRszKxGtMEELKZd7scIhvgl+QvLtYeixRBYJu11HRCd4bkqkHzFY//ZeppU4e3TVOMgopwNKuc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=cHEoDThq; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=1HxflZOM; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="cHEoDThq"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="1HxflZOM" From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1708361583; h=from:from:reply-to:subject:subject: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=HiD1LZzj9pImOo0+xGv7g//UL4JkWsKqbaKbyxu1xpk=; b=cHEoDThqVnE3OYnh19npUaWvQy88iRAQyghKlxN1RcZ33HXo7e2vMYkr1mxt6GFcP6DG4x XnGJjhVrybAyaOwhoqJO5pmUoUOfi1kHRdYbTsDAzjNE9cn32tK8LktaY3LtfHiImMC0lD Q28SZpZCvkX3b/hgj18vxDBBbdFGr55DNXXaqe33T7cIdYpA9yD2PBVynoNh9bvXRCi3qN 1HTB11MogtIns0O3EJ/41xdO4bH3TILPxqKaZ1sqzRFaHXd8w4310hR9czVdG8c+tQSJ+F WDj2LrMwoXYeL9sCaIz7e6p/nEZV3wQZyex+RhkRMoN+g9sq79yIN23e5MozBQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1708361583; h=from:from:reply-to:subject:subject: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=HiD1LZzj9pImOo0+xGv7g//UL4JkWsKqbaKbyxu1xpk=; b=1HxflZOMf1mVOuTRWTWbuE3edHmeGDDDhIiNzM1YgBQe+smYGHtB2T7TVvsUJYV5QvO9AG 6ZaI3FLjZzh109Cg== To: Andy Shevchenko Cc: Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Jiri Slaby , Ilpo =?utf-8?Q?J=C3=A4rvinen?= , Tony Lindgren , Geert Uytterhoeven , Justin Chen , Jiaqing Zhao , linux-serial@vger.kernel.org Subject: Re: [PATCH printk v2 08/26] printk: nbcon: Implement processing in port->lock wrapper In-Reply-To: References: <20240218185726.1994771-1-john.ogness@linutronix.de> <20240218185726.1994771-9-john.ogness@linutronix.de> <87jzn0bkqg.fsf@jogness.linutronix.de> Date: Mon, 19 Feb 2024 17:58:41 +0106 Message-ID: <87il2k2y7a.fsf@jogness.linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On 2024-02-19, Andy Shevchenko wrote: >>> The headers in this file is a mess. But here you can at least keep the >>> piece ordered, can you? >> >> Just to clarify, you would like to see this ordering and inclusion? > > Roughly, yes. Ideally it is quite likely that kernel.h is being used as > a 'proxy' header. Nowadays, it's rare the code needs kernel.h. So I took the time to painfully discover every header that is required for nbcon.c without any proxy usage. It came down to this: #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "internal.h" For the next version of this series I will only add the includes you suggested, but will follow-up with a patch that fixes all proxy headers for nbcon.c. As a separate patch it will help with bisecting in case the ordering causes an explosion on some config/architecture. John