Subject: linux-next: samples/bpf build error: no member named 'ns_id' in struct ns_common

From: Mikhail Zaslonko <[email-masked]>
Date: Mon, 17 Nov 2025 22:19:24 +0100

Hi,

I’m observing build errors in samples/bpf on linux-next.

  - linux-next snapshot: next-20251117 
  - Architecture: s390x
  - Compiler: clang version 20.1.8

Numerous errors of the following type:

In file included from lathist_kern.c:9:
In file included from /root/linux-next/include/linux/ptrace.h:10:
In file included from /root/linux-next/include/linux/pid_namespace.h:11:
/root/linux-next/include/linux/ns_common.h:25:23: error: no member named 'ns_id' in 'struct ns_common'
   25 |         VFS_WARN_ON_ONCE(ns->ns_id == 0);
      |                          ~~  ^

Appears to be a mismatch between kernel headers and bpf. 
On next-20251111 no errors of this type took place.

I figured out the following patch series is likely the cause:
https://lore.kernel.org/all/[email-masked]/

Thanks,
Mikhail Zaslonko