Merge patch series "Audit include list for include/[a-m]*.h"
authorTom Rini <trini@konsulko.com>
Mon, 2 Jun 2025 23:43:56 +0000 (17:43 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 2 Jun 2025 23:43:56 +0000 (17:43 -0600)
Tom Rini <trini@konsulko.com> says:

Hey all,

Related to my other series I've posted recently on cleaning up some
headers, this series here is the result of at least lightly auditing the
#includes used in include/[a-m]*.h. This ignores subdirectories, as at
least in part I think the top-level includes we've constructed are the
most likely places to have some extra transitive include paths. I'm sure
there's exceptions and I'll likely audit deeper once this first pass is
done. This only gets as far as "include/m*.h" because I didn't want this
to get too big. This also sets aside <miiphy.h> and <phy.h>. While
miiphy.h does not directly need <phy.h> there are *so* many users and I
think I had half of the tree just about not building when I first tried.
It might be worth further investigation, but it might just be OK as-is.

Link: https://lore.kernel.org/r/20250521230119.2084088-1-trini@konsulko.com
1  2 
arch/arm/mach-tegra/dt-setup.c
common/board_r.c
disk/part.c
include/bootflow.h
include/efi_loader.h
include/part.h
lib/efi_loader/efi_device_path.c

@@@ -3,9 -3,9 +3,10 @@@
   * Copyright (c) 2010-2016, NVIDIA CORPORATION.
   */
  
 +#include <env.h>
  #include <fdtdec.h>
  #include <stdlib.h>
+ #include <linux/if_ether.h>
  #include <asm/arch-tegra/cboot.h>
  #include <asm/arch-tegra/gpu.h>
  
Simple merge
diff --cc disk/part.c
Simple merge
Simple merge
@@@ -9,13 -9,9 +9,10 @@@
  #define _EFI_LOADER_H 1
  
  #include <blk.h>
 +#include <efi_device_path.h>
  #include <event.h>
- #include <log.h>
- #include <part_efi.h>
  #include <efi_api.h>
  #include <image.h>
- #include <pe.h>
  #include <setjmp.h>
  #include <linux/list.h>
  #include <linux/sizes.h>
diff --cc include/part.h
Simple merge
@@@ -10,7 -10,7 +10,8 @@@
  #include <blk.h>
  #include <dm.h>
  #include <dm/root.h>
 +#include <efi_device_path.h>
+ #include <ide.h>
  #include <log.h>
  #include <net.h>
  #include <usb.h>