Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp259955ybl; Thu, 15 Aug 2019 16:53:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqxLU2rRfTyH0GnN3RfdVYAC/dmwuookKlhuqMnivbqoYdgILkExc9/2I6ASzrDqmRYw0dnG X-Received: by 2002:a17:902:fe86:: with SMTP id x6mr6159784plm.73.1565913239313; Thu, 15 Aug 2019 16:53:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565913239; cv=none; d=google.com; s=arc-20160816; b=oeaAm03zWcDFURfCTl6L0vHmc4dsAzKSnJLXg7blCadDIh85q9LXuuT/X7sQlBJhOB /u4CTFQbw/6YiQzGtNF/5mNbu5WGcVGTRuJY+WGvHxpu6G8QJC1WsCCj2QJmGhD+nYxb W/9JPDAulgCbfvPMAMZWHhv9r4W6J6TmpNAI3NiUHOnut5Sttt/m5VEnzPA4mevpM5Wr YsvEK9PlxIAu7zJmHhrUYhhsyrtne3axOIkLDvA2hYWLf4F8oiEvVFhF+ynbKWXhLIMo RKKIR9iSFG8LOLwUtomiZ+rqY/4UzohaHKvdEfVrHGeCeQq0wTLag79Gawqmrtp+8UOb SGNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature; bh=bsc+oL3W9Qap3NqyiuNHWglQP2bNTVPp35x6p7f/ATk=; b=ZSz3R2ibXQxMeEF/jrolYYBlkuxwXM7fQZ39YdixwmGRZx8IJ8IQBtxIB6KtNiCcZr lQcvl+iXqMvJuZKpMTV5bxwqFhB3GTj3icYQjTm0tKzc8NsNnEMDKkIezvf6WdYTRSph LPYl4KKs/W7Vpg5yPeDpHAj3HbDg5JBXzuWAYAhTZvjy2snT18XMNSsjsW/P4wgXqhB5 aeyEl3VdcrLEudCUeeQE9WE5ZqmBTo+YL+J5C+BWjixPwyIErUTNRGz/JFYDuJnPb/Rc 0wnq65rCZGIxb+CPHq/VDaDHQZz5WDk3MDix8PGNMKm7F55ZIdH8JvdmV8dDT116t4Jw E7FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=D+oh9EMl; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n1si2632548pgn.77.2019.08.15.16.53.43; Thu, 15 Aug 2019 16:53:59 -0700 (PDT) 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=@google.com header.s=20161025 header.b=D+oh9EMl; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387503AbfHOW7L (ORCPT + 99 others); Thu, 15 Aug 2019 18:59:11 -0400 Received: from mail-pl1-f201.google.com ([209.85.214.201]:54846 "EHLO mail-pl1-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732541AbfHOW7K (ORCPT ); Thu, 15 Aug 2019 18:59:10 -0400 Received: by mail-pl1-f201.google.com with SMTP id g9so2138198plo.21 for ; Thu, 15 Aug 2019 15:59:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=bsc+oL3W9Qap3NqyiuNHWglQP2bNTVPp35x6p7f/ATk=; b=D+oh9EMlMt/QrNGNxmKtbHKxtThq4UQj8l+9apxFZP4dZXqtTpOJs9bJLmToApG59S GaOY6ObFUzKYpVIG9qdvaiG0+kZuwnpwJw8LK23gCHiVWgXJtibE17rzKZox21eWijh2 ciaSQNYIJbqYg7VZa9USfTiUlCTe26mCTeT/9e40VkPiYHibcjbOvK4BJCgdic37Nebe xOvvGO9Ob0Advw2z3JY/EUdh+RhFtDLU6IhE7uGqF84dsk7ImMtLOvuZPmQ0LhNJfki5 eyi5ukjCrDZC8GDJxetUCfuWb6/MWSKsotN7XWqqukpiQJqO9StPF50y0Dg/Hc9+jJeO 2rnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=bsc+oL3W9Qap3NqyiuNHWglQP2bNTVPp35x6p7f/ATk=; b=J4kX8M8STsd83Bo5OVpg57qRiqP+M4vr5XWqyfaBg5kkU82Geb89O5PObUg8Fe8Unj gb/fSPIjru9a/YKot+TdynveZoOuyxvwl5eZGF4lRou1QNt8wpp10/i32mQxzJ8QgjBy dDO35IppR6pM2tDoDAQImpMSwqFhtjm1bdACQmD4LYbnc3CuHQhLOJaH5OqUco9LHzNi Fch2FmlEC0qwffI2SS3tk/Fk9UpccuM8lJnKrKGo/rZqcjSgaBjzM28dMhQ0gLIdcc7h fOQ4pVM8aw03vVBp4DsGTqLyufcFLKr9qVsCUHpT0XBpi9SCS2Uhky1fw2qJG4oF2Tj6 3n4A== X-Gm-Message-State: APjAAAVvozkw+1kjxafpZTiGiQ1JxvWEsU+sclK9QBrT7o5cZnJNGv6M T+m4zvrocY7pgA95ZnDtJrH1S2DC4Q== X-Received: by 2002:a63:c442:: with SMTP id m2mr5399788pgg.286.1565909949663; Thu, 15 Aug 2019 15:59:09 -0700 (PDT) Date: Thu, 15 Aug 2019 15:58:44 -0700 In-Reply-To: Message-Id: <20190815225844.145726-1-nhuck@google.com> Mime-Version: 1.0 References: X-Mailer: git-send-email 2.23.0.rc1.153.gdeed80330f-goog Subject: [PATCH v2] kbuild: Require W=1 for -Wimplicit-fallthrough with clang From: Nathan Huckleberry To: yamada.masahiro@socionext.com, michal.lkml@markovi.net, joe@perches.com, miguel.ojeda.sandonis@gmail.com Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, Nathan Huckleberry , Nathan Chancellor 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 Clang is updating to support -Wimplicit-fallthrough on C https://reviews.llvm.org/D64838. Since clang does not support the comment version of fallthrough annotations this update causes an additional 50k warnings. Most of these warnings (>49k) are duplicates from header files. This patch is intended to be reverted after the warnings have been cleaned up. Signed-off-by: Nathan Huckleberry Suggested-by: Nathan Chancellor Reviewed-by: Nathan Chancellor --- Changes v1->v2 * Move code to preexisting ifdef scripts/Makefile.extrawarn | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn index a74ce2e3c33e..95973a1ee999 100644 --- a/scripts/Makefile.extrawarn +++ b/scripts/Makefile.extrawarn @@ -70,5 +70,6 @@ KBUILD_CFLAGS += -Wno-initializer-overrides KBUILD_CFLAGS += -Wno-format KBUILD_CFLAGS += -Wno-sign-compare KBUILD_CFLAGS += -Wno-format-zero-length +KBUILD_CFLAGS += $(call cc-option,-Wno-implicit-fallthrough) endif endif -- 2.23.0.rc1.153.gdeed80330f-goog