Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp3884108rwj; Tue, 20 Dec 2022 03:19:53 -0800 (PST) X-Google-Smtp-Source: AA0mqf4iguwWG3+1sExffdjM4mxUPfoOiBD81jQxBWagBwYW1WifM3jgK4vSmHpAXOiBTXr2avxO X-Received: by 2002:aa7:93ae:0:b0:576:cf99:6a97 with SMTP id x14-20020aa793ae000000b00576cf996a97mr46081236pff.8.1671535193175; Tue, 20 Dec 2022 03:19:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671535193; cv=none; d=google.com; s=arc-20160816; b=eJ+HrRWGsx/ySQI/Yaajk6yIZFeYk+rBuJ/7J0FDAnSAb6rv4PdUjfnyBVG62+AVKQ xxvu03Upfm3usoRyuvznA5GtnqjzomY/7DWCIksop5YRwIqP5W6fhXM05HlmSK00MsV9 MIlVReebEFQg1coWCvU4jUHG86C1+7Z8PJSOjgdGZxatomAEb0KQDTek4hZl7mPTlCdV lTKTc0f1Mn9UgDULSrVjpjK4ML5+aDSJEWpBURLel2yIqasLa+fV5+VkpXY1Y0NIJt44 jh+UIwwA+6J1/WEygIK9Z8JAhA9xSIV1zOmQcLDh0uY+bK79qyPgrcIi5KLRKcEy3qH0 4P7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=lytDD1M/lhnCDDDFVrV/A9PNKgzswbBhCxL2CpCOKvs=; b=SVJjdoU6iVlKp7w+599f46+ScDZR6GCx5IFVWdSczFeWoA1Rj/MmjnMQWy+70AePpm wZuVzaNKUKHC1HCWmAD+rJmmlAjH3oNF8pRVFDjFiNKUwjLErr2E46Y2qf76wdq7x57M BlZ7Gf+pVF/jPUFh3KzbBkt/nnRmi9Q6CPvm2/HMmv/fJl7MaYtUkXd8549DMbCx8WUk YqlKhV63/CuJ6L94oswlTl70YoU4o2hsMUxEKH10RNswB/GJ6+ffC6A2NBWiCvUiYuil 6jL1iQStI3gm/utTjIANoEiD4kStG5HlvNiUumpuvJgGCNzY9ze7iBAnooGv3tv5omoD aupQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="CGK/si3Q"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y18-20020aa78052000000b0056343812738si12471015pfm.304.2022.12.20.03.19.43; Tue, 20 Dec 2022 03:19:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="CGK/si3Q"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232948AbiLTK7J (ORCPT + 70 others); Tue, 20 Dec 2022 05:59:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232288AbiLTK7H (ORCPT ); Tue, 20 Dec 2022 05:59:07 -0500 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3349D92 for ; Tue, 20 Dec 2022 02:59:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1671533946; x=1703069946; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=NEelLQDmgnv5MCyyCw3Z0H5qP7W6fG9yaOAKTHeKJ3E=; b=CGK/si3Qf5K9peBthVmJkOZ3eJ8fdHCF3IyZvx85m5NR9KQHStOTtCOU qXoKhR0FfY3zIgUJuNoL5JHU0qiibz/vJpF4A7v1a1u3Xkr/z7KhEjsIH zb/15AWTUNQ5S5FCSY9YQmyPssz4+jqPwqfgGxlbXOyobOLuRYJ92w1a2 Yxx+R4hCLX6ZlzJb3bTVYQWTO7tyOB0nZZCf/5u4utTjiOVmvu7/NswvW uAw0Dfw6FlmESyvt3bQCEhwFjQvYQKgOhhoIJULuRr5myMVStGWmjCMt4 HjzymDz4UHoEyzvQYAatqzWBdrFGqVWzOcQdk1huA2f3tjtDvkjBOw6Ax Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10566"; a="383931988" X-IronPort-AV: E=Sophos;i="5.96,259,1665471600"; d="scan'208";a="383931988" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Dec 2022 02:59:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10566"; a="653059539" X-IronPort-AV: E=Sophos;i="5.96,259,1665471600"; d="scan'208";a="653059539" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga007.fm.intel.com with ESMTP; 20 Dec 2022 02:58:56 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1p7aKj-00CpiB-2v; Tue, 20 Dec 2022 12:58:53 +0200 Date: Tue, 20 Dec 2022 12:58:53 +0200 From: Andy Shevchenko To: Randy Dunlap Cc: Hyeonggon Yoo <42.hyeyoo@gmail.com>, Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , Vlastimil Babka , Roman Gushchin , HORIGUCHI =?utf-8?B?TkFPWUEo5aCA5Y+jIOebtOS5nyk=?= , Joe Perches , Petr Mladek , Matthew WilCox , David Hildenbrand , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [RFC v3 3/4] mm, printk: introduce new format %pGt for page_type Message-ID: References: <20221218101901.373450-1-42.hyeyoo@gmail.com> <20221218101901.373450-4-42.hyeyoo@gmail.com> <82feabee-0446-b913-adbb-0e96ecb10c94@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <82feabee-0446-b913-adbb-0e96ecb10c94@infradead.org> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 19, 2022 at 11:35:38AM -0800, Randy Dunlap wrote: > On 12/19/22 01:44, Andy Shevchenko wrote: > > On Sun, Dec 18, 2022 at 07:19:00PM +0900, Hyeonggon Yoo wrote: ... > > #define DEF_PAGETYPE_NAME(_name) { PG_##_name, __stringify(_name) } > > ... > > #undef DEF_PAGETYPE_MASK > > > > In this case it decreases the chances of typo in the strings and flags. > > I'd say Yes. (and #undef DEF_PAGETYPE_NAME methinks; or change both to _MASK) Ah, it's me who used two different names for the same macro :-) -- With Best Regards, Andy Shevchenko