Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1037471imm; Fri, 29 Jun 2018 10:16:32 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJUrnBDBhX94M3EbVEzCNWwN1g/SWOJ00vEgVE9lPHvFeobn7Jy3EuUz3wAUc+OTwnF+uX5 X-Received: by 2002:a65:42c3:: with SMTP id l3-v6mr12778404pgp.398.1530292592378; Fri, 29 Jun 2018 10:16:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530292592; cv=none; d=google.com; s=arc-20160816; b=hkCrms/iegBYsnhYjejd9Qt+SJj5dJJxSPmXOWAiwB2mBUlcqIdrQeqFTEXQkdUAT+ rMd4/vGxCC9dTvxYxy8u6dsMCA7GLtUAyIYhimH5afAOSBcW5OcxEHJeuTGXWUlcKd+n 9j+ubQ0rZTWZLvh/mxc5kBciNTHJJO5WXj2IBuumXesgP+JX7qOsTyRl+6fEnQIphiQq smse2Nsoq/rCdlWK5yBvV/AbripezXcoW5onkyqw+tye59Iz13+5gxKTIDj+BrofBtjG TZ/0lhKs1l566auM5Kd566On9z42naI799LhZbX+1TBPAkKdtTk5HgamJ02pVpEf+RyN zKLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=TY1YYAcIHzAo9BBk7NLTm4ti7dXwo5mERv4FwCyNrps=; b=lpBArlBQhg3pUoD8kVLZ/1gOMTLzmZht+Iw3N+vgb2XrqInV5lYxT1phdem5GGT20o v93/6Dn5XRk19vyB6zPRwGoFwgaBtcXpC8kIwOkouQL6Sk9JYksYR5Zt+LxzAKUDNXN3 CcDIo9VgBCCm52/xLV3OF31Tutl45GMHSrOuZQzuGV/8N1vXyvWCL5Sa1XIKs/y3cMw5 SdLQERsS5TKFWa0RwqxZ3nGHNy+lEmSJDdJhXGkKJvQ8X966B5oLAxkRV1qlevFrZOln 96jYI3ubTKmKBprJMK2cZHhwjBJExZ5rQFez9zOgc/BWHRjg+VBVK9zZbvwn4fYO2ezb MVew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=ltVVuOtL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p16-v6si8094918pgq.331.2018.06.29.10.16.17; Fri, 29 Jun 2018 10:16:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=ltVVuOtL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966657AbeF2P4j (ORCPT + 99 others); Fri, 29 Jun 2018 11:56:39 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:52420 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934265AbeF2P4i (ORCPT ); Fri, 29 Jun 2018 11:56:38 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w5TFrZ2j174536 for ; Fri, 29 Jun 2018 15:56:36 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : references : in-reply-to : from : date : message-id : subject : to : cc : content-type; s=corp-2017-10-26; bh=TY1YYAcIHzAo9BBk7NLTm4ti7dXwo5mERv4FwCyNrps=; b=ltVVuOtL+lQ5tUMCLuWBwOU364mq5cC7o7zyrsP8U4TWMcVTiv406EuegPPt+4BgcyPs 6SeFLHlFmO7uKER/HqEcvbXPJH8biW14BgxEJzBhUNU/Mz7t+AeuvLJZG12BPeCkJYez fsgfsyp8sBHXdtRGcpK608XB4RpnhhRPPIfhovKe2/UOl37t/ki4AQ3+g4LPZ4Z/4/uM FerZgRkxT/rwVtEN/LA+J5wH8Uj/GDMqp+P9HCDz+R+Bsf7hVa14V/KRTLvvzOgU8nWz LGJVjqvlxYvOKUtIrCFQjeo9Xb1xM6l5WYJCVqU26U1TOVjnFJaDCubN2VLIh5n//1CO 5A== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp2130.oracle.com with ESMTP id 2jum5871hw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 29 Jun 2018 15:56:36 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w5TFuZhv009055 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 29 Jun 2018 15:56:36 GMT Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w5TFuZQI013447 for ; Fri, 29 Jun 2018 15:56:35 GMT Received: from mail-oi0-f51.google.com (/209.85.218.51) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 29 Jun 2018 08:56:35 -0700 Received: by mail-oi0-f51.google.com with SMTP id s198-v6so5009719oih.11 for ; Fri, 29 Jun 2018 08:56:35 -0700 (PDT) X-Gm-Message-State: APt69E0HghrePzg1bRM2qVeEv9v3dSnAoaTGgIE93/Qwci28WZefNlQC vry1VXt4nDuUZ7rsKSLKTCs5YJBChEh63kkNHjY= X-Received: by 2002:aca:3243:: with SMTP id y64-v6mr9135305oiy.136.1530287795160; Fri, 29 Jun 2018 08:56:35 -0700 (PDT) MIME-Version: 1.0 References: <20180628173010.23849-1-pasha.tatashin@oracle.com> <20180628173010.23849-3-pasha.tatashin@oracle.com> <20180629144059.GB23545@techadventures.net> In-Reply-To: <20180629144059.GB23545@techadventures.net> From: Pavel Tatashin Date: Fri, 29 Jun 2018 11:55:59 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v1 2/2] mm/sparse: start using sparse_init_nid(), and remove old code To: osalvador@techadventures.net Cc: Steven Sistare , Daniel Jordan , LKML , Andrew Morton , kirill.shutemov@linux.intel.com, Michal Hocko , Linux Memory Management List , dan.j.williams@intel.com, jack@suse.cz, jglisse@redhat.com, Souptick Joarder , bhe@redhat.com, gregkh@linuxfoundation.org, Vlastimil Babka , Wei Yang , dave.hansen@intel.com, rientjes@google.com, mingo@kernel.org Content-Type: text/plain; charset="UTF-8" X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8939 signatures=668703 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=3 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=715 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1806290171 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > besides this first for_each_present_section_nr(), what about writing a static inline > function that returns next_present_section_nr(-1) ? > > Something like: > > static inline int first_present_section_nr(void) > { > return next_present_section_nr(-1); > } Good idea, will add it, thank you. Pavel