Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp846612lqe; Sun, 7 Apr 2024 06:43:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXOkadiHSgVxCtjPc0VjXKHq9uiI43xlsAIvDVLvmKqSWaM0xvRI5VKpAbWO4dXICxboAX48h41RX+nhvHjIwdVcSYicE1j4u1kTcLYIQ== X-Google-Smtp-Source: AGHT+IFs1sa+xhIgDuJGY+QsgFQigAtiwoSaIClxM1qMipq1N1NhYIfVKpYzelOTPktFLIAuCzmn X-Received: by 2002:ae9:c005:0:b0:78d:3b46:c2df with SMTP id u5-20020ae9c005000000b0078d3b46c2dfmr6767731qkk.46.1712497404930; Sun, 07 Apr 2024 06:43:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712497404; cv=pass; d=google.com; s=arc-20160816; b=JXKvsM4VdfXfkL6y7jPJbKxZ8AyyRq1fW1dvyFDYW7w+UhxcUkXJjUq/pHtiW3aCIg WQgy0LjPHwsama6Z7sFUR9Gi0WSXEH9uNyAVbXxo9tWq2GokAmM0Oas2X3LY7tcTMcj+ zacKKJ5QMjRXtbay3ljFZ93V2WUmr0DG35A7u+EAZnhwGun340tCNyviVlsXbniFrpo5 4XO8tqrBHpDcPopLdz0OYUoUNGKPvqOPoINTnlnjHi1w9Zx3GBPIxtmBEDm2wE07E9LM LBu+fYF6OV87LRhF6t0HrSUYMHu2rwEV5u5RlnSMIuOC1sulZiqWtppk/YJ3I8XkE+Lj UhDg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=XpyPx7qA2rxEu7q8/rxvJ2qD4iyIGQSw8yw977aFHsQ=; fh=76Hhko9bntqaUAwamS8/tUt/RUBMcn9YqcVcRezgoAI=; b=vhukoXS9vPYPCoo8/NNCXIklzRvWfX10AvSxt+vkg1NFl7ajPrCnoez0vqLa+PO7PR mmShEM1we0zR83l8QA8p+50zdWj3GhOFr92apZbHz3AONVIjzJgbA3vngZHrBSqgYFs7 y8kuWSk+CSt/S3caKZp2UNJa5egVyZChKbHNegumfmM2lonyGCkKixIqClK3mhwXtmfN olOJcR356d/8NK8fO7eyCAKPpiO4rGF+l/qa4GMGstNHEYzvHbyrG/n0qesoSJl9NHVz BixbX5YcVsNjPolYIblvEZGd5NeY7OEDkPTXUaDkC1EKN+HnfC/BMNNp/SylN3tPiGvi ML5w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jkmRJo8v; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-134504-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134504-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id u13-20020a05620a454d00b0078d37c6792csi6772614qkp.764.2024.04.07.06.43.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Apr 2024 06:43:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-134504-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jkmRJo8v; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-134504-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134504-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id A56E31C2110B for ; Sun, 7 Apr 2024 13:43:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 07D4D3A1C7; Sun, 7 Apr 2024 13:33:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="jkmRJo8v" Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 863AC3838A for ; Sun, 7 Apr 2024 13:33:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712496823; cv=none; b=INdfUN3ppSqdgZvInsApu3v9NME6FJyDxCTg7Aldl7v5ck5lufkOqklag9NCF4k/bSnW0LSqkCQevAMzJ+zJSbDNymybu8k9Qsb+L2e8xPQuDriKmOhWfye+i/7JYhFOwoCkDW/R7NeZIMFCC1xltw8bWzE3BZzhGBAbiDlamww= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712496823; c=relaxed/simple; bh=vEdFZ3XH5UC/kGPwZlxG2ZU35jbh7nfLdrwNQKRK3Nk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Cm0BBHUYDhasXqBxQwJmatVrz233GOasvggC/pny/mpEdsiy4QI9TelICiokWVWYGTvuFFbuXH25RXfmljcWgHk9LI2Y+ijZARrnV8QV5PDiYsUDZJQ7f7C21pxsm+VOu2+y+3pHPJxt0xLTHf+m7LaSUSy/oUZPP7VLbwG7geo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=jkmRJo8v; arc=none smtp.client-ip=209.85.221.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-34005b5927eso2343864f8f.1 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=vger.kernel.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=jkmRJo8vTUvFTiAwyxQrrfNqC7Z0Qh7bLaH2NaOYUhxduNR/K6ChLXf2oKVmU/Kesz YaEFLK7UtxCWA5GJgezDGjToSYeCRaAXZWZT521ootTDp5BhlNYd5rl64+HGU6PWToAm lIesoXo3YkDmeq0uZfvBHrNN1cPvlMdZveHNGSXMv6LbOUNLrVlUVTtubhPFIu06BQXB 9n4F8IFAZsQWhmZX2puKODlLu4aKl9+DGp3V1TkrOUbH6/VZOfyC5QpYcB1qDCQDrTcv i7kbVi7ys+lGzBir5gWZCXEXHo4r8JoO11Ba23xwU2Ni3ymp8FKWTMZLA1iw/8nC/Yf2 OULQ== 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=gc003wUpdIE9gG8C8eAYEz3nJISR++HlQTBd04zQpLhQTI0W6qNLlecreqPN3IoF3M qfr5whX8CjjFpY3EDTWuswPKa+NQPR2UGfW6y4HLBOi0BNpoPui8BJWoGeN/kkt/SWtE CgxzBj0kRimhxUJvfjrC1g+8cttf8ka92Ne3iof0BpfQmkEaUx0sdLuGNB3hgBYi3DdX 32ifZ0d3hL8H3w1b9qu+pb7VcepPYOrHHseSC5dEjhWmmoZGWhOGEkwrWcjbATWFjYIE Le1+JvPwrboQjzJg2EnggbryRFUmkpK00YmhVGC5vrIVDHmIQu9D+sjeNI0CMNAAuFa/ uH2A== X-Forwarded-Encrypted: i=1; AJvYcCWG35YjksB6O+LGfrrMd/6rVY7TLxQUUY+YuxFgz28K7e4gt5+DmNd67jurq6K3B0bV46R2KkjEthCYlBSJnndK/B2wolkvDTpsw8bD X-Gm-Message-State: AOJu0YzuAc+6g7jEXv47SUzJEjjCVCR2unOyQ1yyYM+9xeboU9wcVcdJ D1c1y6i5lptlnysf96vGxdbeQcYrj8jFhPs0eIcAOnbBaS6D5gix 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- include/linux/alloc_tag.h | 1 + 1 file changed, 1 insertion(+) 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; base-commit: f43b3aae94511d62174c3b29239da0dd22d0eeb3 -- 2.44.0