Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp4157724rwj; Tue, 20 Dec 2022 06:51:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf5fOs32wEfIww68vvMgasFkD2JonSMZSDK6+pe3Me7+K404m1MY6TLyBwnEwH1gkfbLkWEa X-Received: by 2002:a05:6a20:9f89:b0:9d:efd3:66b9 with SMTP id mm9-20020a056a209f8900b0009defd366b9mr54021208pzb.0.1671547919195; Tue, 20 Dec 2022 06:51:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671547919; cv=none; d=google.com; s=arc-20160816; b=Oeo/TotBMNmmqv4oKFUbBOb6ytiK18qtoa1mKnYUjXaW1UgCLcPlsSSV4SAnK0ODxi rPilXunfwaawqLr9Fw1wPCM1S8H+hV7aI4ekKnAfh1X8ZZm4v7UN+JUxQbRgJz9zoTNT K11IMD5FtNZSiaJn4FbCWKCqnQvzJ8832weHIbXcZ3LasUtvAqQaq7H1hh6zV05mg3Cc QXJquHmYVF6mBcC6fvd4z5g3+YOajenXv3WufgRXyEvnOM2CnHCTr+0sUkMLqFgOlb4G AKhDDwRuufwyd5A9b7jM3TWkf1Am0WgXrDnVG+H9OHCDTKrwrldZAXy7aaA+91Zf0Lzn ysCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=wmaEWyMbq+SYIJlOtMV18tUNIDRg/JjfkI+PyxC7ahM=; b=ecqhljzVkeXk6WHJe5ZawTJJarrapnxPffwPNCNZGWmEr9Zmo4nN6+91HS+rYe0Whn eygZ7ROHG0WMrTz5hmUmV/lz0nJSaGgjyd5jkZ66IicHCpsqbdbvbdnc133VUdKPQnZO Xo3a/ljKkJAtm76sQE/5pghjZ8B21wNJxtTGfKWTm2vW4VQ9JrIsO2VMia4tc39SJH/l dSIzhT7y5LgSEy7Mkt+OQVFFSEfwxotoY9LfrFULH39fd9HCNBeqsHap1EYuwUFi+PMD YdvqeEknnhteH8wRw2BjUjs+qamIeoIU2ymZBa8wzcu1T0sIZlHa3hsrcOVQabNZDvrW iArw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=q0iadfaz; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j16-20020a056a00131000b0056cf9ed8f10si773337pfu.329.2022.12.20.06.51.49; Tue, 20 Dec 2022 06:51:59 -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=@gmail.com header.s=20210112 header.b=q0iadfaz; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232400AbiLTO00 (ORCPT + 70 others); Tue, 20 Dec 2022 09:26:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233785AbiLTO0S (ORCPT ); Tue, 20 Dec 2022 09:26:18 -0500 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0565186FF for ; Tue, 20 Dec 2022 06:26:15 -0800 (PST) Received: by mail-pj1-x1034.google.com with SMTP id z8-20020a17090abd8800b00219ed30ce47so16630808pjr.3 for ; Tue, 20 Dec 2022 06:26:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=wmaEWyMbq+SYIJlOtMV18tUNIDRg/JjfkI+PyxC7ahM=; b=q0iadfazHe1+IYlSrbvINbM/UqFTgpwMPAdYMg32CpBaw23LmNYrPTOY4q24Ypc8BO x83WeHv7BpZvpAmNG8UykDNwB7N1eHH0tU3vsW0dEGp6OmT1NOA8BAbXLMEQ388m75ac WsSGbG6EDSGTKTTGNZDkrLXn5rrnQ58zKNbTX7sWPrDzi7atbtOJhzB+ARshj9xXLXPk QNXqyyG3AXW5kgkU67oKqg6BJ5fqKrbiCd85rt7EVI+0eJzXhAz41Tr21OImahokj+LU jWbk/Rfk6UMs/AN6wEGMVQeo168rC3lMGyPpqVozdC7jaaoEyxO/Ea5buZokqqg4VCHP drkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=wmaEWyMbq+SYIJlOtMV18tUNIDRg/JjfkI+PyxC7ahM=; b=VjofOSVvZxusZwBj2rRWDpubQ4k3pZqT9zaK+ONtDEv2QP9cH1ZaUIBHuJJb8WgTJM na3qvdekdJNcYput0cC4O0y1pW+H8/NaMeM4QUbO/7atsiCpBIOHovuut6akveAAo9TI IUEMwoTfwO99gT3TLcEdRzc1KBWmllhtZZZF0WCCdK7CPwbJgVNGag+3tFPkR6sWOVpv 07GIrOIZJk1MaHzdejq/LW+IfgEhrevhkk6TucY1rnzTZvKXFhUliEyw38p5E/ZPD4WX knNkM76aeMjuRzqzTcwgAKrTXdMYWYnn3DHq1e/Z4CxbSSaKZPb6NFaBPdA1+qiaP9YO n1PQ== X-Gm-Message-State: AFqh2kp6jegOnOafVneTKdCTEUbdpOH7RJoF40129Gc5lVrZjBDd+Ugz 522bI8FIWimGZf9Y14hIt3jF6FzwlN04KWjpYG0= X-Received: by 2002:a17:902:e549:b0:191:3993:801e with SMTP id n9-20020a170902e54900b001913993801emr2473900plf.56.1671546375405; Tue, 20 Dec 2022 06:26:15 -0800 (PST) Received: from vernon-pc.. ([114.231.52.81]) by smtp.gmail.com with ESMTPSA id ik11-20020a170902ab0b00b001897bfc9800sm9383398plb.53.2022.12.20.06.26.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Dec 2022 06:26:14 -0800 (PST) From: Vernon Yang To: Liam.Howlett@oracle.com, akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Vernon Yang Subject: [PATCH 1/8] maple_tree: remove extra space and blank line Date: Tue, 20 Dec 2022 22:25:59 +0800 Message-Id: <20221220142606.1698836-2-vernon2gm@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 These extra space and blank line is unnecessary, so drop it. Signed-off-by: Vernon Yang --- include/linux/maple_tree.h | 2 -- lib/maple_tree.c | 14 ++++---------- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/include/linux/maple_tree.h b/include/linux/maple_tree.h index e594db58a0f1..4ee5a969441c 100644 --- a/include/linux/maple_tree.h +++ b/include/linux/maple_tree.h @@ -517,7 +517,6 @@ static inline void mas_reset(struct ma_state *mas) * entry. * * Note: may return the zero entry. - * */ #define mas_for_each(__mas, __entry, __max) \ while (((__entry) = mas_find((__mas), (__max))) != NULL) @@ -639,7 +638,6 @@ static inline void mt_set_in_rcu(struct maple_tree *mt) } static inline unsigned int mt_height(const struct maple_tree *mt) - { return (mt->ma_flags & MT_FLAGS_HEIGHT_MASK) >> MT_FLAGS_HEIGHT_OFFSET; } diff --git a/lib/maple_tree.c b/lib/maple_tree.c index fe3947b80069..8ace65a5eea5 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -183,7 +183,6 @@ static void ma_free_rcu(struct maple_node *node) call_rcu(&node->rcu, mt_free_rcu); } - static void mas_set_height(struct ma_state *mas) { unsigned int new_flags = mas->tree->ma_flags; @@ -468,7 +467,7 @@ static inline void mte_set_parent(struct maple_enode *enode, const struct maple_enode *parent, unsigned char slot) { - unsigned long val = (unsigned long) parent; + unsigned long val = (unsigned long)parent; unsigned long shift; unsigned long type; enum maple_type p_type = mte_node_type(parent); @@ -502,7 +501,7 @@ void mte_set_parent(struct maple_enode *enode, const struct maple_enode *parent, */ static inline unsigned int mte_parent_slot(const struct maple_enode *enode) { - unsigned long val = (unsigned long) mte_to_node(enode)->parent; + unsigned long val = (unsigned long)mte_to_node(enode)->parent; /* Root. */ if (val & 1) @@ -1278,7 +1277,6 @@ static inline void mas_alloc_nodes(struct ma_state *mas, gfp_t gfp) mas->alloc->total = success; mas_set_err(mas, -ENOMEM); return; - } /* @@ -2946,7 +2944,7 @@ static inline void *mtree_range_walk(struct ma_state *mas) mas->min = prev_min; mas->max = prev_max; mas->node = last; - return (void *) next; + return (void *)next; dead_node: mas_reset(mas); @@ -3464,7 +3462,6 @@ static inline bool mas_push_data(struct ma_state *mas, int height, */ static int mas_split(struct ma_state *mas, struct maple_big_node *b_node) { - struct maple_subtree_state mast; int height = 0; unsigned char mid_split, split = 0; @@ -3890,7 +3887,7 @@ static inline void *mtree_lookup_walk(struct ma_state *mas) goto dead_node; } while (!ma_is_leaf(type)); - return (void *) next; + return (void *)next; dead_node: mas_reset(mas); @@ -4708,7 +4705,6 @@ static inline void *mas_next_nentry(struct ma_state *mas, static inline void mas_rewalk(struct ma_state *mas, unsigned long index) { - retry: mas_set(mas, index); mas_state_walk(mas); @@ -4716,7 +4712,6 @@ static inline void mas_rewalk(struct ma_state *mas, unsigned long index) goto retry; return; - } /* @@ -5618,7 +5613,6 @@ static void mas_wr_store_setup(struct ma_wr_state *wr_mas) mas_reset(wr_mas->mas); } } - } /* Interface */ -- 2.34.1