From patchwork Wed Jul 31 13:33:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: zhiguojiang X-Patchwork-Id: 13748804 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 380C0C3DA64 for ; Wed, 31 Jul 2024 13:35:13 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C9EBB6B008C; Wed, 31 Jul 2024 09:35:12 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C27A16B0092; Wed, 31 Jul 2024 09:35:12 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A53446B0093; Wed, 31 Jul 2024 09:35:12 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 8159D6B008C for ; Wed, 31 Jul 2024 09:35:12 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 42859C036D for ; Wed, 31 Jul 2024 13:35:12 +0000 (UTC) X-FDA: 82400144064.10.197F426 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2066.outbound.protection.outlook.com [40.107.215.66]) by imf07.hostedemail.com (Postfix) with ESMTP id 36DE440018 for ; Wed, 31 Jul 2024 13:35:08 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=vivo.com header.s=selector2 header.b=qcsdm8tQ; dmarc=pass (policy=quarantine) header.from=vivo.com; arc=pass ("microsoft.com:s=arcselector10001:i=1"); spf=pass (imf07.hostedemail.com: domain of justinjiang@vivo.com designates 40.107.215.66 as permitted sender) smtp.mailfrom=justinjiang@vivo.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1722432868; a=rsa-sha256; cv=pass; b=y9X+pTdKj4uzhM+2LARB6YEu2+bLsgAKcVH8KWdLt6jXDG9rLlWifRf8W+toduzsgQ+Lm+ k9KByFT92bySFreRAoi5hCE4NJqkyQc5QvjqyIjNvltfsdDZvLsoxG5dCTQP4WMNslBf8W qYxnSOY52x6aPVW4m1RYrZnCWA+LD1A= ARC-Authentication-Results: i=2; imf07.hostedemail.com; dkim=pass header.d=vivo.com header.s=selector2 header.b=qcsdm8tQ; dmarc=pass (policy=quarantine) header.from=vivo.com; arc=pass ("microsoft.com:s=arcselector10001:i=1"); spf=pass (imf07.hostedemail.com: domain of justinjiang@vivo.com designates 40.107.215.66 as permitted sender) smtp.mailfrom=justinjiang@vivo.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1722432868; 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-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=/QhpATYNabFfEKScK8u3kghz7HpalaoLiHjaRKPLXJY=; b=YTf6iiUNogW9YVL7O6j+Dlfbb2su8xOAUPMsh+ZdDi2w0qAUC2QMLR4wcCxy/D90TAKK/l Di8J4Z+nnpDNCV9eH6vedAF8mtpRA/1YR8cbEZnqrR9DXzIBvY5Rmv7zEZjrxvdKcFnvYg avLHH7xNplwy+nyxlLi0EQehzxBX5GU= ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=q9aUvEIOnAY2YBqICCvRD6ldR99K0cZRjXbg2k/eP026xtNL4r59cu3iVQNYTCCW//iiENTCm6IZR2z+P5BOu/zw682hvdtyJMGE+xzhlpajUAtAkD/bfNTKhRO13XvoerH+bN72qZr+Dn6DeKeYSTcBuZV0DM1sup06y9H7Yzpdso3syFTZnxTPSnLwv9NTx1R7KVZFwVLWqdcMvFCYkEidPTJJozA0V4D5Qxdr/Rf6+4o8HefCOb2x7rVFYDGyNCZK3NfTE51MudPkgGpUyPkoKkyfe49uO/MpjeAwkGLqx8o4Ngupu5lwLtZ5cKRlkvb1PNhNGjckRSCjDbYYvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/QhpATYNabFfEKScK8u3kghz7HpalaoLiHjaRKPLXJY=; b=cXe0EKPbtH+Vcfh54VnBAFF3zmnAM970f++dBuC6y91eN4GblEWdue/pC0vMeB6JS1A1Wau0j264oPPvpxseAgDnFc1ASBrC0WDObu4d9Iafn/WvBlKePNiBWPnO4MA8I8Q3HAc7z6mT+Sm4YSPhJIlJZ81cetI2wNR5B0wZafDSuqD0UyMULDiGoqP+SONhXgX1Hpk6rD8v+y8RyRK1WwicbSZI+0tKWpsRlCs/IzNoqo+zqeHSw+wcHekqpSxiN7YOs1BPM7oJlsMw8aL57txV+ckGHDVU2CEdvsOCVt7E2/NSEVXq36RU1mtkQtI+C3T4DUQuCr3nQhHXKEQpzQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/QhpATYNabFfEKScK8u3kghz7HpalaoLiHjaRKPLXJY=; b=qcsdm8tQjSqjvuimqVG1a6ww6jPQxl2b6qkvtpG6kzFmO4xU/QHzXJt2AEVezHkj5AbbYvNA+0+seAnkuXPM884mk3iBdlH/BphWbzxqZeETYxYoq+wP5KUY2ehcyIB+n4YnEUEUjuUQK3G2qv6FmIfBmLleWFNLiYa2JkAcRHgAbSObWkS1aS2c8ZyyIn3Px/V+BvECsAyYAXkcBn9v3L5mRuOVmFEcm0ilE75wtXrCNIdhYATl9W7fHVMPdIlBGl55aF3PNhg9A77KyORqKuXCIPklpqkPl7XdBmiI4gpH0blifBcS5iRHgf3Mr7roJOA3/dGp79HkzJeG9elqcA== Received: from JH0PR06MB6849.apcprd06.prod.outlook.com (2603:1096:990:47::12) by TYZPR06MB7334.apcprd06.prod.outlook.com (2603:1096:405:a4::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.27; Wed, 31 Jul 2024 13:33:32 +0000 Received: from JH0PR06MB6849.apcprd06.prod.outlook.com ([fe80::ed24:a6cd:d489:c5ed]) by JH0PR06MB6849.apcprd06.prod.outlook.com ([fe80::ed24:a6cd:d489:c5ed%3]) with mapi id 15.20.7828.016; Wed, 31 Jul 2024 13:33:32 +0000 From: Zhiguo Jiang To: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Will Deacon , "Aneesh Kumar K.V" , Nick Piggin , Peter Zijlstra , Arnd Bergmann , Johannes Weiner , Michal Hocko , Roman Gushchin , Shakeel Butt , Muchun Song , linux-arch@vger.kernel.org, cgroups@vger.kernel.org, Barry Song <21cnbao@gmail.com>, kernel test robot , Zhiguo Jiang Cc: opensource.kernel@vivo.com Subject: [PATCH v2 3/3] mm: s390: fix compilation warning Date: Wed, 31 Jul 2024 21:33:17 +0800 Message-ID: <20240731133318.527-4-justinjiang@vivo.com> X-Mailer: git-send-email 2.41.0.windows.3 In-Reply-To: <20240731133318.527-1-justinjiang@vivo.com> References: <20240731133318.527-1-justinjiang@vivo.com> X-ClientProxiedBy: SI2PR02CA0019.apcprd02.prod.outlook.com (2603:1096:4:195::13) To JH0PR06MB6849.apcprd06.prod.outlook.com (2603:1096:990:47::12) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: JH0PR06MB6849:EE_|TYZPR06MB7334:EE_ X-MS-Office365-Filtering-Correlation-Id: 0bf83302-f817-4095-26a7-08dcb1655ecc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|1800799024|52116014|366016|376014|38350700014|921020; X-Microsoft-Antispam-Message-Info: 6Js3QYn0bUJ9K6TUrONW7Y+h7FGJubTjp0jkB9by/Ru9pohi1e4jIul7Fo7X9SnxuXaNYxlwL8kG6VB20fM3+TtUf1bDu6DUZTYSY/Gj0rsk7R/3fkjzh5yLokqZ9wJFggqXlUeGcEbJyn88/lYxs17zcaK9+jzZPtzpgWS5FYa6VUy5g+XfRBU4lPcSM+7Ima1bAY2PPodzYqJg3lIVM3jrp9Rcwh3qT6bPdrYTFap6zpc8/io7cxHK8SmNuqHuJ78+kFbcoUVbTrFazg4Uk2G7mqIOe+k8C42yb6qsLzG3UBug7rsJrybQJ3i0jKLCMXwuB12EJyhGEFTFi9z1ur9ni3EFLE0tv+NiX6rljHRz6jM4b6hddtleFWv8PXdHXEIR3wszFWRTGBwr+sGKX8nJ2PF6PMK+Xt6FOcM4LbTsz5yS588K7tO0ouIM/tqpIpoXOiWQy/yZMOrB4frg+MJrG0ophFhCvZQOU82/ngAFET81Bvozjs9XjZDOEFOaHeKIYsDcMsN+xDfXUopxWJUTW0fyCIzW8xm21BXGAH1qWR/NRs3426vbYlESCDqlLAej1VmutmZRg8eyoFA1vuu+sn/uMrAPjBYpIagRtp0bgnOpvyoJoY1/wh5bCiB+ZEf4CjQ6SB3aq9ZXnXW6k19PSfGkVCnyXv+wbC6Ga8eW4moeANKtTvLZgah+gbcSjp1L7GatzCntBroK8SUbvnU2WDoviBiPECdnR3h9cNg0meRTJK+pHc/+JuvG0COy7SPGEK7jr+ORisFNy0wSKHisTWta8alztVVlYF6iH9AbyFqTe3O/G91+M5IN+VKes1lB++k9dw/Gcq+6UWDIVNI2zmkcItUu1zHnYllzqV357bt9Cs7K65Xe6MBFGkMCgP2w0s1R+KPgqy+alf/g7z5PagJPrNUW37dHmT1xndO8+hfD7lXxbGXhDL8sF4S94prMb1dS+DBDMSDvZQVt4ABNaoJJkCdqloy/uQyO3lmtIE0ZBoD8iWGHvl10uW1aCtYNmwUITuBTTHTdsY2v/49mZtitOcGhSQNVINnyiurJB4pLzDZxp5hH2NT6gagSlybUBroZxJ9Dk9LBSLDZP9Tqb6OFsFfbuwzgm0vzclFbYvYzUb9+U2WhTmCPpT79w4aXBaIhZE4kQ8dTXvqeCXjluRHw6+sCaGWSS/55TYG0rBILQdvm+VVBWUIdxe9yNB0Vv6CqWds/D0Ct55Znd3vmE43oGxOqPDOqieL+1o8NE+PIEn52C145lIeNtcNqrBCXUgiSqc4J78JlWug+DB5XaZvwzW2TJNwI1Va5bVaXwYANceZHI7Z/ULrS7p11juzfDA20UO2cM/P8IllH2Zf3DSCC0imXL93fBWlg77UUojwzSNYvlxp4M/ZiM9dt X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:JH0PR06MB6849.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(7416014)(1800799024)(52116014)(366016)(376014)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: TCvxXeSuTOtG8AG0kGPUfO6btzM58bpB4T6s/HgJuMGjzJrHhJiVgB+/8Ee/oheVHpZZsgojsH+u9QDg8mC9mvu7hTXIAb3DaXRyVeBmu8fJXX01NpDQkO1NawZaIPQD9ARLDmc3YD5zxq2snSaduttWaf4bYW+ynctgJM75s6kU/HGVWEWbHP408TdUydGMW8hYoEgZ9AfipxmjP0gI/E+PajI7J1spcgUVuDl1OHqpt+smy0iPpnnEcjkHG1bOMXHAvxFZNAtsXmOf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D5+sFxM4CZrhGcOvIeS231e0LricutdDOLYYp62920/8F2ePSPDMfBzeuLrhUiWmffZroOz5DEq2W64e/UwfmNG1he/METPMq89QjxABntpVEetBn39GPw4jFCA7OeMnLsvf3D+pPPUvmWxmB/vIiG6gIzGBCP0AM5l5+j+NWhY6DbPrYmecrPgmFuSHVg2RswwLFD6kCU7YEhfze6eBBccfHHznM5qpuwE6BwYfK9ETP X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0bf83302-f817-4095-26a7-08dcb1655ecc X-MS-Exchange-CrossTenant-AuthSource: JH0PR06MB6849.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jul 2024 13:33:32.1319 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: zW3eL3xKwLuQTnTqwr87pLqbErpYxX+y+LcusrGjx45H1/WLb653Fd7N8pmxG1KIKXfMyiMn6JW90hji2+Q/SQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR06MB7334 X-Rspamd-Queue-Id: 36DE440018 X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: 1k5ss4y1kisw4awxnqdmaw7r8h13tt6m X-HE-Tag: 1722432908-310084 X-HE-Meta: U2FsdGVkX18qA+71iJqdw3YDN/D4ixH4DX5bTVNxyM5ltTrVQj0gcQO9VETp8A99bwMe4PwRF/3l4Qj+S8t6c+qP9hlk9ufpelYez/eZ6dXv08WPWrW6ns0CdeW82Vf340LybgppzI22t7gDXqZh4l++W4e7sg6fm1s0oYR57dW3CjTR1ZKHqb+UCgDSw49MxVtRiFOalP2KpTeimwOzAKFCSeOydRhMXHXxMiCKWcU3IkuW7gLuOByjkMFtNm6LJDCEaaZmp8u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sA== 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: List-Subscribe: List-Unsubscribe: Define static inline bool __tlb_remove_page_size() to fix arch s390 config compilation Warning. Signed-off-by: Zhiguo Jiang --- Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202407311703.8q8sDQ2p-lkp@intel.com/ Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202407311947.VPJNRqad-lkp@intel.com/ arch/s390/include/asm/tlb.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/s390/include/asm/tlb.h b/arch/s390/include/asm/tlb.h index e95b2c8081eb..3f681f63390f --- a/arch/s390/include/asm/tlb.h +++ b/arch/s390/include/asm/tlb.h @@ -28,6 +28,8 @@ static inline bool __tlb_remove_page_size(struct mmu_gather *tlb, struct page *page, bool delay_rmap, int page_size); static inline bool __tlb_remove_folio_pages(struct mmu_gather *tlb, struct page *page, unsigned int nr_pages, bool delay_rmap); +static inline bool __tlb_remove_swap_entries(struct mmu_gather *tlb, + swp_entry_t entry, int nr); #define tlb_flush tlb_flush #define pte_free_tlb pte_free_tlb @@ -69,6 +71,12 @@ static inline bool __tlb_remove_folio_pages(struct mmu_gather *tlb, return false; } +static inline bool __tlb_remove_swap_entries(struct mmu_gather *tlb, + swp_entry_t entry, int nr) +{ + return false; +} + static inline void tlb_flush(struct mmu_gather *tlb) { __tlb_flush_mm_lazy(tlb->mm);