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 X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 96607C433DB for ; Wed, 30 Dec 2020 12:43:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 69CC920715 for ; Wed, 30 Dec 2020 12:43:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726658AbgL3Mn3 (ORCPT ); Wed, 30 Dec 2020 07:43:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726203AbgL3Mn3 (ORCPT ); Wed, 30 Dec 2020 07:43:29 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC137C061799 for ; Wed, 30 Dec 2020 04:42:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=GFv7dLiw0NpGHZG0c6KE16f5Mn2s1/PKG0D3EAXZlPg=; b=uN/ggEkRMYWqEeLgaDS0WEauPE ovr2dGeW22qLxFinoQ3HQw/jht1QBOn3NHnINc7l6Febx4iec63rXVLHg0MsNjAmB2lH3CpcwdhHp ydmxXJH98wiYjyMvX1jeaFpRMSchSy5sTWnjoZdvWq8UWYSKojnT8ShdhTyinN3UnduhQMdAgplaw Ri+P6xo1M/rdZXBdXZsJY7mjelKw3iCYuim786Zvre4qNWFxEWOlvA2SR06bubgHDXnrE/lS6NgK9 cyG+mpGFBuquSvUm/u/1RdkIImRIID0m7Z3KnwkNdAHsYxa6vd22CjTkubmagNl4e3d7LRoxlgkH2 +skMHlKA==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1kuaoD-001IVR-LA; Wed, 30 Dec 2020 12:42:34 +0000 Date: Wed, 30 Dec 2020 12:42:33 +0000 From: Matthew Wilcox To: Hui Su Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Michal Hocko Subject: Re: [PATCH] mm/page_alloc: remove the static for local variable node_order Message-ID: <20201230124233.GE28221@casper.infradead.org> References: <20201230114014.GA1934427@ubuntu-A520I-AC> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201230114014.GA1934427@ubuntu-A520I-AC> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 30, 2020 at 07:40:14PM +0800, Hui Su wrote: > local variable node_order do not need the static here. It bloody well does. It can be up to 2^10 entries on x86 (and larger on others) That's 4kB which you've now moved onto the stack. Please, learn more about what you're doing. I suggest sending patches to drivers/staging; that will help you learn how to submit patches to linux.