Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp419685rdb; Thu, 5 Oct 2023 09:33:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGVJEAokMou92m5RRbJOnzeO7RhHNLS7jVdBPSZutOsOZw9upqUYhM4e1W44wBVEYaL6WmR X-Received: by 2002:a17:90a:8a85:b0:274:abbc:4ef2 with SMTP id x5-20020a17090a8a8500b00274abbc4ef2mr5267895pjn.30.1696523614243; Thu, 05 Oct 2023 09:33:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696523614; cv=none; d=google.com; s=arc-20160816; b=gdbdm751oTIQ8Ovgu80TjKMyhW8F37Q98ZKH2hd5aDLS5AzZ0e+W4UuL6PoQlTV1wj JLuJc30oFHhPhcaY+RFqh154Fx+I3WAF/yXYJPXmUCcWAcUHnlZcYijbJ+tA09JTRhiM VSuYMe3kG5YADiQPEU91Lpy6RPEplr1WSETUcfwljQd5jsnAo6++8T/N6yB00vdSwV0V i/p8pVulZ7Ahs4KBYY/Oi4CjbyUgsil3o40kZdu4rcdA3w+PRETOz0di6OZ/vC1oI2Px L6d5MC4CQ/Mz+7VLk8vBbJR/Ck7nkhh91bo7+w2oHaUPD2RQ1v77EyhI/cmGYv3lj2x4 g0nw== 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=5xlZdjuRZ3EiS5hUIS3cheCtDGn4hllvnDuk1YtIiL8=; fh=mYFv4aeZ5xIGbt6NZ5qAouFuFh2wshFQoap9e9+ArgE=; b=ngQa0LHSxFuOdcWZEvqWwWswZyN02FwICVxGleGPqjTy++iSlioWiqPemU3+krByFm DvK/V2BJiIR+pDBfRfS4nxebv+uthtootipvgTOMlOWrs7wOwFs+dd/rbdaL7hq6SM8p O/FjvJLNG1PxhPdEXwAwIgTcKdTQ/APsc9RYZIf1P559Qy+j2m70bMF2ze+cLIzKZiWT m0+zaAIlE2ASoXmVIy+5rQleVKW/Yc5ai6Hxjlli7gyFs3UygDi2se2+TO/GbdgTcC3h EFKOIMQ+SiCWxvz6wGURhTTPr1er0Ae/0kOjPhZzlddbWBgyiXUEEoiGbCpkCzcvhVKm rQOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=iQIwcjDt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id x8-20020a17090aca0800b00268278c51e3si3983738pjt.49.2023.10.05.09.33.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 09:33:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=iQIwcjDt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id AE0E9807DE2F; Thu, 5 Oct 2023 09:30:27 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239574AbjJEQ3E (ORCPT + 99 others); Thu, 5 Oct 2023 12:29:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244322AbjJEQ06 (ORCPT ); Thu, 5 Oct 2023 12:26:58 -0400 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 291F11BF for ; Thu, 5 Oct 2023 09:22:02 -0700 (PDT) Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-694ed84c981so946977b3a.3 for ; Thu, 05 Oct 2023 09:22:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1696522921; x=1697127721; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=5xlZdjuRZ3EiS5hUIS3cheCtDGn4hllvnDuk1YtIiL8=; b=iQIwcjDtUcQ5B7rrH39U4s3CYqxQgzRv+yOXK4ffX/PQ0bDtRpArNZ3ZP0TU2V+iSO EjiiE4Siown06hQ3iW692SiwY8IgnChw/Xl4jVtIOppxjoQDRYRrbDozpzSnFelVSbBG Iz5FDOl0ifwGXffc1W0e6+GEtk1pg6ONmqSHI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696522921; x=1697127721; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=5xlZdjuRZ3EiS5hUIS3cheCtDGn4hllvnDuk1YtIiL8=; b=PzsaKacf2mbz8M4tal+81Qszms8iuVLhZR4avnDUGQsYkNVmamHZtHi8yPUeEAU2SF 2OkIjf0fMrfr/xP43cKEbpKzd6m5AcvhmjDwTnRj/v40nkejJ9xPj87VQ0efXflRkXpy IF27Iii57CLVB4fbtWSK7idbED1XriP/l/k+1tfXoTzUE6iFCtcBu2gzpICkkYSYHPi6 RQZg5FG8OZhLrYcS4gagBMYZQRmkH26LViXORwaAX6V1UZUW0FsHUxLobiGUB8xFSIyE hrj5lYmCWTdIms/ZFZZhfUmTr1liJj4hm//B/mg5RTJtVdIaZ7cRMlv7y376Xlxxy1Cd y8Mg== X-Gm-Message-State: AOJu0Yz7Q0K8tophiCx6pIze/iCCYFERVZAzVpSR5ZHDuI4UssTuSduh KKZ8PdD6aKWm/B/FugRPUJntvA== X-Received: by 2002:a05:6a20:8f26:b0:159:fe1d:2f32 with SMTP id b38-20020a056a208f2600b00159fe1d2f32mr6782722pzk.42.1696522921110; Thu, 05 Oct 2023 09:22:01 -0700 (PDT) Received: from www.outflux.net (198-0-35-241-static.hfc.comcastbusiness.net. [198.0.35.241]) by smtp.gmail.com with ESMTPSA id j23-20020aa78017000000b0069305627494sm1568468pfi.165.2023.10.05.09.22.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 09:22:00 -0700 (PDT) Date: Thu, 5 Oct 2023 09:21:59 -0700 From: Kees Cook To: David Laight Cc: "linux-kernel@vger.kernel.org" , "'linux@rasmusvillemoes.dk'" , 'Steven Rostedt' , "'bvanassche@acm.org'" , "torvalds@linux-foundation.org" , Nathan Chancellor , Nick Desaulniers , Arnd Bergmann , "akpm@linux-foundation.org" Subject: Re: [PATCH v2 next] compiler.h: Move __is_constexpr() to compiler.h. Message-ID: <202310050921.F0B15702D4@keescook> References: <2a6680bbe2e84459816a113730426782@AcuMS.aculab.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2a6680bbe2e84459816a113730426782@AcuMS.aculab.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 05 Oct 2023 09:30:27 -0700 (PDT) On Thu, Oct 05, 2023 at 11:39:54AM +0000, David Laight wrote: > Prior to f747e6667ebb2 __is_constexpr() was in its only user minmax.h. > That commit moved it to const.h - but that file just defines ULL(x) and > UL(x) so that constants can be defined for .S and .c files. > So apart from the word 'const' it wasn't really a good location. > Instead move the definition to compiler.h just before the similar > is_signed_type() and is_unsigned_type(). > This may not be a good long-term home, but the three definitions > belong together. > > Signed-off-by: David Laight Yeah, this is what I'd expect (a duplicate move in tools/). Thanks! Reviewed-by: Kees Cook -- Kees Cook