From patchwork Sun Apr 7 13:32:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Klara Modin X-Patchwork-Id: 13620199 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7E538CD11C2 for ; Sun, 7 Apr 2024 13:33:44 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B78916B007B; Sun, 7 Apr 2024 09:33:43 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B28D66B0083; Sun, 7 Apr 2024 09:33:43 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9F15E6B0085; Sun, 7 Apr 2024 09:33:43 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 7E5AA6B007B for ; Sun, 7 Apr 2024 09:33:43 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 3FC2A1C0CA2 for ; Sun, 7 Apr 2024 13:33:43 +0000 (UTC) X-FDA: 81982828326.14.DC2D1C8 Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) by imf14.hostedemail.com (Postfix) with ESMTP id 7880710000F for ; Sun, 7 Apr 2024 13:33:41 +0000 (UTC) Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=RXVbKt+F; spf=pass (imf14.hostedemail.com: domain of klarasmodin@gmail.com designates 209.85.221.48 as permitted sender) smtp.mailfrom=klarasmodin@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1712496821; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=XpyPx7qA2rxEu7q8/rxvJ2qD4iyIGQSw8yw977aFHsQ=; b=3LOb2hZcvqX8fr5/J1iS4Rkfh3YmPky1B0HcZHGwGAylh7e9u13XVyX4AooWcab4L9g+mR XvCQyUHb0EnACB16AUYEnwDBfklLkr+O+cfAean4+coaUnw1/PeEndxDMIoBqC4WcuS2w2 xWOruiFZ0TeAFhg7AHle3cqqIrSBg64= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1712496821; a=rsa-sha256; cv=none; b=7iNztfotHgBVXzF5zKk18IS36nifr0ATtg0blIHHEcjHqSGGv86rP7h7o/FnSV9y5r+i39 tMD3eqCGExxC2QN9KUEX9SENEQfroDwV/lu78dele3QD2e5u5vMzKlrPzGJkS9mvjVAndx TFLI8S4gLTRqVWTm/PFuMP+I3fsgCag= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=RXVbKt+F; spf=pass (imf14.hostedemail.com: domain of klarasmodin@gmail.com designates 209.85.221.48 as permitted sender) smtp.mailfrom=klarasmodin@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-33edbc5932bso2743574f8f.3 for ; Sun, 07 Apr 2024 06:33:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712496820; x=1713101620; darn=kvack.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=XpyPx7qA2rxEu7q8/rxvJ2qD4iyIGQSw8yw977aFHsQ=; b=RXVbKt+FDd9m+jFcj9IYVlz0wlRmaWCNrbjYFL033hKfg0vtvytxU970pLWzqIjs8V z2SLjV3CKL4zPgD1G8QEL6tyQ5PNv07Omv/GOalH8u4D0tihTwsIXmkl0uCo8Cm9G91G 20zeRz/Bc537D/RQsOl94d1q8eS3lOUbjKxYyYaItNXcHDralFRPPp6Vyv6AGf0EiT6+ sbp/NrNxmwRug+S1udcMeeqkfyIfmQzWpK1/CJXlT2AVbFlm6scAWacLh3oOQiuSCMph IIyAInPCkpZt/9PlGELaR+2eHRpRKbjO5hsa6IewBoi05zTkNUNt0nW8F8NHo4R74dG6 3VEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712496820; x=1713101620; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=XpyPx7qA2rxEu7q8/rxvJ2qD4iyIGQSw8yw977aFHsQ=; b=lbMOXVM50MfW8DIYKSkDLB+7Xky+r2QcnMHSJo6RRr77FX4KW7NbIsOrm/ZRGc5lnl pZk9vK97XerRMwZ6v3/ZXaVOJG2IauymZGUzeaWUlsb79JJ+BolWbITZkDYkM2TAejOB qbRs9ofDsrVtE0M4EbVyFEpu7xPU9NuMCjTawJ2f7uQNAHdvHj4MxXiQ4Ra+NSnTBAut IEvH0s1UkDzbzA2k9JZCZzhkpujL3CxOniyyEpdowb/GbbMF3tVwBCQA5mr1BBEaswIg laeBGaTeRu2TI2npODZKfiWIwJxshB2cKTXlWHBeuCTxtVsaxVN9Njyoz5Q2sihI/5ek ObwQ== X-Forwarded-Encrypted: i=1; AJvYcCXc5VP7ESy9SlI8nSUJF4Z2xutMQoJ5rYZ2KCP2yxw97Sz+k14GD1+ffgh9kOCDcYrYifH2iNwFFBHoyIOmiVSpk2Y= X-Gm-Message-State: AOJu0Yy/DmwjRHxlBjXX0P+PCVDHbVx009gkn8C6O6hQNsIIZZHDr5CG FgZiYrRh+xShGY1NRpjU/XUzMlkE6X0KfSnbtlst+CnhgK8V/Deg X-Google-Smtp-Source: AGHT+IEyktO4eMlUeyMlxWcQWWQOCz5MfphZsNb32oiOfcaTeRamgm+qDAa+UynH1INQTT7j+S9YbA== X-Received: by 2002:adf:f9cc:0:b0:343:668b:be04 with SMTP id w12-20020adff9cc000000b00343668bbe04mr4191121wrr.3.1712496819659; Sun, 07 Apr 2024 06:33:39 -0700 (PDT) Received: from localhost.localdomain (soda.int.kasm.eu. [2001:678:a5c:1204:59b2:75a3:6a31:61d8]) by smtp.gmail.com with ESMTPSA id d6-20020a056000114600b003456c693fa4sm2406208wrx.93.2024.04.07.06.33.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Apr 2024 06:33:39 -0700 (PDT) From: Klara Modin To: akpm@linux-foundation.org Cc: surenb@google.com, kent.overstreet@linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Klara Modin Subject: [PATCH] mm/memprofiling: explicitly include irqflags.h in alloc_tag.h Date: Sun, 7 Apr 2024 15:32:52 +0200 Message-ID: <20240407133252.173636-1-klarasmodin@gmail.com> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 X-Stat-Signature: 7m31xhae6cc11bm1mtxr7hdytepoioin X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 7880710000F X-Rspam-User: X-HE-Tag: 1712496821-969315 X-HE-Meta: U2FsdGVkX1+Wttk1nSgEKVan2vlv26tYJaFWysETo+mssqMM0U2wd/5NZ9bbGAXl8SP05oJSgh8Ss1kt+hGx1oENd84PdOA0pv/zam5CzyYKTKmkOXdJMUXybT7fNCFOqpgivJR4LzWjLnMBrjY786AAtGXzWjF39tXooSnw590rbVZxRpi0IW4ZlpAWbtK7/IuaotDF4hHbC/suviMYKYpIEffFbPRjqhJ5Wtnm5b1KgFKAua0Rb45lbVI276CtxP5e9XoOilm5g1e2JVbuvNqgNMD2/8RhhbiEJffWCdUI4ZuoBkBoTEh2fhM4+69S2tJzXasEQhu1FRf1aTRlQm3XoxK6ImSalLp98+DmUVEhIZisZ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7JJZqrUwNg0GEjKm5qp2k67KO4vuv0G3bXQzKKpP/CLOhRuWaeT2mvptCJO/roICT5JwHIzd0Xq/4SvR0+g== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000866, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: 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. Fixes: ac906a377c67 ("lib: add allocation tagging support for memory allocation profiling") Link: https://lore.kernel.org/lkml/6b8149f3-80e6-413c-abcb-1925ecda9d8c@gmail.com/ Signed-off-by: Klara Modin Acked-by: Kent Overstreet --- include/linux/alloc_tag.h | 1 + 1 file changed, 1 insertion(+) base-commit: f43b3aae94511d62174c3b29239da0dd22d0eeb3 diff --git a/include/linux/alloc_tag.h b/include/linux/alloc_tag.h index e867461585ff..afc9e259a2d3 100644 --- a/include/linux/alloc_tag.h +++ b/include/linux/alloc_tag.h @@ -12,6 +12,7 @@ #include #include #include +#include struct alloc_tag_counters { u64 bytes;