Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1252566rdb; Mon, 19 Feb 2024 08:53:30 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUH7Sfw4Tt6bWGQ+rEERp2f4rrW9eWX1bU6ZaFJK/m7CBgyqw9hnUWvoqxdSS2j94kPhxRY9b/b9eJwOSEfFgPdbKINBYsIjbSy6tBVig== X-Google-Smtp-Source: AGHT+IEU5rLDBq65jrStFCLkgOnNXYDuuiPDRrY8prcgAsF4kaGtmjTGTse/HVLbxtQwqR4SXGyX X-Received: by 2002:a05:6a21:4414:b0:19c:b479:1036 with SMTP id vn20-20020a056a21441400b0019cb4791036mr11749553pzb.36.1708361610642; Mon, 19 Feb 2024 08:53:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708361610; cv=pass; d=google.com; s=arc-20160816; b=nVFoRy0c1Bs2rMqIInP76/0CnqETKdlDs+p6B6AW19ON4AGUiJFl4Ro5IMDmpor0ci rsOy6m0gTc1YYMvIqyWIYiX51/Row3EtJxLMVqBVmATui/g7D1edUSevNFWno5k3y53X fsXN7X8flSPwSymaf+TY2AlTUioLFVR3AvtQ8ldIOXHv37p8UNY4x0Y9o8rdF8zTb4VE IC/6+wdTuHq8dxusUmK4w917ROLGszCQB6h0LcQl1RjnLBLLgUSzly89vM8opepIiaWE X0pnuBcEz9PMDe6Z43r8bFii90RZcQJtW/D0gfpuE+R7zcAes0TgYIwVIE1BEJAAnKVd FN3w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=HiD1LZzj9pImOo0+xGv7g//UL4JkWsKqbaKbyxu1xpk=; fh=bB/xA+3D91d8mEXjogP3eSJRDEqssXy0u8NBEQaP2sw=; b=tZKfwZ/FOey7oLlTIO9YPKRcfc3TfD2A4UDQLjizsNJxey3Akp5U0hL+conyYjVb/4 WYGDWU9dbqC3Qrx2BXbEVlMrf7tGXYVaCqqEaZVV3H46aKsZg0dT1lh90oIFKQgUa+lR LAWIDx98AD+Ycq1VqIF3zf5ryvUrYu6fOWmR9do14cIHzJ3P837I6xwsMEXjDByQNcgo XSK54nWuZ4YXsUDq6Tl5yEV9/Jl3PKkdfPDmwv3GCc+ePKgrwEFZfefMXGT1hnMuDJcm Qh4vEwGDOCGPD8NOSWxKOPg95gKzPNE+IHT0yHWA4dQRL+0AJ6ZORz9PK1EYEaA716Ph +40Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=cHEoDThq; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-71710-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71710-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id v185-20020a6389c2000000b005dc892da3cfsi4555274pgd.642.2024.02.19.08.53.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 08:53:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71710-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=cHEoDThq; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-71710-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71710-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 5320F286304 for ; Mon, 19 Feb 2024 16:53:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3601F446A1; Mon, 19 Feb 2024 16:53:07 +0000 (UTC) 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" 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 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