Hello,
On Tue, 17 Dec 2024, Julian Anastasov wrote:
On Sat, 14 Dec 2024, David Laight wrote:
The 'max_avail' value is calculated from the system memory size using order_base_2(). order_base_2(x) is defined as '(x) ? fn(x) : 0'. The compiler generates two copies of the code that follows and then expands clamp(max, min, PAGE_SHIFT - 12) (11 on 32bit). This triggers a compile-time assert since min is 5.
8 ?
In reality a system would have to have less than 512MB memory
Also, note that this is 512KB (practically impossible), not 512MB. So, it can fail only on build.
Regards
-- Julian Anastasov ja@ssi.bg