Subject: Re: next: mips: ERROR: modpost: Section mismatches detected.

From: Nathan Chancellor <[email-masked]>
Date: Thu, 20 Apr 2023 08:45:37 -0700

Hi Naresh,

On Thu, Apr 20, 2023 at 04:31:12PM +0530, Naresh Kamboju wrote:
> Following build failures noticed on Linux next-20230419 for mips.
> 
> Regressions found on mips:
>  - build/clang-nightly-allnoconfig
>  - build/clang-16-allnoconfig
>  - build/clang-16-tinyconfig
>  - build/clang-nightly-tinyconfig
> 
> 
> arch/mips/kernel/genex.S:520:2: warning: macro defined with named
> parameters which are not used in macro body, possible positional
> parameter found in body which will have no effect
>  .macro __BUILD_verbose nexception
>  ^
> WARNING: modpost: vmlinux.o: section mismatch in reference: check_bugs
> (section: .text) -> check_bugs32 (section: .init.text)
> ERROR: modpost: Section mismatches detected.
> Set CONFIG_SECTION_MISMATCH_WARN_ONLY=y to allow them.
> make[2]: *** [scripts/Makefile.modpost:136: vmlinux.symvers] Error 1
> make[2]: *** Deleting file 'vmlinux.symvers'
> make[2]: Target '__modpost' not remade because of errors.
> make[1]: *** [Makefile:1978: modpost] Error 2

Thanks for the report. I sent a patch for this yesterday:

https://lore.kernel.org/[email-masked]/

Cheers,
Nathan