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.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 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 28C41C433B4 for ; Tue, 11 May 2021 08:37:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F189E6186A for ; Tue, 11 May 2021 08:37:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230406AbhEKIi3 (ORCPT ); Tue, 11 May 2021 04:38:29 -0400 Received: from mx2.suse.de ([195.135.220.15]:57396 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229995AbhEKIi2 (ORCPT ); Tue, 11 May 2021 04:38:28 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 31633AFC2; Tue, 11 May 2021 08:37:21 +0000 (UTC) Subject: Re: [PATCH v2] mm: kmalloc_index: make compiler break when size is not supported From: Vlastimil Babka To: Hyeonggon Yoo <42.hyeyoo@gmail.com> Cc: Matthew Wilcox , cl@linux.com, penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20210508221328.7338-1-42.hyeyoo@gmail.com> <20210510135857.GA3594@hyeyoo> <9d0ffe49-a2e2-6c81-377b-4c8d2147dff8@suse.cz> <20210510150230.GA74915@hyeyoo> <90591d7e-41e4-9ae5-54ae-ded467c498cf@suse.cz> <20210510153846.GA77398@hyeyoo> Message-ID: <38725980-4f69-a7d7-35c0-6c4ff2e01cfe@suse.cz> Date: Tue, 11 May 2021 10:37:20 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/11/21 10:36 AM, Vlastimil Babka wrote: > On 5/10/21 5:38 PM, Hyeonggon Yoo wrote: >> On Mon, May 10, 2021 at 05:19:58PM +0200, Vlastimil Babka wrote: >> >>> I'd rephrase the subject: >>> mm, slub: change run-time assertion in kmalloc_index() to compile-time >>> >> >>> "... compiler will generate a run-time BUG() while a compile-time error is also >>> possible, and better" >> >>> "there's no need to..." >>> kmalloc-32M >> >> >> Vlastimil Babka and Christoph Lameter, thank you for reviewing the patch. >> >> I'm not familiar with kernel community yet. should I send patch v3 again, >> or can you update it directly? > > I think it would be best if you sent v3, the way you did with v1 - inline. With > v2 it looked like a mail body with you message and patch as attachment. We want > the testing bots to pick it up and they might work only with inline patch. Thanks. Ah, you already did. Good.