Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3251698imu; Sat, 24 Nov 2018 01:05:59 -0800 (PST) X-Google-Smtp-Source: AJdET5duLihKLq5pn5dHO6FLUWzsd5thX/XmpoS/tJdiU5shBJOUTobHs553JE9x9ebNVFhiMiz/ X-Received: by 2002:a62:1541:: with SMTP id 62mr19498746pfv.230.1543050359651; Sat, 24 Nov 2018 01:05:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543050359; cv=none; d=google.com; s=arc-20160816; b=Z8qrMca7U6RYsAQ7jsNncLKGX/cAbK2h8qbBSXjsPtZemRBiC/qTOw1hWShfrNj2ew Ajw35ujHMfRu5VMztLDP3j+uMpNqh5A3q8ykF02S0QA5jKIFVnM1iHhU4+h7ZG8R3/kb jbnPt2BtudAjVJBLJJgOyyMmfMdo1rOhJqAIOKw6usvwadTHiCNFip9EzyEOtuywkbFM A8WBakp796gp1e7czPq5hPeTDnLFyzDgUqJ66QIfxTPQpzTA6MbJZGxVuKqcwNlId7Sp SsfkcwoRSDXgNz5hkK7SfidbdqzHOZ8bx9+EvvUsk4QeVqYkY5Xa2mqj5RnJS8Ff5/E0 okFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=XuO3cCnBgi4a+nzaNlWwyIDAzoqgA7kwlXEq0ELHFjw=; b=uQcAQOwohvyhsLZFJ+aH1e2lVo1a8z0orJ1AG8iIfr3tzmNPdZEflHq0wvRVP6uWMm Nd8549P1X/6OixOlc2OBBiEFRG48pyHvHl+fSZhczaYIOcTgirHOgEbBcaR0cuM8ti31 7Vi0uJzSoOafPt4vZfA31F0A+kU5wk62T+SfFlPE4DnKjA3m0oeJovaj4ZjgP2SkGQy4 nCAXSeAbMgGC3xwNq6nOJ2V0ZR0U4yjScJcDaPT3mBY9yoDep1O+8ggJSlH8X0NYQfX2 UMLQXRiQ3lpnQEdNmN9kUCPQe4Hzef/DyyJQjNAiiszPc/HgaJKUcaAeeJ6RwxORyXTV XFkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vIfjZDQD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id b18si40463438plz.105.2018.11.24.01.05.45; Sat, 24 Nov 2018 01:05:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vIfjZDQD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1728222AbeKXTEo (ORCPT + 99 others); Sat, 24 Nov 2018 14:04:44 -0500 Received: from mail-lj1-f193.google.com ([209.85.208.193]:33316 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727309AbeKXTEo (ORCPT ); Sat, 24 Nov 2018 14:04:44 -0500 Received: by mail-lj1-f193.google.com with SMTP id v1-v6so12410267ljd.0 for ; Sat, 24 Nov 2018 00:17:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XuO3cCnBgi4a+nzaNlWwyIDAzoqgA7kwlXEq0ELHFjw=; b=vIfjZDQDdai+WqXgqcYHzifpLYjtArHIe/vWcae9RIciUvIbBCv/+r81qWQ/hsKJiD NEz80TQV1R/rRTPhhBYtb37tPS22ULzF7YADl4Lc8ASkVUjZ12wg6iXDXEpX5m8mlW78 CLVunfK5q9IwhAJQ7Fz1eVeB6K17j8S2e8Oss2Auz+OfziFcNjdNznsovn1nmjidoUxp m14vDaR+tk/lTgRS6/8g+toKJFE5yEW6Y6CWUTKgdsqFdI4bnnb83hszuJuFkaZwBEt7 wvTcSlinwDh5Lm237ycRiFSL0aCdUyFHiL6LAF1GGE5jYVyJO4H1dUzPqbs3vyRfYtKF PePw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XuO3cCnBgi4a+nzaNlWwyIDAzoqgA7kwlXEq0ELHFjw=; b=ffRGKFzNMsix810KtegxYT8LYVGTHL+v8Yk21TQrHXEdaCw4R4BTRNRsgPHmI5h+uL kln9ihtF+XGYt+oYnv+kzw4GTIASkrKf9gPqWKssh3QyUmKQnpBj+ikqGlhj8YFA/u7k K2OjtImoCVfe/u1wKSEPt5B7TAxzXiM8V/kpKRWspTopNaU738jEINIbUv+fMlTr/zS/ zIuwJFspcXXXWdW4WBlyqMIrFsGZWnVtpf39oTAHnYnGu/NGeKokITq+BmzJjSqaj1xP kX8NrD1WyQvWEFNLoOwR8Ne0DyLpnZ6iw+qW7YzqLvTzVKXTEWJfSbMPn9ioOLFffGt1 5ifQ== X-Gm-Message-State: AA+aEWaUMoBaRAMEih+db7xqcnw5zkrGckeU8lDeVjrWVzdK2OKqzEEl zTDbVnrTUQ9PR470g5EoUgnOCZWNnfTiZ+VX+HE= X-Received: by 2002:a2e:908b:: with SMTP id l11-v6mr10373996ljg.150.1543047421031; Sat, 24 Nov 2018 00:17:01 -0800 (PST) MIME-Version: 1.0 References: <1542856462-18836-1-git-send-email-yamada.masahiro@socionext.com> <1542856462-18836-2-git-send-email-yamada.masahiro@socionext.com> In-Reply-To: <1542856462-18836-2-git-send-email-yamada.masahiro@socionext.com> From: Miguel Ojeda Date: Sat, 24 Nov 2018 09:16:50 +0100 Message-ID: Subject: Re: [PATCH v4 2/3] build_bug.h: remove negative-array fallback for BUILD_BUG_ON() To: Masahiro Yamada Cc: Andrew Morton , Luc Van Oostenryck , Nick Desaulniers , Kees Cook , josh@joshtriplett.org, linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 22, 2018 at 5:15 PM Masahiro Yamada wrote: > > The kernel can only be compiled with an optimization option (-O2, -Os, > or the currently proposed -Og). Hence, __OPTIMIZE__ is always defined > in the kernel source. > > The fallback for the -O0 case is just hypothetical and pointless. > Moreover, commit 0bb95f80a38f ("Makefile: Globally enable VLA warning") > enabled -Wvla warning. The use of variable length arrays is banned. > > Signed-off-by: Masahiro Yamada > Acked-by: Kees Cook > Reviewed-by: Nick Desaulniers > Tested-by: Nick Desaulniers Didn't see v3/v4 (wasn't CC): Acked-by: Miguel Ojeda Cheers, Miguel