Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp531963ybh; Thu, 12 Mar 2020 06:35:24 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvNg7H1+ngn2IDZ4IHdYYEtONsvhhCh0YYv6ijOx+JqlN23iPw6YK8zrSZPoa8U7x9H/iZS X-Received: by 2002:a9d:7458:: with SMTP id p24mr6579882otk.197.1584020124284; Thu, 12 Mar 2020 06:35:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584020124; cv=none; d=google.com; s=arc-20160816; b=GEDflhnHC/tYUxNg09cIXiw0sC33l6NYn1opXhivPE5DZP8UKvFlKPnqND1RbgDDhb vci0H+K6FBG5sseg2FGHNww+gM7pqZj84JHul2NAGc0P9KP/iqjYGlkYILfxFDwmcjjj lI8DtffSi/jEcKQj0w08AW7Q8i/sxINV63TVJEDRKnXzqgKuOMzpZWhYeb2qbw9YCJkc Gt9j3rp2dIJec/Wphf2kpXIOGxTPTq98jbw4f5M58/sgTUypNAXPz5/gVR47NZzxtqA6 JIR20ne1GTIR+PMkIIIUIdIDDlzkjEEl9khm8qxIOVa4M6HltzH6qe/gh0+lVv8qVfEL rbOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=vdp99kBqJfGiQv6F9UTNp9A5C6kAffpbNzB4DpZx8tM=; b=hnHFXsIMR3ixLOlF/j7VcmSMbwRNksFvQqZ20eBN3RXolbmrg39wG0AhvzWXZllMjw OjZRgXBi7tuquCRFMrlP0ibtMWNxuucvsHZwfNPlDv1Xl5PcnBY+8O2FPFkzRDgyNJEj WgojIMG1zPy53uXFSqYc02m837v8cBYLAKRjz9mc96+9fdakpnWIbeSnV89yRUdE9vy5 mnwyF8fOaDrhUpTziyKVE67KrVpPWxzfsaTdFfEJ8+UhjbSuqIeoLvt1ny2q0Ylz2T+l 1TPC29ny/C3YGWnHqAFHD0g1zvVR+lK0bBpI/volZZ1n1UNr60xXZcxaWICfUkEffkfD yICw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=fzPYth0x; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 194si2745982oii.2.2020.03.12.06.35.10; Thu, 12 Mar 2020 06:35:24 -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=@lca.pw header.s=google header.b=fzPYth0x; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727194AbgCLNdY (ORCPT + 99 others); Thu, 12 Mar 2020 09:33:24 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:42347 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726028AbgCLNdY (ORCPT ); Thu, 12 Mar 2020 09:33:24 -0400 Received: by mail-qt1-f196.google.com with SMTP id g16so4290771qtp.9 for ; Thu, 12 Mar 2020 06:33:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=message-id:subject:from:to:cc:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=vdp99kBqJfGiQv6F9UTNp9A5C6kAffpbNzB4DpZx8tM=; b=fzPYth0xZm9OoYTE3PiBGE7On1NFZx1IBEPXPEmLQmvwXSpYkIBO+ZoVTnDJU5CJ/B xiHS1SVnGsF03Rof7Nc2jET2WgnrpPhvHwcouzYxDJqMsM9QceNnfPfvshG9KEmmrppn V5FnzxfRhX2qfhuepl8PyNsVttV6kEBPEGsmNVt2c+eHedzggAnwDyas0c6lRnqkwVZD YLiky49Z2jtXp5d+0B7HbeoBZxIokG11FsaR0SMrWu/MDDpwDR3zlbJupasDUf1xxwNl N7B/jT4rukl8RT0RXhWREdysvJTF4NGAl9TjZXQgN1irbTwWXkk0ZS/COqA/Ecxy0IV5 8+0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=vdp99kBqJfGiQv6F9UTNp9A5C6kAffpbNzB4DpZx8tM=; b=j61KJ3lwSqYkMyiCs04r0dlwiC+RpybedvSsAJ9pNe3INOX42q9rOQm7X3xk1hvpPP aIQUsnLw2mv8Cck3AnhrQ62CyESt6KWohF4qBl4a5eyOznyGxDOb6rfWL9cuP6b4vacd uAskKJ1JIbWRa04kw+GryI+1xTeNydtmvBFjPtkzstV7ZXR/dfrwoMK+J3oesdFtpJw4 PVvD89PESvvYwL2YPOhfsqlrTpSUj8l9GJe4a82haRxDFBXfzoVGYrN9pvuque2ZoyDQ ZFUPr+vmxjjCRELiPmI1pnvxkAR2Gr2uZSvv9EnAcsQWw8PpcLHsxT6j79QJ2H3hbRot sbzg== X-Gm-Message-State: ANhLgQ37f7UaxzaStGJ21OsoPOOXel6P7lS8zQFETzjDJKEhon5kls34 95IowAzegUFL9y/PqXGvarRnqg== X-Received: by 2002:ac8:2bf8:: with SMTP id n53mr7309390qtn.1.1584020002510; Thu, 12 Mar 2020 06:33:22 -0700 (PDT) Received: from dhcp-41-57.bos.redhat.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id a27sm14228344qto.38.2020.03.12.06.33.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Mar 2020 06:33:21 -0700 (PDT) Message-ID: <1584020000.7365.178.camel@lca.pw> Subject: Re: [PATCH v3] mm: hugetlb: optionally allocate gigantic hugepages using cma From: Qian Cai To: Roman Gushchin , Andrew Morton Cc: Michal Hocko , linux-mm@kvack.org, kernel-team@fb.com, linux-kernel@vger.kernel.org, Rik van Riel , Andreas Schaufler , Mike Kravetz Date: Thu, 12 Mar 2020 09:33:20 -0400 In-Reply-To: <20200311220920.2487528-1-guro@fb.com> References: <20200311220920.2487528-1-guro@fb.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6 (3.22.6-10.el7) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2020-03-11 at 15:09 -0700, Roman Gushchin wrote: > +#ifdef CONFIG_CMA > +static unsigned long hugetlb_cma_size __initdata; > + > +static int __init cmdline_parse_hugetlb_cma(char *p) > +{ > + unsigned long long val; > + char *endptr; > + > + if (!p) > + return -EINVAL; > + > + val = simple_strtoull(p, &endptr, 0); > + hugetlb_cma_size = memparse(p, &p); > + return 0; > +} > + Here will generate a compilation warning, mm/hugetlb.c: In function 'cmdline_parse_hugetlb_cma': mm/hugetlb.c:5548:21: warning: variable 'val' set but not used [-Wunused-but- set-variable]   unsigned long long val;                      ^~~ Also, the comments for simple_strtoull() in lib/vsprintf.c said, "This function is obsolete. Please use kstrtoull instead."