Leak CONFIG_COMPAT to user-space

Hi
I am trying to porting openwrt source code (v19.07.3) to a specific hardware.
I follow the instruction https://openwrt.org/docs/guide-developer/quickstart-build-images to try build the firmware. After executing make V=s, I meet the error below.

r/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-layerscape_armv7/linux-5.4.52/.config.set
mv home/andy/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-layerscape_armv7/linux-5.4.52/.config.set home/andy/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-layerscape_armv7/linux-5.4.52/.config.old
grep -v INITRAMFS home/andy/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-layerscape_armv7/linux-5.4.52/.config.old > home/andy/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-layerscape_armv7/linux-5.4.52/.config.set
echo 'CONFIG_INITRAMFS_SOURCE=""' >> home/andy/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-layerscape_armv7/linux-5.4.52/.config.set
echo '# CONFIG_INITRAMFS_FORCE is not set' >> home/andy/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-layerscape_armv7/linux-5.4.52/.config.set
rm -rf home/andy/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-layerscape_armv7/modules
cmp -s home/andy/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-layerscape_armv7/linux-5.4.52/.config.set home/andy/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-layerscape_armv7/linux-5.4.52/.config.prev || { cp home/andy/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-layerscape_armv7/linux-5.4.52/.config.set home/andy/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-layerscape_armv7/linux-5.4.52/.config; cp home/andy/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-layerscape_armv7/linux-5.4.52/.config.set home/andy/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-layerscape_armv7/linux-5.4.52/.config.prev; }
export MAKEFLAGS= ; [ -d home/andy/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-layerscape_armv7/linux-5.4.52/user_headers ] || make -C home/andy/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-layerscape_armv7/linux-5.4.52 KCFLAGS="-ffile-prefix-map=home/andy/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi=target-arm_cortex-a7+neon-vfpv4_musl_eabi" HOSTCFLAGS="-O2 -Ihome/andy/openwrt/staging_dir/host/include  -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="arm-openwrt-linux-muslgnueabi-" ARCH="arm" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="" KBUILD_BUILD_HOST="" KBUILD_BUILD_TIMESTAMP="Thu Jul 23 11:10:09 2020" KBUILD_BUILD_VERSION="0" HOST_LOADLIBES="-Lhome/andy/openwrt/staging_dir/host/lib" KBUILD_HOSTLDLIBS="-Lhome/andy/openwrt/staging_dir/host/lib" CONFIG_SHELL="bash" V=''  cmd_syscalls= KERNELRELEASE=5.4.52 CC="arm-openwrt-linux-muslgnueabi-gcc" INSTALL_HDR_PATH=home/andy/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-layerscape_armv7/linux-5.4.52/user_headers headers_install
make[5]: Entering directory 'home/andy/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-layerscape_armv7/linux-5.4.52'
  **HDRINST usr/include/linux/fmd/Peripherals/fm_ioctls.h**
**error: include/uapi/linux/fmd/Peripherals/fm_ioctls.h: leak CONFIG_COMPAT to user-space**
make[6]: *** [scripts/Makefile.headersinst:63: usr/include/linux/fmd/Peripherals/fm_ioctls.h] Error 1
make[5]: *** [Makefile:1199: headers] Error 2
make[5]: Leaving directory 'home/andy/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-layerscape_armv7/linux-5.4.52'
make[4]: *** [Makefile:38: home/andy/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-layerscape_armv7/linux-5.4.52/.configured] Error 2
make[4]: Leaving directory 'home/andy/openwrt/target/linux/layerscape'
make[3]: *** [Makefile:13: compile] Error 2
make[3]: Leaving directory 'home/andy/openwrt/target/linux'
time: target/linux/compile#0.75#0.30#1.02
make[2]: *** [target/Makefile:25: target/linux/compile] Error 2
make[2]: Leaving directory 'home/andy/openwrt'
make[1]: *** [target/Makefile:18: home/andy/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.target_compile] Error 2
make[1]: Leaving directory 'home/andy/openwrt'
make: *** [home/andy/openwrt/include/toplevel.mk:235: world] Error 2

Do you have any idea about how to resolve the error ?

I hit this same error trying to build the LS1046 target from git HEAD. I switched to the openwrt-19.07 branch and it builds ok.