config: fix page_mapping test
commit7cdfda3934b4080fa0bbcb0d306ef946d8ed282f
authorRob Norris <robn@despairlabs.com>
Mon, 16 Sep 2024 01:11:29 +0000 (16 11:11 +1000)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 18 Sep 2024 18:23:51 +0000 (18 11:23 -0700)
treeb2fa4c4a89033dea3a098adc7810c13d6283c297
parent080742336905e07d6e5bc39e45b2b464785fbac9
config: fix page_mapping test

It always failed from "unused variable" warnings-errors. The resulting
`#define page_mapping(...)` happend to work because it always overrode
the kernel's function prototype, but that's brittle.

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16479
config/kernel-mm-pagemap.m4