Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3986584ybl; Mon, 12 Aug 2019 09:30:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqwAeP/in3Ia1s1OtOxFx93ooiBmVQi/0AiXGB3rJvw2jbMvXtzhVqUNOuXIPW7JXxgmnDqq X-Received: by 2002:a17:902:5c3:: with SMTP id f61mr31222523plf.98.1565627449969; Mon, 12 Aug 2019 09:30:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565627449; cv=none; d=google.com; s=arc-20160816; b=x3E3PDQ9ilZndnRv1gMBOrzJvtd4dO/ULZTryzQjSulRKE1lQ9OlvXgx0ZzQUJb4Q3 /0DJyPBWqXu9JbRJz62P1Q54YLE1letQd0Gf2OuBK5ZMW3buM170y+A40JToYEzAK7cn hfGLYLMm+myDs+K5/KKmTtQI7Y8oUs99PP+8LQb6j+H/qtToGjJFeDZ/vyfnqhYNRk1E jfNlzfQoZR0rtwR1DSPM6qf0d1tcgoTRMBqlclqwY2ISu1ODNSG8MhTClxEOyLMSTTF8 migIxMa5KmZxqAwoT8lZYr9OEiWW2ke+WB3vOvRT7iOwhHfnR9Oz/TlFjxiEu/uvY3E9 UpEQ== 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=nqNpCGFtDsa8a+HaBObToOYnGgLCkK9gOXb9jSunYpg=; b=XHxDAuzvj1k9YnKiBkaXkRsuZD8fPCIZYZcytXdzo0XBGIgUNELyp2/y/kXJsfmznY GwLtx4lh0qfwfex50sPCGnNPfS1/eKgaDH5UKT1S546dFUzyF8Ha2+FaA/bO7u3J6JHg TtEk7HGxAtjsU7RH+1iRawc/iGgRlOeQNP9O7EYZku6UlgOVP7mQIijms5pRP3UsrOJy WfCGtf5rAnLIXw2IsoglocauPDs7mF6L0B+Wb6/6OiqBDetUOP6kSd+Ee3dIZqnk/xbX tGATZKwEosuUJw+tZm55KEs8VJAwGXGcPcY7lifQLZujIu+mcTNhRlOOvTumRVN7A9F8 fqqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=q9YeUqrO; 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 t190si61750458pgd.465.2019.08.12.09.30.34; Mon, 12 Aug 2019 09:30:49 -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=q9YeUqrO; 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 S1726943AbfHLQ22 (ORCPT + 99 others); Mon, 12 Aug 2019 12:28:28 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:42939 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725843AbfHLQ21 (ORCPT ); Mon, 12 Aug 2019 12:28:27 -0400 Received: by mail-pf1-f195.google.com with SMTP id i30so1227435pfk.9 for ; Mon, 12 Aug 2019 09:28:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nqNpCGFtDsa8a+HaBObToOYnGgLCkK9gOXb9jSunYpg=; b=q9YeUqrOotnWphtWt+AmZhvUnYaPCLv3zf1CBf8qMjF4Lv+N1SlxcpneZ0RIDVmKx6 PEnkTk/klNoYA9mDPfS1ByJfxSqRYhoqgiKYO+g2npyQLOG5Qu+wZdc0UZqCNGTVj6Wl yU8u4eqsgHXW5p3oDfzLjG2GK6p5qQBuoGkoO9mLVZFafWtSQt7TZy907yptEz88jId2 sNtQsXtA2kmDSUVFsniFeFTjWLU5ozKhQsrHSVVPnI2O/1vT2frMSBLVsPWgj6Grgo5A dhUT541BM69IcvHQhcMqysd8tszX9+Cp6fSRHF9JnCnz5kf0KvGCK6wgfbGF/pPR2y98 InOA== 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=nqNpCGFtDsa8a+HaBObToOYnGgLCkK9gOXb9jSunYpg=; b=DNNGPfcZ+YlsN26oB/mBx0bvFdPaAtldH0AiqHdke1WwyzyiaDCQ4DVV2a9WlOdYyI d4e485BFSyuXo68cT+vYhbTmrO0zz9Tnv5H0hSHUa8LNnyAiK6bHG5yNbtcslJYdDHRy ysVgqqv6Dj2szyN7JPGwvZaccpkTQSnInZunpT7y+kyUQkComP7hjlOvw5FdMw8V5Uca bPESvxpMLAfok+8FrFq0vrzMH/MB/SaElqy52tRu2zZVrHx9qxcQQtj5jb/HFkRAt/oR 0JnvlJE1oL3CFJxPaokeSYA2aj23t5gcU8O5SjmpJyAHRTDH3h+/vd1wWP6C0Epc8+2P H5+g== X-Gm-Message-State: APjAAAWX4ZWbKGu4eDsT09IQWbSZdaowsDlqY6YoG4us9/stNoB5c+17 hpGN7lH0xY6fl/pzmpWR/FmY0z8mmXwcmJBMIRbG0A== X-Received: by 2002:a63:f94c:: with SMTP id q12mr30500912pgk.10.1565627306188; Mon, 12 Aug 2019 09:28:26 -0700 (PDT) MIME-Version: 1.0 References: <9c7a79b4d21aea52464d00c8fa4e4b92638560b6.camel@perches.com> <6a5f470c1375289908c37632572c4aa60d6486fa.camel@perches.com> <20190811020442.GA22736@archlinux-threadripper> <871efd6113ee2f6491410409511b871b7637f9e3.camel@perches.com> In-Reply-To: <871efd6113ee2f6491410409511b871b7637f9e3.camel@perches.com> From: Nick Desaulniers Date: Mon, 12 Aug 2019 09:28:15 -0700 Message-ID: Subject: Re: [PATCH] Makefile: Convert -Wimplicit-fallthrough=3 to just -Wimplicit-fallthrough for clang To: Joe Perches Cc: Nathan Chancellor , Linus Torvalds , "Gustavo A. R. Silva" , LKML , 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 Sat, Aug 10, 2019 at 8:06 PM Joe Perches wrote: > > On Sat, 2019-08-10 at 19:04 -0700, Nathan Chancellor wrote: > > On a tangential note, how are you planning on doing the fallthrough > > comment to attribute conversion? The reason I ask is clang does not > > support the comment annotations, meaning that when Nathan Huckleberry's > > patch is applied to clang (which has been accepted [1]), we are going > > to get slammed by the warnings. I just ran an x86 defconfig build at > > 296d05cb0d3c with his patch applied and I see 27673 instances of this > > warning... (mostly coming from some header files so nothing crazy but it > > will be super noisy). > > > > If you have something to share like a script or patch, I'd be happy to > > test it locally. > > > > [1]: https://reviews.llvm.org/D64838 > > Something like this patch: > > https://lore.kernel.org/patchwork/patch/1108577/ > > Maybe use: > > #define fallthrough [[fallthrough]] Isn't [[fallthrough]] the C++ style attribute? **eek** Seems to be a waste for Clang to implement __attribute__((fallthrough)) just as we switch the kernel to not use it. Also, I'd recommend making the preprocessor define all caps to help folks recognize it's a preprocessor define. -- Thanks, ~Nick Desaulniers