From patchwork Fri Nov 1 20:16:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dave Kleikamp X-Patchwork-Id: 13859738 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 DD999E6F086 for ; Fri, 1 Nov 2024 20:16:40 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7B53D6B009B; Fri, 1 Nov 2024 16:16:40 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 76FA06B009C; Fri, 1 Nov 2024 16:16:40 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5B5D96B009D; Fri, 1 Nov 2024 16:16:40 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 3C2AC6B009B for ; Fri, 1 Nov 2024 16:16:40 -0400 (EDT) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id B7466140E44 for ; Fri, 1 Nov 2024 20:16:39 +0000 (UTC) X-FDA: 82738632690.01.140C188 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf03.hostedemail.com (Postfix) with ESMTP id 23A642002F for ; Fri, 1 Nov 2024 20:16:22 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b="FB8iuG/Y"; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=vxMbyIz5; spf=pass (imf03.hostedemail.com: domain of dave.kleikamp@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=dave.kleikamp@oracle.com; dmarc=pass (policy=reject) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector10001:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1730492017; 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=WDolfkZiwLAd+5hUIkncw5f9xUBKqqgBuqZw0vmMuvw=; b=Id+D9lxC4js8Ke+OnyvWgfiwZtxr5YqSU1cwEkKghdzCPPm7lOMn/r3wj/2svvyEqOd4tM SXBT00YOXhX0BuZrvmgilHP0Kq4yWnmEId44YJyn75UWC7S+dRYhJIRVE9AIr2271CG/N0 54bi6/nSWLLzVaOO0fAH4yjvUsPcTIY= ARC-Authentication-Results: i=2; imf03.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b="FB8iuG/Y"; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=vxMbyIz5; spf=pass (imf03.hostedemail.com: domain of dave.kleikamp@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=dave.kleikamp@oracle.com; dmarc=pass (policy=reject) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector10001:i=1") ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1730492017; a=rsa-sha256; cv=pass; b=s7mOwzZzl/ZJGx1TuUd8rqgxoSUxKhd7Br4dtvGPSG35KVfkZX/JFLmkIERgSVYlb0zJYm XxnQX8e6u6JMG6vKvPj4ZEw+fjtHsBVYIs0cwAAR/wgVSUXUv1X7+Pve9SRE5qAgHZZX3v ko7BVWUTDp8SLHSJTr3sgqwwGsqXj3o= Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4A1GBlOE013029; Fri, 1 Nov 2024 20:16:33 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= corp-2023-11-20; bh=WDolfkZiwLAd+5hUIkncw5f9xUBKqqgBuqZw0vmMuvw=; b= FB8iuG/YDMiACxqASqLHSFlT+w7WMa+hnYfrOPIpagjLfwHTMCIftryUYm3s9ntW s1eroJS7GqpSQkyFPJox6+78sKiQTCp8IXE2hTeQSuqZmnsCTrwUiCh6kIZpY7Zt aadiTwAPUZGJmMotQ8v1wm2KbgoItimygeC6sNcTkqUvbFOhqmqKXodgD56i2Q/Y MnZEpGmrMq+kwQk4Uy6iYSXdj+TZhJgh+ekOK4/PQ71BfKvwcO8VApnHg9MB2PHD FOj8GOrWd5f8ga3sdYHzqCxQiRyoShFtT3CN5dSDODqASUIO4ap2wo1rOKxcSxhz B5wETtO1rXLsRB45YiUFMA== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 42grdqmwpy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 01 Nov 2024 20:16:32 +0000 (GMT) Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 4A1K7PAL008486; Fri, 1 Nov 2024 20:16:27 GMT Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2043.outbound.protection.outlook.com [104.47.55.43]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 42hnedwab2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 01 Nov 2024 20:16:26 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=x6tlRO9UHnR5i7itppr3iRCZXKAzujcrUpfN4CIEXaa/Ufs+yY9TGSmjTaId5INCsLO+DJlRSoxl54OQa/upmuKSklPnaCtGA+MBXkw7STFneqMi+9onp2fnp5PQHd7/tgNwJqOuzdTHbGq9DzrWUTocWkD9ybWOt+IV5WvyRFjqZzmGrscsqFMDDkC8wmZ2ezqpr45Mx1cXGAjfx3o9bWWwL9laTeL5cPmRgiAVrTfUP+oD51Zc//EqJvSIjK1kbYISDm27Ohg5sHwbFeTV27EZWAgqh7m0kDVwJZXPldQcw9CfLsBwij3m3gBrW8NJJM6td/S5ZrRKzb3uHEjh0g== 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=WDolfkZiwLAd+5hUIkncw5f9xUBKqqgBuqZw0vmMuvw=; b=RGvblq6rWyB+I4uhPQXM61QzrLn6oZsLBT4y067iW4xWp6P1GznP2gdrt7h0MIOSI8zk+jNRXm4FJgY4pQzXkHZsM+T6FuPYH/ynXAJ1HPN+pBH9WnQUvJt6+uT1MTKG6G4rWJhbFlNk0LvcmImGBHpEWipJiMLUyyvitgnFWyZDI71rsa+8X3vTbRCaO3HJQEbWL3e45UB61lJ7v+A5VDGxMCFgBmRZW+e7ldnX0rc7ndBms/HqW0XSCSpd+eb/pN+S61EONiBoZkFttB6Bd+MI8z+3C30wc5UvsOXbLQCM2cD7/RV8BhPjl249OtLnrJUg+1cRDMe0MTnXz3pNMw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WDolfkZiwLAd+5hUIkncw5f9xUBKqqgBuqZw0vmMuvw=; b=vxMbyIz5HieNvPwuKxZXD8i24qxegrVTzCsn+3aTTNQps3A9IsmyDGnfXdgE6Q0xvtiAq71Diib/bUfmsM6L/PRSGXMcBnWeEkqD70VMHN+RcxDpWb7y8xyrEy6Lp0o7kemcALEVO1Pzg5uSQwtJACO9dA7lzvSPPG+dpJ3CQZ8= Received: from MW5PR10MB5738.namprd10.prod.outlook.com (2603:10b6:303:19b::14) by BN0PR10MB5078.namprd10.prod.outlook.com (2603:10b6:408:129::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8114.25; Fri, 1 Nov 2024 20:16:24 +0000 Received: from MW5PR10MB5738.namprd10.prod.outlook.com ([fe80::187b:b241:398b:50eb]) by MW5PR10MB5738.namprd10.prod.outlook.com ([fe80::187b:b241:398b:50eb%5]) with mapi id 15.20.8114.015; Fri, 1 Nov 2024 20:16:24 +0000 Message-ID: <44312f4a-8b9c-49ce-9277-5873a94ca1bb@oracle.com> Date: Fri, 1 Nov 2024 15:16:21 -0500 User-Agent: Mozilla Thunderbird Subject: [RFC PATCH] mm/slab: Avoid build bug for calls to kmalloc with a large constant To: Ryan Roberts , Andrew Morton Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org References: <20241014105514.3206191-1-ryan.roberts@arm.com> <20241014105912.3207374-1-ryan.roberts@arm.com> <20241014105912.3207374-6-ryan.roberts@arm.com> From: Dave Kleikamp Content-Language: en-US In-Reply-To: <20241014105912.3207374-6-ryan.roberts@arm.com> X-ClientProxiedBy: CH2PR10CA0015.namprd10.prod.outlook.com (2603:10b6:610:4c::25) To MW5PR10MB5738.namprd10.prod.outlook.com (2603:10b6:303:19b::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MW5PR10MB5738:EE_|BN0PR10MB5078:EE_ X-MS-Office365-Filtering-Correlation-Id: 39116157-c71b-4906-828f-08dcfab20e7a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|366016; X-Microsoft-Antispam-Message-Info: =?utf-8?q?Yik1gg3ih56HFI1HDImB8Fi6CujN7JL?= =?utf-8?q?+ccO7X5MJkVzDCMgICWi2JwIRM0XpZBifWOSZB0HDM8jB5fv8P74lWWBmHE6pclRW?= =?utf-8?q?RGaC3WzF3YcpgUPFGa1dTG7e96dtD/f1KJHJGsirIQnUbtScoRL1Yw8MTxKdkTr4z?= =?utf-8?q?Z51T+X6uyH2COeXr0ZAAali/yQ1MVygdJfkAk3HDEqy9Q5VJjyK7VDog/0uh6yJtc?= =?utf-8?q?M6/tr5ZYv4NeEZOFEJMSoKKUG0LuCTOFdMrJGDHULS1DtoBPgHPirM0HwX02UD2DH?= =?utf-8?q?lK/TFCc7K//IHx7FNCZzXRn/E14vF1wfO75jIjkKixz9lTNsoPVaVrn/Hn95Sq8Xw?= =?utf-8?q?69LAiwZhUGJ5V6nzQg0YdPf3sIypqxzpODd1NHkrGHv4luYFg3JYZWMNyELkGCN0l?= =?utf-8?q?yimIwMmUE3a1AlccmbtxgzFCDH2Mmth293lcFE9TryjTRy0eH+DWkrh26SZZy52dR?= =?utf-8?q?kKv6WR/MFix23z6Atup5/FGjpvGu2W8TxuCH0m5CXfuv7oFvzkFfMMrYz80oTI5jT?= =?utf-8?q?M1UQS6r8//FS9pNjUTDrD9zp0AJKgbh0iBU+iv/IvIdAEGs86jGK833l/nCJtbADc?= =?utf-8?q?Fr2PhWDwq4pU7P1VjkfbI9lhWUlM2f72+VoKKQYy0TIcETZoykrGR+m3+FNcRkJE2?= =?utf-8?q?jFMQ2xnZ3XUD+wnKkdUHC5VjjUEqujIgTFGCV7dYXv8ioOR5mn6KtxDfwi/tbUVyH?= =?utf-8?q?OFA/Cg/Q3CH7l4klFgA0VisL6K41+Q5e0p8rgvvI7kn6y3qk/YJnh1onBMCFUNk4y?= =?utf-8?q?OTmsyujzduKTzWMmusg3JEEq0D5QrtnHWCjnLZp/Gfp1uQ8+L0CLTaFdouxhYeKim?= =?utf-8?q?+XlCoUCyORyVzifKn4RlJxZ8e8XOGaATFaSzInCmt0bVkOosikVqDTllbWpZmKAqc?= =?utf-8?q?z3k5iAXXYRV0nWh+DPpKtp1+ffoveT68H4cdU845m+G+K/AE3ajnk/uDW8PR1LDu/?= =?utf-8?q?Wq6BW7GBz5n7jd75SzdwFDPR8iqVhGBLdc6SyyBckveGnaaR5BXDtWwuC/3JAuDpr?= =?utf-8?q?YXeyriEZqV9C70kYQY2mep5WOOvzbI4sBihhkMo5hWYU2v1ExynIlVRQjK4ZkVs38?= =?utf-8?q?njpx5vfKhXP1gyvANMBadb8s/C6M2b8qw828XlsxmEmqKsG7m3l2Xq2kH5uh+JzQv?= =?utf-8?q?dDVIEpUzAQ8s41GLpPjKq2PhzFqzlW2hd97UCuPy/uOD/ozfkiN48Jc1oUzuHeCSr?= =?utf-8?q?f/+jp0Yhx+MGtGtR0VUMpn2TL00Ja5VJDcB4cdpjKOwHLYxqF7IVEVcDq3PkheQ39?= =?utf-8?q?ccXm3/WR/c/Mj?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW5PR10MB5738.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(1800799024)(366016);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?0A0FJa2zrN3cxG7tWqTw/mNwYrNJ?= =?utf-8?q?B6pDu5jkSCulEeAk6txegMxQFWCa5DYW22+IRp+c2ThJliAVWnYVhk4Sm1I3V6kpY?= =?utf-8?q?qYSDpec/tm8yuZiPJcYaB/XRxYpH9CYxQn/JFj4tE2e2z09xxIfZX1DzTWFgNdonn?= =?utf-8?q?4aEPfRZEohl7CjAGMq63p5I/Smbk1SOV/WAzTiSDafl4ZzIVMXSvmne9zjfy8eRAV?= =?utf-8?q?rb+FredzMJDSGFPnNYfyO7FGPsSJzoA55+rDVCSuXxK9+fr81zr8QCOA14tQ4QdqB?= =?utf-8?q?zHnX1um4CgP//3yMo0uS7cJ3tlSqiqEBhYNGqXu2riyoaVAfWPpSDDBQzKyr5CzQL?= =?utf-8?q?PsBQTwm/REB3drl94EfMKEOqrHfbmTF2VtMmxvgum7ZRa+iU4+dAhX1Dl3WT13V6f?= =?utf-8?q?cNBZYlQ0n33djBB1LlPlnmE8o8AiKamNwEHd/TULro/nJslzmzTI/savDJ7llOQpG?= =?utf-8?q?DLcfYS9PZ4abejVJEV9jVQpzyWY6RS1iZIhR9aeToLHCJJiuADXqQA8KIHynpLZik?= =?utf-8?q?2DBZIWuFYNNwAwuISePpb59aw2NwOKXL7QiDBp+i5KpEDxiLV4Y7sJKuWtLDeD8re?= =?utf-8?q?IAMk1dwmQqb/sUheH+1G6QOn6flYqpT4yndHLV8oBULGiLwX8H5tP9gLIPwbcvdbO?= =?utf-8?q?cc61sYjq/+V2peVn9mb6x/SxXi/zXR9uIoXE5g1V4ZUk4oymM/0LQ8IrpnqmwdVq4?= =?utf-8?q?RRB2Mt/6Nx/I4gv42WMmgoyFlqXtin6H5OPcZnDNRKZ2ijSTqMFSyMRRwSxinkVTF?= =?utf-8?q?0R4NsAvhDCVrNGuMOPe2VQu2MrZ9lye9oj1Ld1JZ9BC7pKhBDfdsRJUCdOQy43Mpc?= =?utf-8?q?XFAjZgBgrxrAu1xOcbuU92ZW6gQwFWX3DFB6Eum5U3PuutpVN/kJrU8M2pRNx5hj6?= =?utf-8?q?UjObzUwNO4JEAtqyQy7KVrULMJcwXr6cAsn2aZSnZhSmNJlse9+AOwpnEIYhy01Wt?= =?utf-8?q?Pdcggi7jjSylmnCl0hT/nF6WjLjgxBbJg4SB2b+I+5kZYtaKSiqYqYlU0Kiykj28M?= =?utf-8?q?NM81/ktUyNrold8+ZTHod74WH6xNh/INJb9WP/TOuEG58jAEKNXiuQHV5A8aBo6bb?= =?utf-8?q?4BV90JV82lwc6sqgfUy4/F2zo8px0LngjKybnKyxCRNn/kJlu33vavageXQvLc/B8?= =?utf-8?q?IGa/mihOihPy8Rki9Bg3fSu9Oser0/qI99u0jQQald8QPZR/wsuzQueFP1RUd/lZ1?= =?utf-8?q?CyxSr+g0go23K5bDnZpHwlABeZJcuW9kfQh+tQXwcmjKNhzSEgaMQnDI3yWbTYeUP?= =?utf-8?q?CTL+Grm5rJh4G5fUNWwDVy3P2TrIYT2z4XjHv0ShIcX/CiYmAcgM2lfgN+Uk0PK9j?= =?utf-8?q?UjowA8QtT/F5PciyAJIHgGWKIeauA0aEkR4ryaeFB9NK/sIysy2/Ey0Jxtmo1mLme?= =?utf-8?q?JqQ+DZjN9t1S6o5k29VLJPdtZBu29+0O/MgUn0xW0J0ydpcup0DqHIhGJd6D1M1D1?= =?utf-8?q?ywTfPQIMQIeWw770oN7kZ+URsE6ENkONXW0NqUlPJpDtxax50269qfPTEcMEya0ud?= =?utf-8?q?UNuiU7KPw8Z1GCZZ68zdejAPE1nERIMsug=3D=3D?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: x2WL1VQfSD6vya1LEyWAjqsvICyDhNovCPadc0oFJE3E/JE4hb9ZIh22/X8/tNKNM/PMSCOJeg7fFYeHD7Kiy0RUeqfGF5Af1KGBLa7Jp5yNhGCZn0R5bMFUb8YOi7q457l1ld+X0rj8KErg3LnJ9cD9UM1n/r8n1rIG33yFv8746Fb4qAmpSfEad+5Ps9wpa2OkmZWQUFczy2rOu9V3YNohamp3lWiKUKDbQ3wfqcG9VFWjJZekMzYPcicR3UtT6sxjW9anJthJZK/T2M8LSb2U52LAU/TqbmxoVvKiMnWeZJjfaXIKyBk59bGoeVEcdzGolJMdvVlMp3fAWaLivxuQIzPMgfMoDnf+tdXucvOcuFlLkDH5MDwa+On69CCsaEvK8rjEZJ7YzqRLiRNTNEMPove4g0tFTgBy4ybp4Yx94sOcWBZSijckPv0WLDXXi2aFf7DLltxHmHiVBWHXnG2H9ODutbtxh6beRB2GwMd+CByQ845ZjghN9gBz4CAnFrRcOg2BNq9wTAgLMKUWybKiYOLvDT+jVCtkkoZHwwqgwNsPmzcXl+qHFsMHgfVuFdro0xUDdpsmz/BJf8KxY6cqRLI4ASRCxK1lB6YFdRQ= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 39116157-c71b-4906-828f-08dcfab20e7a X-MS-Exchange-CrossTenant-AuthSource: MW5PR10MB5738.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Nov 2024 20:16:24.1114 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: a1ZJmRqo0mL5cfT3uGhlxNyRmGZbKNanJbEhp2M5+2fz/nrIzm+wgKJTtT3BkWB3gQ/UzSeyRWh3wsN7mSb2AW0z8HnQ6xtuD7aGw+ZFoJ4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN0PR10MB5078 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1051,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-11-01_14,2024-11-01_01,2024-09-30_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 bulkscore=0 spamscore=0 mlxlogscore=999 malwarescore=0 adultscore=0 phishscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2409260000 definitions=main-2411010144 X-Proofpoint-GUID: QpWxRYv46KESwOO_otYXXTfIXtTT57oO X-Proofpoint-ORIG-GUID: QpWxRYv46KESwOO_otYXXTfIXtTT57oO X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 23A642002F X-Stat-Signature: qq35ak8t45ctpm8azekgyt343rc8d7g4 X-Rspam-User: X-HE-Tag: 1730492182-669430 X-HE-Meta: U2FsdGVkX1/chW9qH9zgwBkTnEBaNjXKJqRGrn7bI7HjXxIa5q/ixOF0+s3m1Dz8rfhfUTbacJgc3wVZ0J99z5KbYJ5i2gC/UyY5T4j4RAkTCD2IKKwkquJSKH7bZHaC9DtXeWc4z7V17G4Xs0mCj2mvdCC8YFFzDeah2jv2VVDrg3464odc7oiPmD3ICQz3k9dZ9KYxLrByt+8KsVPzdtcrVkdxK1RKIxWOxkQUWshHBYDyaCqCi+qrZD6T6ykJCEcBhxDVrgiGE42+UQ7AFwyO7LCU5Ec6RgkiAIBF8k8KCBHwRXkUf3O/cy3UKdWRlVzbSCT5IDptbXsofoCYMdw9FUXJoMrdIUFA9M5sHiz8Yc2bn+3/mkufK5yT4WqnXlkzvU5LI43A38HkfpRH/MQApmk2Py+oI18dzzl6j2ye61W7Sb+0KJ17apU48TiEjF3TpFbSWbmjKBrHne+t3w3xdfqMckftI8Tp48nis6ybbPgDYom8V0qCw+6XyYxiWWp2bg7dhRgjB4qX9NlIrBQcJnHcFQ9eYeGdsr3lDIZTpKglr7CK3gf+9GcjGNMRwaX2ow0gaCWpIYajNz7dUu0zNjxnqQeQYGfJppP8CrEkqbtip62ozmrXH5w5aEpIQ5FcseTHudLftlhAOSvW+NPcFa2DuGfSn1fLWqu9BUBN9vi/9kUeOVPAM6fE8V3wPjh4P8jirj5sEWe7HjDoy1eowDopBlenNrA18/p5FOyLJHa8ylGBfaLgUHDwy10FFt2ZVdduYO+GKbtgAOOZAedQ5WCZoL9Kms6gh4nAyiQ9Uule/VoooW+pTcAyTNQKvf1YTGT8sutFI9J/9QhzEvtzFX0e/eLZ5wiP136UyktuC4Eh9PUpoozRgO/9ahHpm30/eLP8A2YsY2FnsHL71E7R1CzHcy9EuNBpSEr8XpHE/y3FKEubMoldWnD6ZesmbreQqNTfElhes0yyFa8 Xf6p0xh3 cZ9rVfTPOMj8PA5Z99g4OfnT01sCM+ng+2XLtxVA/FpaWRzTGXHbt137CfZKEO5pJmHdx/o/BBu3QvcldeSPPjObZVbEbMphWXQDLqlFYpRNk4iF4Rilnuk4xsPAA6H4Csbl9DJ6LkOa3mrcVdwUPM1LfOD/QN0yPB8kSBLNkM1b6RGotwhfTXH2p4k/gDxznjINsuwLXzswFBxr76eszSYy8hkn8NItGY1kVKdDYRfkiPB3uFKY5GmnBuzoOzvGypOMIBUMg+vqQ6odNlFO0xVMLLcodvhta9wT9mBygII1joN4ftcycEJPzKD+6zvtqCr4187Ve+JdVBndLnXUSbVUi+BoQ1vMge8ZxdtaHoeiDnKDvBvsXbvcMjSRzbLHaXm4kiKsl1BXUffN6ajtAtXah2ghnNPyyC/p3dTW5sm60APz0d6XN9KcH4h+VlTQZZUeYHOu/Dalb5nTCZUuXAf+8WYgeUo4ILvN38aXeJ3HubCkiszfJ3yuz/7czm2e0tBZId28fKqH1r9YozALn1nzqJyJfXeSOrBsq6Knm0smNNmzOuBpUq7EzLDtmCt5yhvIC 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: When boot-time page size is enabled, the test against KMALLOC_MAX_CACHE_SIZE is no longer optimized out with a constant size, so a build bug may occur on a path that won't be reached. Found compiling drivers/net/ethernet/qlogic/qed/qed_sriov.c Signed-off-by: Dave Kleikamp --- Ryan, Please consider incorporating this fix or something similar into your mm patch in the boot-time pages size patches. include/linux/slab.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/slab.h b/include/linux/slab.h index 9848296ca6ba..a4c7507ab8ec 100644 --- a/include/linux/slab.h +++ b/include/linux/slab.h @@ -685,7 +685,8 @@ static __always_inline unsigned int __kmalloc_index(size_t size, if (size <= 1024 * 1024) return 20; if (size <= 2 * 1024 * 1024) return 21; - if (!IS_ENABLED(CONFIG_PROFILE_ALL_BRANCHES) && size_is_constant) + if (!IS_ENABLED(CONFIG_ARM64_BOOT_TIME_PAGE_SIZE) && + !IS_ENABLED(CONFIG_PROFILE_ALL_BRANCHES) && size_is_constant) BUILD_BUG_ON_MSG(1, "unexpected size in kmalloc_index()"); else BUG();