diff --git a/Makefile b/Makefile index a91a2750..43cc05b4 100644 --- a/Makefile +++ b/Makefile @@ -50,9 +50,6 @@ subdir-ccflags-y += -DNV_V4L2_ASYNC_NF_SUBDEVICE_INIT_RENAME # Deprecate PCIED Error reporting pci_enable_pcie_error_reporting subdir-ccflags-y += -DNV_DROP_PCIE_ERROR_REPORTING -# Split types and declaration of net/page_pool.h -subdir-ccflags-y += -DNV_SPLIT_PAGE_POOL_HEADER - # FB Deferred IO helpers name alignment subdir-ccflags-y += -DNV_FB_DEFERRED_IO_OPS_RENAME diff --git a/drivers/net/ethernet/nvidia/nvethernet/ether_linux.h b/drivers/net/ethernet/nvidia/nvethernet/ether_linux.h index 83f302d1..9a632994 100644 --- a/drivers/net/ethernet/nvidia/nvethernet/ether_linux.h +++ b/drivers/net/ethernet/nvidia/nvethernet/ether_linux.h @@ -4,6 +4,8 @@ #ifndef ETHER_LINUX_H #define ETHER_LINUX_H +#include + #include #include #include @@ -37,11 +39,11 @@ #include #include #if IS_ENABLED(CONFIG_PAGE_POOL) -#if defined(NV_SPLIT_PAGE_POOL_HEADER) +#if defined(NV_NET_PAGE_POOL_H_PRESENT) +#include +#else #include #include -#else -#include #endif #define ETHER_PAGE_POOL #endif diff --git a/scripts/conftest/Makefile b/scripts/conftest/Makefile index 2ca83282..ecebf193 100644 --- a/scripts/conftest/Makefile +++ b/scripts/conftest/Makefile @@ -159,7 +159,8 @@ NV_HEADER_PRESENCE_TESTS = \ generated/autoconf.h \ linux/kconfig.h \ linux/iosys-map.h \ - net/gso.h + net/gso.h \ + net/page_pool.h # Filename to store the define for the header in $(1); this is only consumed by # the rule below that concatenates all of these together.