From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 553242D0C89 for ; Fri, 22 May 2026 10:53:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779447187; cv=none; b=OR9xD82UXFqv0jNHWihywVg/Y/vxk87Jpk3IAmHwL+yCMvJ6t3sxQm2aaflVrJlpYC/E97xTILEMDEfmivGNUD1m+wkfqqT4bHRz5r8p+ymRx9qeTpElDoBcgHS7E1uqVWxSj0R76jy9zgqghOHmcxJ86PTHmovmuUiU6d1v0Vo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779447187; c=relaxed/simple; bh=df+CnhR7qpLSx3MofrRRzoieB1WIujbtjKTlvAegvQc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=snTedpDUYPtGfOxwN035QR3bf3/KrkPFH+QR00IxfQ0BfCu4lh7SkZmcHH0zz3kaY7jnjuzutdnxMwLBVm5/t48dl6WQzcRj1mR06FmFFBqJivZ5LO/gbQptQqzDNIhwwnnyWq7SaunpG+/8qk6l+GGT7939EjjIsvxGiTuwTPE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=b3Fe/bjJ; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="b3Fe/bjJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 05ACD1F000E9; Fri, 22 May 2026 10:53:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1779447186; bh=df+CnhR7qpLSx3MofrRRzoieB1WIujbtjKTlvAegvQc=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=b3Fe/bjJOppVTRuUr5XBA7dad6C1xDYzY1VKxTzqHdqxadyFt7x63EoKvJkoeOW1D NlJd2A5YO5pXIvfylGIX/Ln3UWadEQ5ddrrpMmDW22pS+/Yuh+7Nn3hzsW5aNsUt09 D0uYnarbZ4QI8ieVDjPZ9OOLTfi3goNUjDd5thJ2nI/E4hDYsOEzwoePTt5AYbIh20 dlO7XNE37FjLGj1+/PHV2Wj9y5lRLCjtwmll5lvwPVvdt+Xsu7InbcGp18XH+eVqZd KF5M+WMRIuEtByV8OCbwLLHqIXkDC8s5WnBpzyiAPNvW5uYViy18X5BnH2tO1bz2pH Nc4LotGO1kHlQ== Date: Fri, 22 May 2026 11:52:58 +0100 From: Lorenzo Stoakes To: Andy Shevchenko Cc: Thorsten Blum , Andrew Morton , David Hildenbrand , "Liam R. Howlett" , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , Andy Lutomirski , Thomas Gleixner , Vincenzo Frascino , Kees Cook , Andy Shevchenko , Yury Norov , David Laight , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/2] vdso: move offset_in_page() from linux/mm.h to vdso/page.h Message-ID: References: <20260521090655.160282-4-thorsten.blum@linux.dev> <20260521090655.160282-5-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Thu, May 21, 2026 at 09:34:57PM +0300, Andy Shevchenko wrote: > On Thu, May 21, 2026 at 4:56 PM Lorenzo Stoakes wrote: > > On Thu, May 21, 2026 at 12:16:00PM +0100, Lorenzo Stoakes wrote: > > > On Thu, May 21, 2026 at 11:06:57AM +0200, Thorsten Blum wrote: > > ... > > > Unless a series can be put forwards that sensibly justifies this, not some > > random change somewhere, I'd rather we not take it. > > The problem is not only a compile time but more generic - the mess in > the Linux headers. People who want to use this match need to include > mm.h which is a bloated header with *tons* of unneeded dependencies > (for those pure users) and increases chaos in how the headers are > split. No question the headers are a bit of a mess, and I've had absolute headaches with dependency chain stuff there. > If we don't care about it, then provide an "INCLUDE EVERYTHING" header That's a false dichotomy - the series isn't upstreamable as-is. I've provided feedback that's not been addressed so we won't take it. > and let the driver just include that. But of course, we don't do that, > we do modular headers for a reason. Currently I see no reason to have > that simple helper to be mm.h as its use is much wider in the cases > where the whole hell of mm.h is not needed. We also don't want to have wildly divergent overly-specific individual headers, and series have to be upstreamable. > > So, the best course of actions I see now is leave mm people alone and > simply duplicate what we need in the headers we want to see > (util_macros.h as a rough approximation, but maybe something better). I mean I feel engaging civilly and constructively with people who have taken their time out to provide feedback is a better approach, but obviously what you do elsewhere in the kernel is up to you. > > > > Also vdso/page.h is a VDSO-specific header by MAINTAINERS, offset_in_page() is > > really an mm thing so that's another reason not to move it. > > > > (A justifying change would show actually build time/binary bloat/etc. numbers + > > involve actual substantive changes). > > > > -- > With Best Regards, > Andy Shevchenko Overall this all feels like a storm in a teapot, this is a very trivial macro and the use case seems nebulous at best. A series actually addressing header issues with _a justifying reason provided_ (I am astonished that it still hasn't!), would be more useful, as long as it was upstreamable and didn't cause other issues. We in mm are friendly and accepting of good series, engaging positively will get a positive reception :) Thanks, Lorenzo