Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1355223pxj; Wed, 19 May 2021 04:18:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzByCs6VN3A+wrqEU1DsjWP1sSJpuf32Gu41JHkF/v4dOLvfHr/EulWR0GqqBEdMzTNW6IP X-Received: by 2002:a02:900b:: with SMTP id w11mr9691211jaf.5.1621423114622; Wed, 19 May 2021 04:18:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621423114; cv=none; d=google.com; s=arc-20160816; b=E/4DqILLTsm7dcTSG6eavrgA/PPB3Xxrx7Qm7AZMYCWTOhs0TbJA2Wdnw4nknpMjk0 pdI/LLLDF0fT7dke5C0UTg3K6tU/x8Z7AiWdnIBfRq80kjNcj+6N0m5BqquglmkEY2w+ W0z8oKNzcZSBNNsMeYIY+Vv3lNuLInDKJD5L5rEWGaTpLYqNBGWPk2MiiModf9GoOKFo QxKq8h4DFVuqVHgXLM+kgmSCLTzO17uHZjqgpbUvocWDQdiwmeraQ5xW6lMK8c5UYLtd XJsnaZr4gWJhwnbS4Qn6/Qb5glP6LkayB87tLVVoQd4Ywq//9eZS7ZKrSPRneOCRaenA GDqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=WMZUpa9Z0BMcmL5mgX90Fhx+k+V88TdK0ER3AFCI+UM=; b=UtvUx/0x0bWjLnrD3b6SuRv7Hf//xiCG4SpSfMEiSKzb2mhS4yZ7fvlI7NLmmLAD02 L2EEisKyiHNXXGjmUTL7cSy3ipjQB6Vo/JiecfVhRfpADCqz17XSkayYQayY5otMreMX p36yPjpA+LHxQK6L5nrch5Mcu9ROFy+EsnpcGSe64R0pNUk5ngiwRfhdVraKUKVzHVK1 ERi7jxCJtc6PXIL2bWv/yh/mB5kECo3BxrhcH2doNHGEdvCM1sUAR4orUZ6OGyaq8u0m uvTOpZVFIF8JEFGBuojpjtUs3jveejboms0jPwAJ4MDoeMrGIybmyMom4gYCyEztJD5Z WTZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QHqj6Uar; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l8si25305687iln.109.2021.05.19.04.18.21; Wed, 19 May 2021 04:18:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QHqj6Uar; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240411AbhERBzH (ORCPT + 99 others); Mon, 17 May 2021 21:55:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237984AbhERBzG (ORCPT ); Mon, 17 May 2021 21:55:06 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AD80C061573; Mon, 17 May 2021 18:53:49 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id k5so4670945pjj.1; Mon, 17 May 2021 18:53:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=WMZUpa9Z0BMcmL5mgX90Fhx+k+V88TdK0ER3AFCI+UM=; b=QHqj6UarJ5K4zPbsjdLabFCFPxC0LUTdUej6wmQmpvW3eOpiSG41nDwXrm4pDGlhAi lm+r816X2wkL3rttt5zhmL1VMNSlC+g7tbufzcWQ3/HPGkOeynG8GCezBZ3NHnf1YXPT DNVKSO8kgY3fV/NPfwyJ/7Bvx0sI++Q2Yk9Q4RBw/KZGtl7T3Pe+eKkRPjxigv4Hqtji UplcFXf6mN+5gjySbfyFtmNoa5oqdgV5rn7d5p1jQB84qrFOllY8KwbHQFOqK2+A0l5g 3ta1sNKps6+uVfjq5giBNUmYu9f08S8svVc1Nv+3ayf8a1UQ36iD4fyDtMKREETQ+IYQ fbJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=WMZUpa9Z0BMcmL5mgX90Fhx+k+V88TdK0ER3AFCI+UM=; b=sA5qYvSPiXT2Ry178Nt+Awncm+LjNkodlJkTMUTdAEHmflS22RwuoiYsaFUIOcHBtZ LnOKLY6ij2r0lXQBZB9pAzdm5Sr0c/HxgfRb1EZqtS5c0UHudAK8VRglwZNkhiw/Czpk FODhn+ftqZ3NkXFw5iKjSGTDAd2OBI8NvrpsWfBn8M2VYMNwDuc9IfU1F230JiPRnANz KkkB8mLn7dwso+JTplK5lk9yiMGMsn2YyKsa7X7vLJi4CZEJOl/SlfOxbYxIP6b4oqg1 4jMkFP0+hZD5BIbLOKZVE3YIxUMgxVZhPfFGgefpm2NAntHdE49JcNwJLYKL5/y3vQj2 pv8w== X-Gm-Message-State: AOAM531oBHGDbCz27C7jYXDdsshjsT80poVB/Wpf6eKSQIndoeciHD1P wgz95ioRmLS3Q430WWG9Hjk= X-Received: by 2002:a17:90b:4b0d:: with SMTP id lx13mr2623048pjb.152.1621302828982; Mon, 17 May 2021 18:53:48 -0700 (PDT) Received: from hyeyoo ([183.99.11.150]) by smtp.gmail.com with ESMTPSA id u22sm11245367pfl.118.2021.05.17.18.53.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 May 2021 18:53:48 -0700 (PDT) Date: Tue, 18 May 2021 10:53:41 +0900 From: Hyeonggon Yoo <42.hyeyoo@gmail.com> To: Nathan Chancellor Cc: Vlastimil Babka , akpm@linux-foundation.org, iamjoonsoo.kim@lge.com, rientjes@google.com, penberg@kernel.org, cl@linux.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, naresh.kamboju@linaro.org, clang-built-linux@googlegroups.com, linux-next@vger.kernel.org, ndesaulniers@google.com, lkft-triage@lists.linaro.org, sfr@canb.auug.org.au, arnd@arndb.de, Marco Elver Subject: Re: [PATCH v3] mm, slub: change run-time assertion in kmalloc_index() to compile-time Message-ID: <20210518015341.GB84628@hyeyoo> References: <20210511173448.GA54466@hyeyoo> <20210515210950.GA52841@hyeyoo> <41c65455-a35b-3ad3-54f9-49ca7105bfa9@suse.cz> <20210518003859.GC80297@hyeyoo> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 17, 2021 at 05:43:22PM -0700, Nathan Chancellor wrote: > Ah sorry, that should definitely be >= :( > > That is what I get for writing an email that late... in reality, it probably > won't matter due to the availability of 11.0.1 and 11.1.0 but it should > absolutely be changed. > I have not given Nick's patch a go yet but would something like this be > acceptable? If so, did you want me to send a formal fixup patch or did you > want to send a v4? I have no personal preference. I think fixup patch patch will be better as we can undo it later. I don't think Nick's patch is needed because that code is not related with clang version, and we don't need that code even in clang 10. then is there something I can help for now? thanks, Hyeonggon