From patchwork Mon Jul 17 11:32:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kemeng Shi X-Patchwork-Id: 13315120 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 38D6CEB64DD for ; Mon, 17 Jul 2023 03:32:01 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6B41E6B0075; Sun, 16 Jul 2023 23:32:00 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6945A6B0078; Sun, 16 Jul 2023 23:32:00 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 50D858D0001; Sun, 16 Jul 2023 23:32:00 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 3FDAC6B0072 for ; Sun, 16 Jul 2023 23:32:00 -0400 (EDT) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 0BF90C0294 for ; Mon, 17 Jul 2023 03:32:00 +0000 (UTC) X-FDA: 81019680000.02.D50A0D9 Received: from dggsgout12.his.huawei.com (unknown [45.249.212.56]) by imf05.hostedemail.com (Postfix) with ESMTP id 4CDD2100003 for ; Mon, 17 Jul 2023 03:31:55 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=none; dmarc=none; spf=none (imf05.hostedemail.com: domain of shikemeng@huaweicloud.com has no SPF policy when checking 45.249.212.56) smtp.mailfrom=shikemeng@huaweicloud.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1689564717; a=rsa-sha256; cv=none; b=KjMgpeX3Nmakl+7XFl7ETVz+88xeX8UyLtBGh+QG+wtodh7l2b6nOo0jzY41L5Ey4YLof3 5WDHOFk7fF7JRwYAh5gb/hpkwr3d3LL6lorwIiPTfpGez3GDDdKoh8OJSKv3Jm7jCMO8AY XxxakEcJUJs26Iug+4zj198zpHdSWvI= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=none; dmarc=none; spf=none (imf05.hostedemail.com: domain of shikemeng@huaweicloud.com has no SPF policy when checking 45.249.212.56) smtp.mailfrom=shikemeng@huaweicloud.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1689564717; 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:in-reply-to:references:references; bh=DFpocmIcbB1sxhhOS8kO4VmzZq+RcBPmbbQ49K4ws5M=; b=PGiLZEeEhWFoyUn6yocOqHsWl761uJGi0/znlplUuGCggNQ1OxxncAT5j9UFP8+Pr7Rwux gIEkHho4zW91pofiHed+FGdDkNy9uRwaEdW4CPlQHdUUTDT3zN1HCS5QuITukNcmjg2Pi5 tpI14jQX4IJc+TEWJ2Fy+qz3M1LXLag= Received: from mail02.huawei.com (unknown [172.30.67.143]) by dggsgout12.his.huawei.com (SkyGuard) with ESMTP id 4R47102YyFz4f3lKf for ; Mon, 17 Jul 2023 11:31:48 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.124.27]) by APP2 (Coremail) with SMTP id Syh0CgC3q+kltrRktWVLOA--.64698S3; Mon, 17 Jul 2023 11:31:50 +0800 (CST) From: Kemeng Shi To: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: shikemeng@huaweicloud.com Subject: [PATCH 1/3] mm/page_poison: remove unused page_ext.h from page_poison Date: Mon, 17 Jul 2023 19:32:25 +0800 Message-Id: <20230717113227.1897173-2-shikemeng@huaweicloud.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20230717113227.1897173-1-shikemeng@huaweicloud.com> References: <20230717113227.1897173-1-shikemeng@huaweicloud.com> MIME-Version: 1.0 X-CM-TRANSID: Syh0CgC3q+kltrRktWVLOA--.64698S3 X-Coremail-Antispam: 1UD129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUYi7AC8VAFwI0_Gr0_Xr1l1xkIjI8I6I8E 6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l87I20VAvwVAaII0Ic2I_JF v_Gryl82xGYIkIc2x26280x7IE14v26r18M28IrcIa0xkI8VCY1x0267AKxVWUXVWUCwA2 ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26ryj6F 1UM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26F4j6r4UJwA2z4x0Y4vEx4A2jsIE14v26rxl 6s0DM28EF7xvwVC2z280aVCY1x0267AKxVW0oVCq3wAS0I0E0xvYzxvE52x082IY62kv04 87Mc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUJVWUGwAv7VC2z280 aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JM4x0x7Aq67 IIx4CEVc8vx2IErcIFxwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC2 0s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI 0_JF0_Jw1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv2 0xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2js IE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZF pf9x0pRPrc3UUUUU= X-CM-SenderInfo: 5vklyvpphqwq5kxd4v5lfo033gof0z/ X-CFilter-Loop: Reflected X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 4CDD2100003 X-Stat-Signature: 36fdgn38rysduc1qe5k9kof7iwmkqqu7 X-Rspam-User: X-HE-Tag: 1689564715-451291 X-HE-Meta: U2FsdGVkX18/6a2fN1UnzjK7a/VV0ls8ZRzTQ/LLX5xa5UFxcc9nxC+RUcPIm0AwXf2EGiIBOEGoZN543A9g0fM6F1o9FR8ak/H0PrZWQnHbMoOMAHkJNvebNeRov59tQww7lwCJzOZtBcJa/Zxe0oTgRLhO73DbzJhG0ZcfSDAlx4yIWQ2pqPrbVsO0I9SR0CGTQO3gMby10vKD1NqSTyC5+FwtVYmiUhLwMPG+hjl1V9h4S2ZNCaImG10pg9Jubzddh5pXALajKg+AXmJVerWffceeoZe6+y7wLMKq+GqfMH0uXmXc+CjgmuQTzl3AYr6sdL/+wj2lhyN7SNTfGonBF6XuUn81h1pLGZQsLc7NIAthIcjQY1lBs2ulCXSdye12ypY1KaX3IKc32cCRl/I6K8hZOU/xF/7bgDUNRN1jM6xU+9vS+OcEOmKuL/H5DxFIbSZN0mLHei1rT0hpmH7Gr2VAVEwL5Ru90GTngLxMpylf0KY8TBSH1vEKn/XcOEVN2FiMxQ21/aslHCq4u2OeiFINabcISfPqUizNKHqE4ckySDicXKic1HMhNRLba+4HmfZIig+/yPsJVhgqcdorTzKhSr3SO/m+orbED632ERSdXsujYOZUSb/0Ava7T3iZWmd9EPZUnPUwSY+Suj+hcBWhWVU4hp7iHtD8u8OjZ0mH48HRuioy/2FUjdWnIZe2KVpLNitp8wQ8CDLCSSrLX0vSaMtEP1YQiFJHBYBhU/3RunwugJAqY1aRWyM0Dt6fFeCpvsoTwiyTuC26qIDZorJk+3LvgF9EBpWLp/P3vO8WSTLfJq+e69ziNQ91v5/tmwE/5bT+bv6JUwvXoIw4i+b7Pk5A3X0mbeqwEgc9HTvu40ZBkf0D7SSW7onsTaCH2sgk/w3+BDdCsNbvJJ37Ju8ej6ER0oNXGnV1I4vQ1zoFxXZRb9+Lb97lXvfSqE6UyT5MwesHwU9jj59 5p7ixY9Z QfJXPDmDQ4sx5Wyaxpe1+tHUSNz1KZPU5n3fwxp0gaQgr8u1S9XPZvnYtEA60/jmW9nsajJsZ1TM1WEiZBE3+yprAycJ+pYEqRRUbJ98T5hybw8xsBQ5Gwi89kilw3WMnyEZuJlxA3I1r3fC2dISZu97GDswrCqGqpwjDNaUAA3WKFzHi9vMztr2a18XnxltIqvLrU8iMCjBH99cbPp3r9PUYenIOl+/TuaEJT2fiJIkflPREFqkI7xZwVhHIa3nd3/pmmxqPEvVuLwKYyTxHHc+h2UhsQ68wBTDSWY/Alnldq4bzDbdkIKHEVYfi7f+WZA7IBPVbRnja5k4+8Ive4guh4cT+Xw8AdGHq X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: No page_ext function or structure is used in page_poison. Just remove page_ext header from page_poison. Signed-off-by: Kemeng Shi --- mm/page_poison.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mm/page_poison.c b/mm/page_poison.c index 98438985e1ed..b4f456437b7e 100644 --- a/mm/page_poison.c +++ b/mm/page_poison.c @@ -4,7 +4,6 @@ #include #include #include -#include #include #include #include From patchwork Mon Jul 17 11:32:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kemeng Shi X-Patchwork-Id: 13315119 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 633CBC001B0 for ; Mon, 17 Jul 2023 03:32:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 95C2C6B0072; Sun, 16 Jul 2023 23:32:00 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 846DF8D0001; Sun, 16 Jul 2023 23:32:00 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 582D76B0072; Sun, 16 Jul 2023 23:32:00 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 47B196B0074 for ; Sun, 16 Jul 2023 23:32:00 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 07FEA1C8881 for ; Mon, 17 Jul 2023 03:32:00 +0000 (UTC) X-FDA: 81019680000.05.13C1A14 Received: from dggsgout12.his.huawei.com (unknown [45.249.212.56]) by imf11.hostedemail.com (Postfix) with ESMTP id AB75A40007 for ; Mon, 17 Jul 2023 03:31:56 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=none; dmarc=none; spf=none (imf11.hostedemail.com: domain of shikemeng@huaweicloud.com has no SPF policy when checking 45.249.212.56) smtp.mailfrom=shikemeng@huaweicloud.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1689564717; 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:in-reply-to:references:references; bh=A7XJ026uLonrgoWReTCK7uYY0HPtkXm+jleSyJogPoM=; b=pj+TF2ldoAcWwvdNp4W2of9PR65y0YR/WukoELw/J/LeoIuZS7pRudvhPanilXSAT2cN+m D0YREMqVaqiRRSz659FUZLrGS7UHf9FZPNywxVW2I9ujeghLMCM42Vzq/m5d64ntYaqylw fnl/6ntuNaJbLV4zXRX1ZcuqMN25Ayk= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=none; dmarc=none; spf=none (imf11.hostedemail.com: domain of shikemeng@huaweicloud.com has no SPF policy when checking 45.249.212.56) smtp.mailfrom=shikemeng@huaweicloud.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1689564717; a=rsa-sha256; cv=none; b=IwwPUQxyDathi1jFfqmwnAIQ7jU80DbWF3ergTGoZSoU9h27HKP2NnfiJYJaXcNQXXpxbg gwN7lEbvVHmjcFkeV1VJheWw/FHrE4MEw0BgDvtgamhjfNJ12zuIfI/RH54lagl5S4UocO Y71+3/YJSndwaXRc0P2HWQaDQnnAs/U= Received: from mail02.huawei.com (unknown [172.30.67.143]) by dggsgout12.his.huawei.com (SkyGuard) with ESMTP id 4R47104X8Lz4f3lKp for ; Mon, 17 Jul 2023 11:31:48 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.124.27]) by APP2 (Coremail) with SMTP id Syh0CgC3q+kltrRktWVLOA--.64698S4; Mon, 17 Jul 2023 11:31:51 +0800 (CST) From: Kemeng Shi To: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: shikemeng@huaweicloud.com Subject: [PATCH 2/3] mm/vmstat: remove unused page_ext.h from vmstat Date: Mon, 17 Jul 2023 19:32:26 +0800 Message-Id: <20230717113227.1897173-3-shikemeng@huaweicloud.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20230717113227.1897173-1-shikemeng@huaweicloud.com> References: <20230717113227.1897173-1-shikemeng@huaweicloud.com> MIME-Version: 1.0 X-CM-TRANSID: Syh0CgC3q+kltrRktWVLOA--.64698S4 X-Coremail-Antispam: 1UD129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUYi7AC8VAFwI0_Gr0_Xr1l1xkIjI8I6I8E 6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l87I20VAvwVAaII0Ic2I_JF v_Gryl82xGYIkIc2x26280x7IE14v26r15M28IrcIa0xkI8VCY1x0267AKxVWUCVW8JwA2 ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26ryj6F 1UM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26F4j6r4UJwA2z4x0Y4vEx4A2jsIE14v26rxl 6s0DM28EF7xvwVC2z280aVCY1x0267AKxVW0oVCq3wAS0I0E0xvYzxvE52x082IY62kv04 87Mc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUJVWUGwAv7VC2z280 aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JM4x0x7Aq67 IIx4CEVc8vx2IErcIFxwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC2 0s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI 0_JF0_Jw1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv2 0xvEc7CjxVAFwI0_Gr0_Cr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2js IE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZF pf9x0pRsXo7UUUUU= X-CM-SenderInfo: 5vklyvpphqwq5kxd4v5lfo033gof0z/ X-CFilter-Loop: Reflected X-Rspamd-Queue-Id: AB75A40007 X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: tnziapncdkq3hdw3trtwugmtrs1u9s71 X-HE-Tag: 1689564716-907058 X-HE-Meta: U2FsdGVkX18QvnfjHIQ7CAZ8og/J6bSrCyu4I48ahSFAa+5Xyy8pFCi0PyRcTRXY05sNKX6gj5YOO0QZ1F2ehJ8oqnieRw1tNkraRodWlrigMiORHHMWCoHdmZZccDi+LNIZdCy+XUq6Jg5HhRtUSNoDZtUebKX3g9p4MLXEhemdt2+KQd8JJCU0XbGfMxelExrXsJcK4WEEevOzCaNTufEzQCN50OcFaPhUPF5OFWsilSUiJHEGORQBzWYOm7UWmzGkGCK+NRYZwwkGeuGn7JFVD+d7nbgcj2s3TlcXwJ9eej6odGnAFHiitAH953EFuFenklZAR56gbwFmFRgQtsoNTjSC3mIwb/Jtn6udhgSO+BxmS8YRskSUy0/6dpRDwPn0GoEZM6bih2Etr2apC8lSqqidfYhma5WFTYO1B1fQkkzDhEqkrrcWPs8MEG/H+gwaiURkfunHLilS9d6air3XG7hi6Ssi9b/24HjnspR2XnHHZPMSmcWudAYQIZFTqhIs6ktr/Wr04NkDF4zwBL23f/Sv6fPQ4El21qDm+oSV9/l1TcMbCl9jPDSgKjKlywijHuBff4PxUR9UrXDXxNa9d6ERKg5WxXuQfhyxiUo5fGzGozsL4+jZkJ4CFHi0wnXZogI8Fff/fH6hGt+I5bNxEIAomNwQUkgJXARsOdGA3FZwZsYrX3qZCpzNWD+6OTNdCGnv8fdG60uvJB7uGd/prP0KDPB5tVckXDFpNWjNbsuR+Bi9hII8LQD3X9u4TwwyAITgefv01S4DnBXypH/9II9gTwEGP5LgGBwAXj5e+AgmFgGRI3Bsqi7Iq1HawAh4vpKlWdicqyNRgmX4Z2uUNIo1v1Qt63yGrfkAASq042OObqY73hlgNC6huQEPa4A+Rg4EwVhA0p18T52iPlU+eMLQUu74GJ0R6e2mWBemzosuOGO4RNv85Pe4ysp4+stdiujAoVpuaZAP06O sMg2xVae 4qrJTU/mDr0B2bLyibfaYAdJF+k7smjVK4kRMcue6rC0fvaw9/18X2e0xKnNWYg8IO/T6M2syBPJ2eUa74d9jHBITv017jXDKySBG95xSM1r+BiIzw/d8pp3NhTRAOQO2VXSO0k/+m6R2WEdlw3S4yYCviF29p554DH2k7VBsvlDwSZTJhM+lL/FxF7MYpv++DRK+PRXfvK5DBUGnhroM7QQtBWJpBiEqU7BSlw/+PK2KoczcLy36UZ6Ws40EjA6mIfoviHObApuvAGZ77fYKggLCtxqbk1ld7x/QbW/7CphWRmN76hcuagffqLi6SP5e6JLtdH51AAndtHCrU4ms/UPJssyq1iiXRDxC X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: No page_ext function or structure is used in vmstat. Just remove page_ext header from vmstat. Signed-off-by: Kemeng Shi --- mm/vmstat.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mm/vmstat.c b/mm/vmstat.c index b731d57996c5..00e81e99c6ee 100644 --- a/mm/vmstat.c +++ b/mm/vmstat.c @@ -26,7 +26,6 @@ #include #include #include -#include #include #include From patchwork Mon Jul 17 11:32:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kemeng Shi X-Patchwork-Id: 13315121 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 C00A9C001DF for ; Mon, 17 Jul 2023 03:32:03 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BD4D86B0074; Sun, 16 Jul 2023 23:32:00 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A6D246B0078; Sun, 16 Jul 2023 23:32:00 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8B64B6B007B; Sun, 16 Jul 2023 23:32:00 -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 604096B0074 for ; Sun, 16 Jul 2023 23:32:00 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 29016802BB for ; Mon, 17 Jul 2023 03:32:00 +0000 (UTC) X-FDA: 81019680000.03.64AB8BF Received: from dggsgout12.his.huawei.com (unknown [45.249.212.56]) by imf29.hostedemail.com (Postfix) with ESMTP id AAD52120007 for ; Mon, 17 Jul 2023 03:31:56 +0000 (UTC) Authentication-Results: imf29.hostedemail.com; dkim=none; spf=none (imf29.hostedemail.com: domain of shikemeng@huaweicloud.com has no SPF policy when checking 45.249.212.56) smtp.mailfrom=shikemeng@huaweicloud.com; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1689564717; 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:in-reply-to:references:references; bh=Ipl0mDaEJ8k8nuvh0E0CSk5t6csb/82HTekRjyd7ZSU=; b=xLp3pqiadvlnkk+d5rwTSmtUpnQUM/9jsmBbKr/5Nx1HObg0ume7nxN0LuIs9GTXOVEQQd PSm3OKU6ZmYDHe83higbcPIvLMTl2eScrt5Bo/zNpJPL1CFq8uDW/ArsGGizIQEZ7xB0NN caZhnc2MpZnrBL/AbfbIJOD1x27qRD4= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1689564717; a=rsa-sha256; cv=none; b=xtvABI813fTzybAEJTmoMp6ktcGf5cbVsAPHqth0LMeinHdTx/Su6/txD04vOjeFOmJaCe 69DepBxlyB5JXx9E6KJbfYRD5X9GpecjCFnbHR33iXWREdGpNH7p8PgNZVDCXv2PrBlnwv f3DXHJnV5ew+NqyHEabzXB7nl14sPEg= ARC-Authentication-Results: i=1; imf29.hostedemail.com; dkim=none; spf=none (imf29.hostedemail.com: domain of shikemeng@huaweicloud.com has no SPF policy when checking 45.249.212.56) smtp.mailfrom=shikemeng@huaweicloud.com; dmarc=none Received: from mail02.huawei.com (unknown [172.30.67.143]) by dggsgout12.his.huawei.com (SkyGuard) with ESMTP id 4R47106cNXz4f3lJv for ; Mon, 17 Jul 2023 11:31:48 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.124.27]) by APP2 (Coremail) with SMTP id Syh0CgC3q+kltrRktWVLOA--.64698S5; Mon, 17 Jul 2023 11:31:51 +0800 (CST) From: Kemeng Shi To: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: shikemeng@huaweicloud.com Subject: [PATCH 3/3] mm/page_ext: move page_ext_operations definition under CONFIG_PAGE_EXTENSION Date: Mon, 17 Jul 2023 19:32:27 +0800 Message-Id: <20230717113227.1897173-4-shikemeng@huaweicloud.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20230717113227.1897173-1-shikemeng@huaweicloud.com> References: <20230717113227.1897173-1-shikemeng@huaweicloud.com> MIME-Version: 1.0 X-CM-TRANSID: Syh0CgC3q+kltrRktWVLOA--.64698S5 X-Coremail-Antispam: 1UD129KBjvdXoW7Gr1xZF1kXr13CF18XF1DJrb_yoWftwb_C3 yxtr4xur17tFZagw45Z3Z7X3s5K3y8GF4Uur95tryava4qyrs8Aan7J3sxXw1F9r1Sgr95 Can7W3sIyr12vjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbqkYFVCjjxCrM7AC8VAFwI0_Xr0_Wr1l1xkIjI8I6I8E6xAIw20E Y4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l87I20VAvwVAaII0Ic2I_JFv_Gryl82 xGYIkIc2x26280x7IE14v26r1rM28IrcIa0xkI8VCY1x0267AKxVW8JVW5JwA2ocxC64kI II0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26ryj6F1UM28EF7 xvwVC0I7IYx2IY6xkF7I0E14v26F4j6r4UJwA2z4x0Y4vEx4A2jsIE14v26rxl6s0DM28E F7xvwVC2z280aVCY1x0267AKxVW0oVCq3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F4 0EFcxC0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUJVWUGwAv7VC2z280aVAFwI0_ Jr0_Gr1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JM4x0x7Aq67IIx4CEVc 8vx2IErcIFxwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02 F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw 1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7Cj xVAFwI0_Gr0_Cr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r 1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x0pim ZXUUUUUU= X-CM-SenderInfo: 5vklyvpphqwq5kxd4v5lfo033gof0z/ X-CFilter-Loop: Reflected X-Rspamd-Queue-Id: AAD52120007 X-Rspam-User: X-Stat-Signature: pngzcf1kd1u9nczw16ca6mc44xy1z5yx X-Rspamd-Server: rspam03 X-HE-Tag: 1689564716-930788 X-HE-Meta: U2FsdGVkX19nruJnBfNKTz5+Kunf50qyEZLjwuQhHkDylhY5hpmgHHbBQBg7Ru2qiZTtpx8W9JRoAIZ2Q/FdQjcgZ5uhPBdYK/wnLp78ldcfz8tmfKMDjYYchTMcUodc69LAGt6heaijfpxDzrjENXphvMWKR05lS7PCxOGjmkxGEK+rjMW7TIfPWqI+D2kOBwbkAGnL7W2NFJRJrY0x2ZLKwyGPOSfiE1Kng69zXzDV48s6uzViMaE2KPLWXPrqqJ2PbZCZyn8b/kSSbFmR4VRVrUIeIy7ZtqtEdJ8pas1Uh+tVmyvR2w+QHd9hDozDlc0ay6biY7ZzbwQu73tQ/ixyYGG+PTKP/Q2UjD8bMlvV7ZYTVFu0btBGFDULMTr0c58tP070Jt5UT2eV2JIGOepCyTdaF5uN9OzKz09NYIH2WruErgZ9BxqjnRVaLFYtsX3JnQ9cB1mewcu+LdWPR+BGZYGED9FNmxEBnPPedV+qallYVyhvnzPeRqQsPQdG68eFwqoVeU1xZ762VFyCf7xRofPjd12CV6COXKxAipzioQU4ZZnJJPBsexRu/yud2aMHMOTuKkT287+WrxZdA2IyZXB0rA7NbScpnxMSXni2EO+FJNVf5FcVBKB8cZDSmcNBXjyaNGNT9GSYZrydUtsjvMa/ziZLuQclBzxnyg0pu6r+3NzbfSk4PXRJW7xzJGNLbAISBK0xmbNLfjyjGIM5njHJ+gh6aRa7CzWL6z7rUBvHVLN9sIWtCXImxNsHiXTRmgJ5+MekQEXqVs6QJVZWQ40QPN/oDiPPcoVd13wCyB7D/Wm+32Ct90U99tHb/dRVWCsVDPSP5ivzEVMmsSQtrsEgGuqQtuJvxzHSrsNb85tpQcuC0rxVrYLrnUnO63N3A/+BlP1zHbZzsCE5AWMc5DDsuaZeXNXIQzcEzBcd/lPkkRES5o+91R9mlAvGkepJXbRfteIp6RVq6Hr csu+J12/ qYbIHq8MVsPh5gDY3hZ0ozak7QpIIYlIVwV+TY6vHYVrjhBPDH35c3h/NGmvXlc/IZcuTC0/15RXnexFtyxPhluiXEgbRErjywvpNJkI50LpsfahccrEWht1IhDT8P/yEbWKqGkt8kRramPLGHcWwek9GzUZFKfl6AhkhCZjh0FCtuJIO4O4qBgI9J78PfPDfih0osBw71NXJXfHgLoAHc9251owiHD4CNAHfDyeHviX19K1jDnTmhIpMHiRvCvOMzY/hzGRWZ1N9y1NaS/MFLEZSRGUVZSkF4eXSs11rP8TwvbIFO9sPRdlYYM1cnB7ZMAZW X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: page_ext_operations should only be defined when CONFIG_PAGE_EXTENSION is enabled. Besides, this may detect missing rely on CONFIG_PAGE_EXTENSION from future Page Extension client at compile time. Signed-off-by: Kemeng Shi --- include/linux/page_ext.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/linux/page_ext.h b/include/linux/page_ext.h index 67314f648aeb..8dd21d87e0da 100644 --- a/include/linux/page_ext.h +++ b/include/linux/page_ext.h @@ -8,6 +8,7 @@ struct pglist_data; +#ifdef CONFIG_PAGE_EXTENSION /** * struct page_ext_operations - per page_ext client operations * @offset: Offset to the client's data within page_ext. Offset is returned to @@ -29,8 +30,6 @@ struct page_ext_operations { bool need_shared_flags; }; -#ifdef CONFIG_PAGE_EXTENSION - /* * The page_ext_flags users must set need_shared_flags to true. */