From 5213918c3d955b3f4ad796fe8cf0ce06aaf5ccbc Mon Sep 17 00:00:00 2001 From: Mieczyslaw Nalewaj Date: Tue, 7 Apr 2026 19:12:37 +0200 Subject: [PATCH] ramips: restore CONFIG_PAGE_BLOCK_MAX_ORDER=10 for 6.18 Restore CONFIG_PAGE_BLOCK_MAX_ORDER=10 in ramips 6.18 config fragments to fix build failures where PAGE_BLOCK_MAX_ORDER was undefined. Support for Linux 6.18 on ramips was added after this OpenWrt change: https://github.com/openwrt/openwrt/commit/ac0cb87a453698efc6c812e4f27cadbeb208f14e. Before that integration, the kernel option CONFIG_PAGE_BLOCK_MAX_ORDER=10 was provided in target/linux/generic/config-6.18 and applied broadly. After the ramips 6.18 integration the generic fragment no longer supplied this option for ramips targets, which caused some backported code paths and drivers to assume PAGE_BLOCK_MAX_ORDER was defined and led to compilation failures. Signed-off-by: Mieczyslaw Nalewaj Link: https://github.com/openwrt/openwrt/pull/22831 Signed-off-by: Hauke Mehrtens --- target/linux/ramips/mt7620/config-6.18 | 1 + target/linux/ramips/mt7621/config-6.18 | 1 + target/linux/ramips/mt76x8/config-6.18 | 1 + target/linux/ramips/rt288x/config-6.18 | 1 + target/linux/ramips/rt305x/config-6.18 | 1 + target/linux/ramips/rt3883/config-6.18 | 1 + 6 files changed, 6 insertions(+) diff --git a/target/linux/ramips/mt7620/config-6.18 b/target/linux/ramips/mt7620/config-6.18 index 08833b8427..ebd10bc1d5 100644 --- a/target/linux/ramips/mt7620/config-6.18 +++ b/target/linux/ramips/mt7620/config-6.18 @@ -158,6 +158,7 @@ CONFIG_OF_GPIO=y CONFIG_OF_IRQ=y CONFIG_OF_KOBJ=y CONFIG_OF_MDIO=y +CONFIG_PAGE_BLOCK_MAX_ORDER=10 CONFIG_PAGE_POOL=y CONFIG_PAGE_SIZE_LESS_THAN_256KB=y CONFIG_PAGE_SIZE_LESS_THAN_64KB=y diff --git a/target/linux/ramips/mt7621/config-6.18 b/target/linux/ramips/mt7621/config-6.18 index 5334552228..7a9de879d1 100644 --- a/target/linux/ramips/mt7621/config-6.18 +++ b/target/linux/ramips/mt7621/config-6.18 @@ -210,6 +210,7 @@ CONFIG_OF_IRQ=y CONFIG_OF_KOBJ=y CONFIG_OF_MDIO=y CONFIG_PADATA=y +CONFIG_PAGE_BLOCK_MAX_ORDER=10 CONFIG_PAGE_POOL=y CONFIG_PAGE_POOL_STATS=y CONFIG_PAGE_SIZE_LESS_THAN_256KB=y diff --git a/target/linux/ramips/mt76x8/config-6.18 b/target/linux/ramips/mt76x8/config-6.18 index 8504ba20ed..9ea3312102 100644 --- a/target/linux/ramips/mt76x8/config-6.18 +++ b/target/linux/ramips/mt76x8/config-6.18 @@ -148,6 +148,7 @@ CONFIG_OF_GPIO=y CONFIG_OF_IRQ=y CONFIG_OF_KOBJ=y CONFIG_OF_MDIO=y +CONFIG_PAGE_BLOCK_MAX_ORDER=10 CONFIG_PAGE_POOL=y CONFIG_PAGE_SIZE_LESS_THAN_256KB=y CONFIG_PAGE_SIZE_LESS_THAN_64KB=y diff --git a/target/linux/ramips/rt288x/config-6.18 b/target/linux/ramips/rt288x/config-6.18 index 295ca07b2b..120e1bed27 100644 --- a/target/linux/ramips/rt288x/config-6.18 +++ b/target/linux/ramips/rt288x/config-6.18 @@ -141,6 +141,7 @@ CONFIG_OF_GPIO=y CONFIG_OF_IRQ=y CONFIG_OF_KOBJ=y CONFIG_OF_MDIO=y +CONFIG_PAGE_BLOCK_MAX_ORDER=10 CONFIG_PAGE_POOL=y CONFIG_PAGE_SIZE_LESS_THAN_256KB=y CONFIG_PAGE_SIZE_LESS_THAN_64KB=y diff --git a/target/linux/ramips/rt305x/config-6.18 b/target/linux/ramips/rt305x/config-6.18 index 0192bce8fa..0cf46fd449 100644 --- a/target/linux/ramips/rt305x/config-6.18 +++ b/target/linux/ramips/rt305x/config-6.18 @@ -141,6 +141,7 @@ CONFIG_OF_GPIO=y CONFIG_OF_IRQ=y CONFIG_OF_KOBJ=y CONFIG_OF_MDIO=y +CONFIG_PAGE_BLOCK_MAX_ORDER=10 CONFIG_PAGE_POOL=y CONFIG_PAGE_SIZE_LESS_THAN_256KB=y CONFIG_PAGE_SIZE_LESS_THAN_64KB=y diff --git a/target/linux/ramips/rt3883/config-6.18 b/target/linux/ramips/rt3883/config-6.18 index 0085cb203c..9345d27d18 100644 --- a/target/linux/ramips/rt3883/config-6.18 +++ b/target/linux/ramips/rt3883/config-6.18 @@ -139,6 +139,7 @@ CONFIG_OF_GPIO=y CONFIG_OF_IRQ=y CONFIG_OF_KOBJ=y CONFIG_OF_MDIO=y +CONFIG_PAGE_BLOCK_MAX_ORDER=10 CONFIG_PAGE_POOL=y CONFIG_PAGE_SIZE_LESS_THAN_256KB=y CONFIG_PAGE_SIZE_LESS_THAN_64KB=y