From mboxrd@z Thu Jan 1 00:00:00 1970 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 210BFECAAD5 for ; Sat, 27 Aug 2022 01:43:46 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B994594000A; Fri, 26 Aug 2022 21:43:45 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B47ED940007; Fri, 26 Aug 2022 21:43:45 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A105E94000A; Fri, 26 Aug 2022 21:43:45 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 8F118940007 for ; Fri, 26 Aug 2022 21:43:45 -0400 (EDT) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 66FBF1A03F2 for ; Sat, 27 Aug 2022 01:43:45 +0000 (UTC) X-FDA: 79843676010.21.313A266 Received: from out2.migadu.com (out2.migadu.com [188.165.223.204]) by imf17.hostedemail.com (Postfix) with ESMTP id 0ACEB4002A for ; Sat, 27 Aug 2022 01:43:44 +0000 (UTC) Content-Type: text/plain; charset=us-ascii DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1661564623; h=from:from: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; bh=0RTEWm3uyiGP4J2hC5/NyYzqSZHqjebTcTa8uhbEHps=; b=uFM8I5YLtVA8xYGw0EWifPpQrGyUwpOFxY9BXm2vGlLH3OkyENeswqTKXi0eB5e87iNUSu AORrJkeOzmck9SnT0m/Bv42ZNdkfpzAS0wqZXHo/Nx3yFj+oCm1NNGwFYaho263yvEfpPE t0IGCUmvX9mh4LJf3/uc7bvn9rfCl5Q= MIME-Version: 1.0 Subject: Re: [PATCH 04/10] hugetlb: Use sizeof() to get the array size X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Muchun Song In-Reply-To: <20220826092422.39591-5-linmiaohe@huawei.com> Date: Sat, 27 Aug 2022 09:43:39 +0800 Cc: Andrew Morton , mike.kravetz@oracle.com, Muchun Song , linux-mm@kvack.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: 7bit Message-Id: <1D759956-F47F-4208-8ED5-84E2A68FF97E@linux.dev> References: <20220826092422.39591-1-linmiaohe@huawei.com> <20220826092422.39591-5-linmiaohe@huawei.com> To: Miaohe Lin X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1661564625; a=rsa-sha256; cv=none; b=Jc1bon2QsKjqlFOu5qpXHNZu76etuo2Yeiwg5pOWaaEplskwX40w5KuUCXpCJ3MbgwDHPI IAXSvymrSVt5oHOr8PpkIOoY7yeU+KAidTwdrK5ADbZPJM2dr7Ke0/vXJRIvRvYBu5AYt0 nbCq6Bg6WKXmn0OiMiRXGTucau7tKfY= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=uFM8I5YL; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf17.hostedemail.com: domain of muchun.song@linux.dev designates 188.165.223.204 as permitted sender) smtp.mailfrom=muchun.song@linux.dev ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1661564625; 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=0RTEWm3uyiGP4J2hC5/NyYzqSZHqjebTcTa8uhbEHps=; b=2BnTm8ewUUiHFtvXhiSHaNHPzHMcLgxISwEBQl1MKHGEGOBw/OAHyTPHBLIMc3wt3U4oJe RgSRYsDr8Kn13F5QpNuhjp5dqhovlq+Uv+vDarNa/jU9BRw294jdIDtHrZkRZAGGYt2INO hl32XRRSW1lFhkDqfPuVGFACWhLb1gY= X-Rspamd-Queue-Id: 0ACEB4002A Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=uFM8I5YL; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf17.hostedemail.com: domain of muchun.song@linux.dev designates 188.165.223.204 as permitted sender) smtp.mailfrom=muchun.song@linux.dev X-Rspamd-Server: rspam12 X-Rspam-User: X-Stat-Signature: b4zx1xresdtn55mmns899ypzhoma7bbk X-HE-Tag: 1661564624-346758 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: > On Aug 26, 2022, at 17:24, Miaohe Lin wrote: > > It's better to use sizeof() to get the array size instead of manual > calculation. Minor readability improvement. > > Signed-off-by: Miaohe Lin Reviewed-by: Muchun Song Thanks.