Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp3264589ybh; Mon, 5 Aug 2019 15:13:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqx1DZSDEXVNDd4YJb7fvIkM0CKQRedNpUckIPYqUeRKlpK/hvP2TuKPFg2r7bjqVob6ZENK X-Received: by 2002:aa7:8108:: with SMTP id b8mr213114pfi.197.1565043232688; Mon, 05 Aug 2019 15:13:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565043232; cv=none; d=google.com; s=arc-20160816; b=a/CXdTd4/AqxqaiFn1MpenD98Nk3cD7pJgpFzcw2cwL/HCT5B22sB6C71Ra4m1vyPU sz4Tg/0KWyYBYNVVTqSqSJ6hHg35OZBxY2RagF7aHfUy5GyNUrlfcTqkqReMTqAMBLzC ob9qsZrqcKu0Ngf/m8Er7ieMDj93nTsZTnOb/F1cnewX+5HtovZ8ZuxqbdN9z20J0IYB GZvkSkwyBHdL804fTR7cjh3jB8viV0ZnDLmQk5jk3P2aU5VT/omL81iD6O/mL8sGRC7L hJgkT6WdHd6g6r8vBFaTVYtmL9Tu9Gp0OGc+5wQ8Pit7695EXJqbyfCDtdTzcdTne/uY i+7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:date:cc:to:from:subject:message-id; bh=QgI5xqmzxbfcXO0Le7eTrPMUPUx6qMlr3uuA7Ok9Z6o=; b=sSvr4UAHH9Nr3h9Jyq90HqMZNHvU4VRdlc+XRVQu2sjXTdvp9yscga09d885bYaDOP ONckGagv4OuOujrPZB+Y46sjHNjdkX09oKwW+XAZE++FBMZC2uDblPUrIcUzlS/SN2P5 d5dFa1b0WlvXtXkRsfTFoPQJNuu2Ac9SuLCeViCLYqF5iDiRnZGtcZoxzeTsk4cFTQ15 5aVUkP+rz8kU8teDw/0z53SPVRLagkIufLwT3lx69Ay1P44Yzxp/9CDk+gLKLhgo/EPR oJRq4BG/qQYk8VJ0hBQe8CXrXoqpEjMfcdhotCMpI786+vMh6C7rm7Vhkul2asYb6/C+ RTKQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w4si39573110ply.247.2019.08.05.15.13.36; Mon, 05 Aug 2019 15:13:52 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730817AbfHEWLT (ORCPT + 99 others); Mon, 5 Aug 2019 18:11:19 -0400 Received: from smtprelay0093.hostedemail.com ([216.40.44.93]:45261 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727928AbfHEWLT (ORCPT ); Mon, 5 Aug 2019 18:11:19 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay04.hostedemail.com (Postfix) with ESMTP id E18A0180A76ED; Mon, 5 Aug 2019 22:11:17 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::,RULES_HIT:41:355:379:800:960:967:968:973:988:989:1260:1277:1311:1313:1314:1345:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:1801:2393:2525:2559:2563:2682:2685:2828:2859:2902:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3165:3352:3865:3866:3868:3870:3871:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4321:4605:5007:6119:7903:8660:9025:10004:10400:10848:11026:11232:11473:11658:11914:12043:12114:12296:12297:12438:12555:12679:12698:12737:12760:12895:13069:13148:13161:13229:13230:13255:13311:13357:13439:14093:14097:14181:14394:14581:14659:14721:21080:21451:21627:30054,0,RBL:23.242.196.136:@perches.com:.lbl8.mailshell.net-62.8.0.180 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:27,LUA_SUMMARY:none X-HE-Tag: cork84_b357bd4e5b2a X-Filterd-Recvd-Size: 2630 Received: from XPS-9350.home (cpe-23-242-196-136.socal.res.rr.com [23.242.196.136]) (Authenticated sender: joe@perches.com) by omf01.hostedemail.com (Postfix) with ESMTPA; Mon, 5 Aug 2019 22:11:16 +0000 (UTC) Message-ID: Subject: [PATCH] Makefile: Convert -Wimplicit-fallthrough=3 to just -Wimplicit-fallthrough for clang From: Joe Perches To: Linus Torvalds Cc: "Gustavo A. R. Silva" , LKML , clang-built-linux@googlegroups.com Date: Mon, 05 Aug 2019 15:11:15 -0700 Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.5-0ubuntu0.18.10.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A compilation -Wimplicit-fallthrough warning was enabled by commit a035d552a93b ("Makefile: Globally enable fall-through warning") Even though clang 10.0.0 does not currently support this warning without a patch, clang currently does not support a value for this option. Link: https://bugs.llvm.org/show_bug.cgi?id=39382 The gcc default for this warning is 3 so removing the =3 has no effect for gcc and enables the warning for patched versions of clang. Also remove the =3 from an existing use in a parisc Makefile: arch/parisc/math-emu/Makefile Signed-off-by: Joe Perches --- Makefile | 2 +- arch/parisc/math-emu/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5ee6f6889869..a3985421fd29 100644 --- a/Makefile +++ b/Makefile @@ -845,7 +845,7 @@ NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include) KBUILD_CFLAGS += -Wdeclaration-after-statement # Warn about unmarked fall-throughs in switch statement. -KBUILD_CFLAGS += $(call cc-option,-Wimplicit-fallthrough=3,) +KBUILD_CFLAGS += $(call cc-option,-Wimplicit-fallthrough,) # Variable Length Arrays (VLAs) should not be used anywhere in the kernel KBUILD_CFLAGS += -Wvla diff --git a/arch/parisc/math-emu/Makefile b/arch/parisc/math-emu/Makefile index 55c1396580a4..3747a0cbd3b8 100644 --- a/arch/parisc/math-emu/Makefile +++ b/arch/parisc/math-emu/Makefile @@ -18,4 +18,4 @@ obj-y := frnd.o driver.o decode_exc.o fpudispatch.o denormal.o \ # other very old or stripped-down PA-RISC CPUs -- not currently supported obj-$(CONFIG_MATH_EMULATION) += unimplemented-math-emulation.o -CFLAGS_REMOVE_fpudispatch.o = -Wimplicit-fallthrough=3 +CFLAGS_REMOVE_fpudispatch.o = -Wimplicit-fallthrough