The patch titled Subject: mm/memprofiling: explicitly include irqflags.h in alloc_tag.h has been added to the -mm mm-unstable branch. Its filename is lib-add-allocation-tagging-support-for-memory-allocation-profiling-fix-3.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/lib-add-allocation-tagging-support-for-memory-allocation-profiling-fix-3.patch This patch will later appear in the mm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Klara Modin <klarasmodin@xxxxxxxxx> Subject: mm/memprofiling: explicitly include irqflags.h in alloc_tag.h Date: Sun, 7 Apr 2024 15:32:52 +0200 linux/alloc_tag.h uses the macro this_cpu_inc which eventually expands to: #define this_cpu_generic_to_op(pcp, val, op) \ do { \ unsigned long __flags; \ raw_local_irq_save(__flags); \ raw_cpu_generic_to_op(pcp, val, op); \ raw_local_irq_restore(__flags); \ } while (0) The macros raw_local_irq_save and raw_local_irq_restore are defined in linux/irqflags.h which is not included implicitly on all configs. Therefore, include it explicitly. Link: https://lkml.kernel.org/r/20240407133252.173636-1-klarasmodin@xxxxxxxxx Fixes: ac906a377c67 ("lib: add allocation tagging support for memory allocation profiling") Link: https://lore.kernel.org/lkml/6b8149f3-80e6-413c-abcb-1925ecda9d8c@xxxxxxxxx/ Signed-off-by: Klara Modin <klarasmodin@xxxxxxxxx> Acked-by: Kent Overstreet <kent.overstreet@xxxxxxxxx> Cc: Suren Baghdasaryan <surenb@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/alloc_tag.h | 1 + 1 file changed, 1 insertion(+) --- a/include/linux/alloc_tag.h~lib-add-allocation-tagging-support-for-memory-allocation-profiling-fix-3 +++ a/include/linux/alloc_tag.h @@ -12,6 +12,7 @@ #include <asm/percpu.h> #include <linux/cpumask.h> #include <linux/static_key.h> +#include <linux/irqflags.h> struct alloc_tag_counters { u64 bytes; _ Patches currently in -mm which might be from klarasmodin@xxxxxxxxx are lib-add-allocation-tagging-support-for-memory-allocation-profiling-fix-3.patch