From patchwork Wed Nov 1 17:16:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Liam R. Howlett" X-Patchwork-Id: 13442923 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 34050C4332F for ; Wed, 1 Nov 2023 17:16:48 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C383E900005; Wed, 1 Nov 2023 13:16:47 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id BE6918D0001; Wed, 1 Nov 2023 13:16:47 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A6132900005; Wed, 1 Nov 2023 13:16:47 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 928408D0001 for ; Wed, 1 Nov 2023 13:16:47 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 6515C1A07B5 for ; Wed, 1 Nov 2023 17:16:47 +0000 (UTC) X-FDA: 81410040054.16.EFD8EDC Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf10.hostedemail.com (Postfix) with ESMTP id E909FC001C for ; Wed, 1 Nov 2023 17:16:42 +0000 (UTC) Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=EiENbQFH; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=LbllPnf+; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=oracle.com; spf=pass (imf10.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=liam.howlett@oracle.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1698859003; a=rsa-sha256; cv=pass; b=dCzrTPoe1yNipgOrCvdSLbiTbnfVlLbHA6Dw25CBH6PfDTlm29HGuM/DH1SCNan//vC85X 4tPetHnGNg/8h17x7THMKSKoIm6MmujGRJBlnbA7l2T88dodBgALvz3xwys0Lg1sTeX8L4 SaXI9GZ1eMHwx1O2+D3cIW/sD9dIOMo= ARC-Authentication-Results: i=2; imf10.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=EiENbQFH; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=LbllPnf+; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=oracle.com; spf=pass (imf10.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=liam.howlett@oracle.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1698859003; 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=KfrZaW0K5c8cXVE5iHHCWDIvF9HlDZH10tB2zeapSQo=; b=kFCmWkvF0zfEECyfhX71hvpmAMZYX1H7V57oQIOCzlU7sBupcoOksfhLzawPnT/Me8b62L M44qFidFSfXrsy34PLoSh/Lz1Qeohd371Bos+TrU14KgD0JXB3qd0uUjaOsNkBn/QjjEuj 36HrrBTWiFmcXYtQn+KlZH9WPtK7n7s= Received: from pps.filterd (m0333521.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3A1GYoW1011191; Wed, 1 Nov 2023 17:16:41 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2023-03-30; bh=KfrZaW0K5c8cXVE5iHHCWDIvF9HlDZH10tB2zeapSQo=; b=EiENbQFHa5daXGAmmIcKNpIrhIEhs/g0BK/cyk17cEWdQAQQx16NwQxoE3L1yxla62zt Ixhrxe+xtlus/m7mzf2MO0uenFK6hfGxXQncA88QRweKWXL2uVhc3vd56TrDOOZZdSnz ZEUb/fCIkY530ZHZljfJtAm0TKolleMLvTqxwOxUXsQKWp7y0wCHDfXE3n9lFuv+hk99 /kAHikcPuELOqGdJQGWS1LwCwsIevoXx91iwMkW7Q+LhPGJB782eVh+HIqRbd6oH5gW/ /3pmLZUPdz7TAFaXhySuw3+Au+03zF3WAWZIJbD+krJvo6kl0PxKEvaE3zUqcU6h3Qx1 jQ== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3u0s7byxs9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 01 Nov 2023 17:16:41 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 3A1Gj6B8022465; Wed, 1 Nov 2023 17:16:40 GMT Received: from nam04-bn8-obe.outbound.protection.outlook.com (mail-bn8nam04lp2041.outbound.protection.outlook.com [104.47.74.41]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3u0rr7br6g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 01 Nov 2023 17:16:39 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cOnmiLg6SBv7I2bjS68SmHZsAxmcxJaUE+faqYDk55NVCibpjvL41eAHzfIRcaqFlPpdkjqJDIYf1mD7qC1Or4flDYx6q3MfjoBJy0ZpjEfFZslp7+fzfoTH2ea0pd6lU7QKNVj9HZIr9kP64HFUrYEAszobg+Kn6fB6Vtkykb0yev+As3+oNNrpnqSOI5OTc+2Hg5YZNBFECx4hGr0q6bhDmf/N7AA8dtFz+9Ts8zFQIyAnSmnx4+3OEn+n3ytYez5l6RzoQZztqYyYqBKFKTXkb9UAF9czWAXdtinxCIi0fdNj1VM+t4TpIO3sY+78dNpqvQk5yC7Hcm2yDLYULg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=KfrZaW0K5c8cXVE5iHHCWDIvF9HlDZH10tB2zeapSQo=; b=KNfbCYo1Su/a4I9ImM79aJm7CiUo4pjciTonEdnB5WszxHPXPsUL5gPUVTorEuqg9AajvbUYWBoP7628/iDiplU321UKJTKGqR9P8Rh/H+zlwkY3SLnm3T9B1H7x5A7wiw/FZns9WEfWV45Biq1cseoet1BGChfFk/4Nwpnam+A9ieMis7RUPbBH1kEhAfoqk3fYWXaO38LSWcMPNWwzhFsPwXM9YJPx+8JnxQUf+dic6wjmHxiNnaxMDKMMR67wvt8bSwYRU2V2zAIN4SlygQOkvRvVOTh2XrS+V4gyiDK6b37LYyhW8zIT2uRYmB/xF5dqAzOUxOlQufzDhV7yEg== 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=KfrZaW0K5c8cXVE5iHHCWDIvF9HlDZH10tB2zeapSQo=; b=LbllPnf+323ewMHHKhHf/cF8qPDDK8XwNLuhlRmjHKVb5jaqmjikZvLf9Gn4timt+vfjJNi5dp8tyoZmsOYE2huyPhH/xgYzWyp7y/u5UbjKUx7AQNq7LdPgqFAzM7/8p3fEmxplwIOD54eIfq/GFAyQfJFj27dcWCXimLoSAtw= Received: from SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) by SA1PR10MB7684.namprd10.prod.outlook.com (2603:10b6:806:38e::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.31; Wed, 1 Nov 2023 17:16:38 +0000 Received: from SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::8979:3e3f:c3e0:8dfa]) by SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::8979:3e3f:c3e0:8dfa%4]) with mapi id 15.20.6907.025; Wed, 1 Nov 2023 17:16:38 +0000 From: "Liam R. Howlett" To: Andrew Morton Cc: maple-tree@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, "Liam R. Howlett" Subject: [PATCH 01/12] maple_tree: Remove unnecessary default labels from switch statements Date: Wed, 1 Nov 2023 13:16:18 -0400 Message-Id: <20231101171629.3612299-2-Liam.Howlett@oracle.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231101171629.3612299-1-Liam.Howlett@oracle.com> References: <20231101171629.3612299-1-Liam.Howlett@oracle.com> X-ClientProxiedBy: YT4PR01CA0489.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:10c::8) To SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR10MB3022:EE_|SA1PR10MB7684:EE_ X-MS-Office365-Filtering-Correlation-Id: 614ced25-77f2-4876-8f82-08dbdafe4ef5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: N7P3zcZiMYevt1Roq58q6IEM41IBw0yt/o4rnnwT7w1Q21qsAiofzbrQXj+n+ji+IgiEsBuUkTRNBofYJDduzH06tJ9oErjWEB+h8xl+mfvGx5wZV8OYJzPL3Nzl00vyQCer4QAOtVN5dLGGxpg1JHJwPZhB2RMvQJmxG6fsupIvCaMLhwRicu3li8+veb0EYEsoo7BUQMFLiX+44HTrxlGtmR4BNfI+gdr7h4AECcpiByHOzKjNBM1YhazRX67/11SrmFqjaNp/hfBfr6/Dx9b3oPkUmV3t84CNq5zL8An+kYIehDy9qX7duIjZJsaizcRZ1bQRMVHnNrxNnExMGmZmqYCJbqhOA/oA+0w2BSyYO5T6KbrcRCqsvuz1E3vz3CUxhNoTwa+Eh/MA5kmi6rqTmR8eD9rAhBsGxoww38OP/VwW+DInALMReb+Mxd2/s95bayFxTHOBIDKM5NAQuts6HmIlm888xf0kLOA1XuizlX/wYvsiR0icAfE8ldBPVjGqhEJ5ZvQV2giB+AsuXAIppHHDos2HrjeyEljGs6TCptA9Khm6iCgDScrnW/IXrVb60bB/NEn/YRWEs3Jf2Z2T6OcR1iYI/HW4RF93r/uJjAzJg02l4VOwF2x/TFWa X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR10MB3022.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(346002)(136003)(376002)(366004)(396003)(39860400002)(230922051799003)(230273577357003)(230173577357003)(186009)(451199024)(1800799009)(64100799003)(6486002)(8936002)(2906002)(4326008)(41300700001)(8676002)(5660300002)(6666004)(6506007)(66476007)(107886003)(83380400001)(1076003)(2616005)(36756003)(26005)(6512007)(38100700002)(316002)(86362001)(478600001)(66556008)(6916009)(66946007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: tTsnPDae89Ck8qV2QyptLvn6NBkZKIwR47CtPOzE6mZDqJ9+clsu4K6fo6JU/YaLMlQZdS9/Pfz16IESVpDNreNuWuhB7/ytvBoKf5lrbprAV6ewH1r97cI689/gqwJobjk1JRzrLsA+qBHL8CdP1nKTtl2JC5Y+mcEtQhy1bbpt40OE6btBdN/vpAoUjnID2bkEBmiKlTs72yVeAWiUDqgK77zoDXCLLd+u7urvjY2cSm7HPMA0agEFDdR7ycBGNPRDAs1NmgNzxDlltvSItuXXrd3Nc3q+xZguea4Ipr3vGHcNPnwUptrVMkH6YRI2xdZ6dAZdCx28QV68mxsgR3LT46NBfsvuqbrANTGaw3klYzz0riUv8bsCb4lT5YiuPUTLKo/O7cYnYDdORloF5RacdqGhlDKdw6dP4f4DSeO/Sz6hzD/lOfi8IAnpHOzJOp2hbNBLWPGq40aBvIjt+IMtMSMiD2WmRemi8ygGyuGqYuhXt3rzwY4YzTXByvEM4TtrEvqM9yt/N8WjQdtE8FaPEyBeKDFXurdIM/OfnGd11VwGOj/bnbjTLP0fLutdMZJDtmO3M8hYH5XIXhg+b7Lm3VFqHxHOaKgyN747domINZXZRuMG+lP9SS+K5+SUEc3f3KyLyJ8y8SK6+e8hhtp/ehZO9zSTKpiksN7ozCAqEuOQj+dKIf828mU5N2TKYMb66KfR9gd05JZ3GjZ2UUei5rytTGAPgL54plOfAjUQS2i1P90oATnHV+J7PVy3BqR2bUzsTl2O7a3rGT+ziyNEXIdLpTllyfwMisk4WXRFlWHOttERmDHBFrh2g+K9lXwSakZNbGa6G9H60/97/vtuiPGtl9Lr1CexAEMfw+htcZ3q3pa4+IVlRgiMaRbT3CnweWHb/fuYv2X8A+81kcbq4GfON91tCRr1/P8UMlzKC6nnXFD6J2fEagj2208jkV9fgg5/u1vfhGmyDLTOuZEdxSDlNe3H37fd6IbpmT/ovybb0d4XxPpYUXhRVPzgSJO6fGdM8LcKhG+2WNko0dhxnc2FJjsVrXvXB0gg+fr9yE1SfTlVnbzJPvf6wKLIrLdEMzrPN5RaSJ4Y3Ruxtn/scxpnSC7DK4CrvqrO9c35ZIJryke3XQANZICaG5eOuUzKxwmgd0Q0254TZOu0WMURqNzLsX+5/+/OXrBtlJ5GZFLnhyOiwkFmZ0EJBmSeT2s2TPabsAujroEfrCTUHi0B/uFvTrn29j+bWK7s7Qh6T0kHyH9ctAtQuN7dHARraoH/yCSzHgH93qzzlF1xXbbZBhPrYEwTzm2UN17NUbnkahUvU+PNy5nRnoJB2zStaNPzGIEP8IHw9cgNN9hsPNt7H9v6B6UTuySkCro6gYZN494tFA+YE/abi9V4PM6JS1c8TKvYxDB1t+e6x0ikis825mpXXTIK6Qg8vaE/eZVXmKcDilauRJAauwfv/dziMRR53R4XaH1pZkQQmtI9IhtyWgAMinccKKwfd9u9EWxcmoX1K6zNZUxl1HXfkGbG2FoEqXLHAEe2xhRWgTUV1Xnh4PtwJXSCm60vi4+G5qj5HsBvH90qKrchivkLDw2h X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: HSZPs9QVf6a2SDli53FgzajYGjKVf1nxoOe4RMKMcMpx4TCeRZNGezS9Typ8jRWXSFxka14kXB5zWIUSLYGf3JOe0aygrTuHvXVb8J6ifarFZesoEtIePyKRv9+fUS6NaQ9LXHJFBneagIvk193oyIyv7Mj/+ddpF13GFBZze6w5bBmT3cUkYV3oZJZX5EalBZ7pvTfALIjk0LpVCj79+4bphVHkRwKj7L26WVjG2d2GY7a4X3FZXVCr3iCK363yMb5KKHYXiW8mAwEeYDtbjrs5qBs6Pg5K94Bp1tsRKVDXE85Yl5S9A1AkdynuMjjjNGqcvKhpkTkLm5ab7PDRY/yUAltSnJoCQhmS7gVO/EZ6N3v+zsAiexMp0cCeOPOt2jsul8XRfGrcygVVQX+fzMeOwvtOYJk+NUpkvsk/Fpjqg6S9jEM3aYzBok5hC3WpsMfXpKB34GyfluxMmtX1aZRvLCmofY8fn4zu/y4r6t863dJnDd5WxwcQKhTGs/Wc3IfbnJgWn2W/7qQTMaF/hcuMdKy0NSDTj2MIvXRrQ+RRtc2uwyJAsr0+VLdciAPbMkL6EVT1C/F48g4dpy8xc7fUq+mYT6/rOfOO6AQEnMAA2ksa7lcdRSRFoHwtNTM6thu0t1M1uVjsm+Aar8EwIp2uyvZJkhz0xn7mXlqTQjtJZqX0HUxyOUgeBQJxTNsaz4I8WCOIACXVFJxRNs+GR7ov83uwK/ALNzqwP+eOsPkgbd6UAQI4kyP4epccvAUhUxMDtSAUv7chGE5OdOLglBFvU/kTCpQFKo3N+Kr8i2wJll42b8Oc8NKaP/J+PP2D4CEbhRTuHw4wOOrenG2KbJkXZ+ezW+6wsrKG9uVGGjLWPgyRNBweQ6+FZKbGeNNVY6cbT1AZdmUlBDx70YMCaQ== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 614ced25-77f2-4876-8f82-08dbdafe4ef5 X-MS-Exchange-CrossTenant-AuthSource: SN6PR10MB3022.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Nov 2023 17:16:38.5042 (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: f3//2Va5STVN/IMTXo6jgruSv9KYKu9Qa8T6TFL0XE4dcdT/q9m4ANhEpHjyC5coLLovgS0zu6YpaTQDq5SCJA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR10MB7684 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-01_15,2023-11-01_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 malwarescore=0 mlxscore=0 mlxlogscore=999 adultscore=0 phishscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310240000 definitions=main-2311010134 X-Proofpoint-GUID: fW9RmoQstYFRFIXapQza5PZkMIZ7nbxl X-Proofpoint-ORIG-GUID: fW9RmoQstYFRFIXapQza5PZkMIZ7nbxl X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: E909FC001C X-Stat-Signature: pfch9139uzhpmeqjx61kn3ja8qmq5qj4 X-HE-Tag: 1698859002-994304 X-HE-Meta: U2FsdGVkX19338vw6bGKGKUxYlwP6UCnIuvi6dh6YmDL76G9JTZ0460Zpe+KYvyTShMYOZCChRI2hrMaIKFFz9cHi2RtnVmnsMM4kw49Kf/43weikCBZDuIOHW6cSk0S35WRDXmBuISraqNpKl0dgGaXHmVn9SQ9RfusrWsdcd61iG1t55UmeeDyGEeCNet1WswOgcjeG8tEWCEAZysRqR2ZfOpzb/TOw3OyUlAb+PCDS7r+R4apaQmL9xCFV5xqAI3zd4PmpaAyM55sK9vLvRnnoyGpFDF3UtLd9WHaZsFlyJifA1z8g93yJ4UyAn2yfBNj68XysePTAZ70z6xlowZt3W7ZcOPJcj3rS7scajMztgiVRDCshTQMVkBEMvhRxsT00rh/YC2iBCGPMSKLdbi6T9zqFxOAP+58LuzmWg85yPOmNTXQuDTqwQ+GubfBQj+IFHc/TfDf7FF8Ls7HQBp67tZJxQ+7iTKjC7T56fROyC6udJRsLYGPBQdCb0BXDgpcWxm3sia8GdpH3AcCSC44rKdGcS30/9fFBqQEORiXfIku3Wy81L0SWXDnIPvNJLvnhOTh/dW5jK14/c6IYBCDfuxuJmgQgLo97AmEjZFI1rSBTQyYYLhPeH9NiAIOZvTPNT8WM3zXc6/dT63saJOxBaLu7C09ObEwnnHZB1vOy8zJJDhUSXfG8XHnxitqPq2Qvl5zsdcoN0PFzl547YqremrnxQfsiPS2zlSW2QO0WLBd+FI09i17un0Nf0RWAepxxbpsgxMBGjR5b5EC136jvreErBV4jOIH2Ac6ZkAua5GBDHjkRrzRXewcK5sLfFzRzp3bO6deBPd+6jLdCceyn37646Iq+8fQmWfi4v3CeYgPGn45gMn9sPNcWqgcq7q4+CJdyuCiv3jz8yDk7fKGUEaB9vFLkNK3V9kQ9TB/PUu24CzqnUtQN7mGUngyb8Gk2mRJAh3nHyTP2xy vyKhG8PK UktUVrhjQIu1a/UMZRLLY3YLaJv7anf/WgEADjsrQy+0K31jsVCAoCAXTuRH3IINmvHnYxAfDE+8mnZX5tb2IF4xSqzZY4V+CMvRdt/W8eb09aL+5OrgROh+m0+6ZVOmh1AEIN0IzpaDx3jLYzf3iEywcIPGLI4y+Re/cVVsJ1/z/Rt9IZjjXl7IuZT21Q7kenyFtix7Ywu1uzRwETyv+vdnHchQ9Mn/Eeytw+GXjfNB+QAsM4mBYr068jIH2ll0LWwPmo1jqY0omua0bph4Kjay/sTSfz25sQmJJ7cQfXC7JzZCc4qaouTn3MDzMFb9OoIobJWvfSsVbOoNa5q8py2xrpgqYhMPPxDMtGtTuEvYQwgGoWtD+lJJywVuVihWxCpJJs8BBxT3W/T8NaOzep/JWK41Qv6v97v3/0BAqPqgDXJ27moc5zU0/rotgNjbGw8197NP0WNZt1Mv4NqNEQvOQFHk+OJZihqKx X-Bogosity: Ham, tests=bogofilter, spamicity=0.000001, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Removing the default types from the switch statements will cause compile warnings on missing cases. Suggested-by: Andrew Morton Signed-off-by: Liam R. Howlett --- lib/maple_tree.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/lib/maple_tree.c b/lib/maple_tree.c index 0e00a84e8e8f..0fcbfa7e9942 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -759,7 +759,6 @@ static inline void mte_set_pivot(struct maple_enode *mn, unsigned char piv, BUG_ON(piv >= mt_pivots[type]); switch (type) { - default: case maple_range_64: case maple_leaf_64: node->mr64.pivot[piv] = val; @@ -783,7 +782,6 @@ static inline void mte_set_pivot(struct maple_enode *mn, unsigned char piv, static inline void __rcu **ma_slots(struct maple_node *mn, enum maple_type mt) { switch (mt) { - default: case maple_arange_64: return mn->ma64.slot; case maple_range_64: @@ -792,6 +790,8 @@ static inline void __rcu **ma_slots(struct maple_node *mn, enum maple_type mt) case maple_dense: return mn->slot; } + + return NULL; } static inline bool mt_write_locked(const struct maple_tree *mt) @@ -6718,7 +6718,6 @@ static void mt_dump_range(unsigned long min, unsigned long max, else pr_info("%.*s%lx-%lx: ", depth * 2, spaces, min, max); break; - default: case mt_dump_dec: if (min == max) pr_info("%.*s%lu: ", depth * 2, spaces, min); @@ -6758,7 +6757,6 @@ static void mt_dump_range64(const struct maple_tree *mt, void *entry, case mt_dump_hex: pr_cont("%p %lX ", node->slot[i], node->pivot[i]); break; - default: case mt_dump_dec: pr_cont("%p %lu ", node->slot[i], node->pivot[i]); } @@ -6788,7 +6786,6 @@ static void mt_dump_range64(const struct maple_tree *mt, void *entry, pr_err("node %p last (%lx) > max (%lx) at pivot %d!\n", node, last, max, i); break; - default: case mt_dump_dec: pr_err("node %p last (%lu) > max (%lu) at pivot %d!\n", node, last, max, i); @@ -6813,7 +6810,6 @@ static void mt_dump_arange64(const struct maple_tree *mt, void *entry, case mt_dump_hex: pr_cont("%lx ", node->gap[i]); break; - default: case mt_dump_dec: pr_cont("%lu ", node->gap[i]); } @@ -6824,7 +6820,6 @@ static void mt_dump_arange64(const struct maple_tree *mt, void *entry, case mt_dump_hex: pr_cont("%p %lX ", node->slot[i], node->pivot[i]); break; - default: case mt_dump_dec: pr_cont("%p %lu ", node->slot[i], node->pivot[i]); }