Re: [PATCH] mm: add some missing includes to mm-local headers
Barry Song <[email protected]> Wed, 5 Aug 2026 06:21:53 +0800
| Newsgroups | org.kernel.vger.cgroups,org.kernel.vger.linux-kernel,org.kvack.linux-mm |
|---|---|
| Message-ID | <CAGsJ_4wcq5UXq1RAoD8iygnKV95o=D+nOd01ncz4GQJ8Bge3ow@mail.gmail.com> |
On Tue, Aug 4, 2026 at 6:09=E2=80=AFPM Lorenzo Stoakes (ARM) <[email protected]= g> wrote: > > There are a number of internal headers local to mm/ which reference > functions and data types without including the relevant headers. > > mm/vma.h is a special case that intentionally does not include additional > headers, but the others are not. > > This breaks tooling like clangd (which is where I noticed this), though t= he > build is OK due to the C files including the headers happening to include > required dependencies. > > It's better to be explicit about dependencies anyway, so add the missing > includes and fix clangd as a bonus. > > Signed-off-by: Lorenzo Stoakes (ARM) <[email protected]> > --- Reviewed-by: Barry Song <[email protected]>