From mboxrd@z Thu Jan 1 00:00:00 1970 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 6C83BC433F5 for ; Thu, 27 Jan 2022 13:56:36 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DED296B0093; Thu, 27 Jan 2022 08:56:35 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id D9AFE6B0099; Thu, 27 Jan 2022 08:56:35 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CB0176B009B; Thu, 27 Jan 2022 08:56:35 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0082.hostedemail.com [216.40.44.82]) by kanga.kvack.org (Postfix) with ESMTP id B8C546B0093 for ; Thu, 27 Jan 2022 08:56:35 -0500 (EST) Received: from smtpin12.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 704B9181CA74C for ; Thu, 27 Jan 2022 13:56:35 +0000 (UTC) X-FDA: 79076217150.12.08D84A4 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf22.hostedemail.com (Postfix) with ESMTP id 1D084C000A for ; Thu, 27 Jan 2022 13:56:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=E9AD+rI9OWKW7gBQjNlVOBV7o12pc2DPP2BjIJ5a0lU=; b=Sy4LpHlXX/F9DEhym1b6Z0CR3S v10GUiwrWU1FvDB99woTbeQ5iQmOuEixU8lKbEW9QoKv+3yZZNmmUkXgQffWsdoR+KD/4Ev1bwxMT M23P2Kp+z6rzjk0oHl9sDzenaBABKh4Y+9UGwga8G7DS5LISN/MeAbGwqz7m1LVlKlC/NN2DeEkro WbJtd/JtgfiGkWnc9sDKRGFodbdRdhdKU6mNbck7cBN4oI1c/2C7hYtVcQuVX01kbNhzIR6hHBC2v ku1W88LcrSLyAfrBy08bgozzv3w/hhwhtlP201NYXvy9U8lrW7jIiNV3NVrdyAT5+2StI3Gh50hhH Et2Vs09Q==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nD5GL-005I3G-RO; Thu, 27 Jan 2022 13:56:33 +0000 Date: Thu, 27 Jan 2022 13:56:33 +0000 From: Matthew Wilcox To: Karolina Drobnik Cc: linux-mm@kvack.org, akpm@linux-foundation.org, mike.rapoport@gmail.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 04/16] tools/include: Update atomic.h header Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Server: rspam11 X-Rspamd-Queue-Id: 1D084C000A X-Stat-Signature: 65tibfude6x91qh8nzofnzno5w9txwmd Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=Sy4LpHlX; dmarc=none; spf=none (imf22.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org X-Rspam-User: nil X-HE-Tag: 1643291794-108893 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000007, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Thu, Jan 27, 2022 at 02:21:22PM +0100, Karolina Drobnik wrote: > Add atomic_long_t typedef and atomic_long_set function so they > can be used in testing. > > Signed-off-by: Karolina Drobnik > --- > tools/include/linux/atomic.h | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/tools/include/linux/atomic.h b/tools/include/linux/atomic.h > index 00a6c4ca562b..5d2431889606 100644 > --- a/tools/include/linux/atomic.h > +++ b/tools/include/linux/atomic.h > @@ -4,6 +4,10 @@ > > #include > > +typedef atomic_t atomic_long_t; Given this: typedef struct { int counter; } atomic_t; your definition seems wrong. Why not add atomic_long_t to types.h, adjacent to atomic_t?