Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp927877lqe; Sun, 7 Apr 2024 10:01:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXyc3XOrE0aMFrBkonA4Fi7UEhzGIlp/XpbaP+aSTNg4L+3KuaQOcKLx1HfVwAnh0RRQngW+WYLUZ8FSDijJrkQSAwtdw0AsBUl76CE8g== X-Google-Smtp-Source: AGHT+IFeoPEq3EP5IXZllkBQYxTyG59RRvH5joW3zhhcpzehubcht1L1Zjq83fDfU+fjAjeSg0z3 X-Received: by 2002:a50:aadb:0:b0:568:9d96:b2d1 with SMTP id r27-20020a50aadb000000b005689d96b2d1mr4433106edc.32.1712509313912; Sun, 07 Apr 2024 10:01:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712509313; cv=pass; d=google.com; s=arc-20160816; b=SCiNtUyj4y0Dnpd6do1P3+v9FN96tyxSy8WEm/nezQltajJXY316bQYbffBzgvEtXR izc+XtOuigBfrl2CiH4aqkFv4yftmJv6soEUpVTNDz2s/t7prOmoYd12d6lgo+1hAAPP QlpdbYbNv24w4cCZOlfq3Jjduru7B7c3en5D50mqggPjE6Qt7+CZ/lffcZ6wXNHY/SPx l8grkMHntGrbr7WPBcyDKCeMAWZlzF1PVIPkQmCF6GwwBw05lf2zDRKZF9ACYNix/F3q 1TsqtEF1Al+5ix5Fr7VPHjhTfVf4taeXxWyyrc8Ikrm4JDlil4kaguLTBmq4BAeEUq33 q9qg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:dkim-signature:date; bh=HDrRDB/UkXeAYx9XmDkaIFHSFf8yLRfaEqiA1CEB3hs=; fh=bx5XqiAKA83kQ+Inz+WfKnZfmT/bfWGrgkJTudqAMMA=; b=z7DtcWhTj026Cz6HNsWqSjxd4HBcJ/vuzqzm62rwW4u1Huv4uHig6Loe/BAQsCERdv aWZui/wguwFMXNQOylUNFM7XL3VxoyXDtxh9DgQdhRTiDqHRp4ia0gmUsi7jMrLfHTW5 RVBUA+DO/BeRZD+wEDtj8mD4ZImoVKsSwiZhodIQTsiJ12mzVu5UjPaQuniqiNBM115Z SkUL1l8E998/Cvz/2V1A1qj4gTwMmmunzMg82unW2Aws8JHJwJYyNZ+X92w9LWldmcv6 HOU2KNtIq07t6P6+kdIhw5nCMJkGPPCY1c3Al3smAErYUeMMLtUIVTabZiTyn1VsRDf4 qHgQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=a735W5ZP; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-134578-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134578-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id y5-20020a056402358500b00568b98d006csi3030936edc.634.2024.04.07.10.01.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Apr 2024 10:01:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-134578-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=a735W5ZP; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-134578-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134578-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 89A321F21B73 for ; Sun, 7 Apr 2024 17:01:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BCC263B2BD; Sun, 7 Apr 2024 17:01:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="a735W5ZP" Received: from out-175.mta0.migadu.com (out-175.mta0.migadu.com [91.218.175.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4031037703 for ; Sun, 7 Apr 2024 17:01:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712509305; cv=none; b=oh2y6F7Uw5rLQC93ppYEu5Kn0OP326Pm075VFmXRLxNMOLeNcfAEdG3jEBMVWj5P+d3Z3RovJZ2iwlBhPcVS204uhgnoYcwUnd44LNfd1aw2TC2Kk+WCz0WXrTyZINQ6YS1MM1h19bdKdK4WKZd1rswW1H2CNyhuGYHb+FxMmE0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712509305; c=relaxed/simple; bh=rfQaFF9DIqQBatKH10wdndcFZRp12yRilsPlzOmw6Go=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Jqi+rQF0RomnhrafC8MRUBJ1PrNahnRd8X0cBVRRYFpY0hS66eP42B4nswTjQwMVBKZJzUU6nw1JUBv4mdBFY9u6JUuMhDHc4KsN2YkqWwIj4zqMQS4Z0b4aC/yEVnukVnExvI1zA9LYqAPp2DPwmjoQFaqDMzUXSCEZBfwh+Ag= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=a735W5ZP; arc=none smtp.client-ip=91.218.175.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Date: Sun, 7 Apr 2024 13:01:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1712509300; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=HDrRDB/UkXeAYx9XmDkaIFHSFf8yLRfaEqiA1CEB3hs=; b=a735W5ZPKTAymghHVTT3RcykxqihE1oC4s8VX1VkaeZJyOC42aMaATXM3RC0h6NbQ0YoMQ FEDdL1ZpSOSnS8FsbH0ZhOMdEFBWZw3TjV+qUXAmlkDvMrR4hHcitgRdLu43lP5PXA+h+n PCtQaNOljcqWCj/zuGpPe+/rViVq8lg= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Klara Modin Cc: akpm@linux-foundation.org, surenb@google.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm/memprofiling: explicitly include irqflags.h in alloc_tag.h Message-ID: References: <20240407133252.173636-1-klarasmodin@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240407133252.173636-1-klarasmodin@gmail.com> X-Migadu-Flow: FLOW_OUT On Sun, Apr 07, 2024 at 03:32:52PM +0200, Klara Modin wrote: > 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 Actually, shouldn't this end up in a percpu header? Or was there a problem with that?