Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp263385ybl; Thu, 15 Aug 2019 16:58:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqz/sgBG2egR3ypOqIJVBKDvurgGf7RdpFOvGorCU5YP/h8/22ZLyU7wAfevOiRqLaFA+VtE X-Received: by 2002:a17:902:f217:: with SMTP id gn23mr6543876plb.21.1565913528261; Thu, 15 Aug 2019 16:58:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565913528; cv=none; d=google.com; s=arc-20160816; b=SwTN4HMvbeg4vsz7E60SX+058FGfQTgj0KGGxH21npSRe2PWXjxIZi7DoEjlRk4ZAx C0TVqcf4bJtQXVSEzgXMGUO3+pQFZnstojQqA7vqJ+u+ZZySpcILaKshbXUP/r3NiVEr RefniEzC/GvvtIFIDpOJS4g+5Fs/GscwVHIcoezFrCYvUF12zqu6FEp1pYMRYO3TOV6p qswMpap6YS2rC2z7bfdEa5Zu8fzJlPEo4eTLCcHqQvCTyVPXvg7ySgkaNBHm560fq2cS UHvRMjeqWmb0xXAFQsc6N8UrtdzBYvcedl2rqga+JCIJfV33Eiluld08E16DpH3o+dOZ qBQQ== 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=uUR8sKJAysqvgde7a/GEolWZUsjVUl8S+CBNn4ZSzd0=; b=jFsSLD8ffFtbec32ZrV9G41As59658GVKIwMQRrD1niQabcz/kQXQbjJRpFqr/3hmy 8nbOYTaOOSAHrMOyTcDtVwUUUfTy6PeRLGE6Lny05/5LWt6pZwQnFEVV2XUHEqqwsrCi PygLL5IRFxRTGOjLkphdd3q91N2kILEQLIFaxrYGgk5CT6UV5TX95bvnLAUf8igWooFI sUJMQIdonsbeax4IUxjftRT102xhBAzGnaNoj1yAd/Oqd3AFdWhiYNmSC5/nFkWBSXDI WobkLJZiMAYhjQsUxxmindR2ikjc1UbwO0vcRhL1gTiIRchHGjGd1Khl2SLtRqmYQzIG jDRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="H/e1PI8t"; 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 h9si2610460pgp.435.2019.08.15.16.58.32; Thu, 15 Aug 2019 16:58:48 -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=@gmail.com header.s=20161025 header.b="H/e1PI8t"; 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 S1726571AbfHOXyN (ORCPT + 99 others); Thu, 15 Aug 2019 19:54:13 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:45378 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726504AbfHOXyN (ORCPT ); Thu, 15 Aug 2019 19:54:13 -0400 Received: by mail-lf1-f66.google.com with SMTP id a30so2804399lfk.12; Thu, 15 Aug 2019 16:54:11 -0700 (PDT) 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=uUR8sKJAysqvgde7a/GEolWZUsjVUl8S+CBNn4ZSzd0=; b=H/e1PI8tnfZHbSVcmTI3ZlTz/NDKqEbLupqbUDm6SFLMikorKxQDrI8jM2bw5Cj7Wc TkYmvKSsRqQP2MCg8Dy7LCRf/YOmveTd+sT2G7ZSy1J6gVDwdjfM4X9bZ4M5BqdF4tyR fX9+0BehG9+13N6ZvdPeFLilu7xbfpNB6vQNCFsc0+qNDDTu0rPjUPmvKcKhRcoGStno tUWQigjrXp/5PKkO6sOwRv8TMTGG3Qq3gBU8T5y/4hHl/2zuhwB3SjhIKBQMGl04GTeJ kSfiG+khAqeTuWG+3Yie+lr8E8HdE5ZhSb/+gRCBl019IGJF5r+SLn1JB+ta7wGJxeGb AvFQ== 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=uUR8sKJAysqvgde7a/GEolWZUsjVUl8S+CBNn4ZSzd0=; b=YwmDYKjBPUlYyHXTDgWJ6Ll4es+Uc8BHOdzzDdq9EBbr18bbTl22q6iOHj/0xBn5ZK TKQM4ybqUMpu5Wshoyru8bANN8anHyYt88MZDCobGDn+zsqgE4uGoNsOX8r2ssbMCb63 gyWb8NdCC65M1I51/Gl2yPjqODsovwDpsMjbXcLHD4f6RX8VCfSbFg1x6bscC3CmFPAR p9rPSt2RXY+Xl6MtNJcvhOISPw6An+MDkRQYSI8jRGBzq8xInQ4uGlBe5r3qWBE0j8AS Z+9uTIhpXZnzImgy3CIboxjii/TLxnLxffIXi9dsaWy89oobEU66nXDaQelBiQuC67oi JfKg== X-Gm-Message-State: APjAAAWQCFPSYTwO0QG91Fm2Xqj5FPT4ZxjckJznBfEtWtP/1X5S3A0W xZCoyJfEghGmZNjv2HyqkFBActAQ3axHJwzfEWc= X-Received: by 2002:ac2:4157:: with SMTP id c23mr3561969lfi.173.1565913251168; Thu, 15 Aug 2019 16:54:11 -0700 (PDT) MIME-Version: 1.0 References: <20190815182029.197604-1-nhuck@google.com> <20190815204529.GA69414@archlinux-threadripper> In-Reply-To: From: Miguel Ojeda Date: Fri, 16 Aug 2019 01:53:59 +0200 Message-ID: Subject: Re: [PATCH] kbuild: Require W=1 for -Wimplicit-fallthrough with clang To: Nick Desaulniers Cc: Nathan Chancellor , Nathan Huckleberry , Masahiro Yamada , Michal Marek , Joe Perches , Linux Kbuild mailing list , linux-kernel , clang-built-linux 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 Fri, Aug 16, 2019 at 1:05 AM Nick Desaulniers wrote: > > On Thu, Aug 15, 2019 at 3:59 PM Miguel Ojeda > wrote: > > > > On Thu, Aug 15, 2019 at 10:45 PM Nathan Chancellor > > wrote: > > > * Revert commit bfd77145f35c ("Makefile: Convert -Wimplicit-fallthrough=3 > > > to just -Wimplicit-fallthrough for clang") for the time being and just > > > rely on adding -Wimplicit-fallthrough to KCFLAGS for testing. > > > > I would avoid applying commits that will have to be reverted just for > > Clang, particularly since it is not fully supported yet. > > "not fully supported yet" you say? *drops monocle* > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/MAINTAINERS?h=v5.3-rc4#n4001 By fully supported I mean it already works and people can rely on it out of the box using a released version of Clang/LLVM. Is that the case already? If so, many places need updating! * include/linux/compiler-clang.h should check for the minimum supported version * Documentation/process/programming-language.rst should be updated * https://github.com/ClangBuiltLinux/linux/wiki does not mention anything etc. Cheers, Miguel