Re: linux-next: manual merge of the perf tree with the mm-nonmm-unstable tree
From: Namhyung Kim
Date: Mon Nov 23 2026 - 16:37:09 EST
Hello,
On Mon, Nov 23, 2026 at 02:00:32PM +0000, Mark Brown wrote:
> Hi all,
>
> Today's linux-next merge of the perf tree got a conflict in:
>
> tools/include/linux/compiler.h
>
> between commit:
>
> 8bc0233d079e4 ("xarray: switch to __nonnull_args() macro")
>
> from the mm-nonmm-unstable tree and commit:
>
> bed0673e839c3 ("tools headers compiler: Synchronize compiler_types.h with the kernel sources")
>
> from the perf tree.
>
> I fixed it up (see below) and can carry the fix as necessary. This
> is now fixed as far as linux-next is concerned, but any non trivial
> conflicts should be mentioned to your upstream maintainer when your tree
> is submitted for merging. You may also want to consider cooperating
> with the maintainer of the conflicting tree to minimise any particularly
> complex conflicts.
Thanks for letting me know. The change looks fine. I'll note that when
it happens again during the next merge window.
Thanks,
Namhyung
>
> diff --cc tools/include/linux/compiler.h
> index fad2c6131a80c,505fbb0080d06..0000000000000
> --- a/tools/include/linux/compiler.h
> +++ b/tools/include/linux/compiler.h
> @@@ -68,15 -34,6 +34,10 @@@
> #define __naked __attribute__((__naked__))
> #endif
>
> +#ifndef __nonnull_args
> +#define __nonnull_args(x...) __attribute__((__nonnull__(x)))
> +#endif
> +
> - /* Are two types/vars the same type (ignoring qualifiers)? */
> - #ifndef __same_type
> - # define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b))
> - #endif
> -
> /* Enforce static storage duration. */
> #define ASSERT_STATIC_STORAGE(name) \
> static typeof(name) * const __always_unused \