Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2364558ybl; Sat, 10 Aug 2019 23:52:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqzSd94Je1sXjT9EvvrSBOTZD/mguaJxxKoXSYUde4yWszeNIhB0p/BZjBfirYZyNVAc64UP X-Received: by 2002:a17:902:145:: with SMTP id 63mr28063318plb.55.1565506343073; Sat, 10 Aug 2019 23:52:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565506343; cv=none; d=google.com; s=arc-20160816; b=pV41PCfueSx3VZjQwaKpBRs/hSvJr+Wd7qJOUEoDwlJvOKvkCOQcgnvPI+9LCYBumy HDA5zJrngXTAy9rgOpLEWgXKvhefGDi/aozUFHSZ27HheUGKk+ngVsRiMYnvUjF1Qvre 3o6WqeMicK2E3Ik89EfkJP+mjY4HHRUi0U3x6rsAB0O/jpF9no2fuMY5oGUuEGvtMED/ cee15UssgQSAcH0uDSwXfb62OgJgrsRba/ObG3eKUCLltgQmTeNGM5V5eDMXyTFWYBVe FpcVSs94T2MYpGIjrqI0cjXL3IjrPgiuW0xiSFCKOexf1DtY8/WHTt39V1Tb7CmRiCi3 959A== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=7UqIDuxPB4Jz1atTCeuJpEvp2tZA4jOhTZfNWLf3n/s=; b=uhVvovzzAY0bzZFgQ1XMc8B+5IJ4ZmB8n8DDltWk0gfbRGJGjdkhGMngg7GxInHr+8 wb2B3vAqquqtUooR/WACrw2z9TCz+EzmxOmmV4J5lzUu7zo9tG+NZc+OhD04sHM0YxBP rmn4PKPuhgA+JtEy6YitOG4HbZ7AFlKI7sBsot4f0BgiSt17WSqd30Rf8KTO0OagOdgE InprRg0/u5q0MMiaP9x6FRtJLjjfDcARKg/lWLgy9YVc8xGZBxICozTwgSY/4Dya6/5R VMQILTpxprblupaWNWrwxr13k2foleLSM4a6TofwukfZ6PUiPFwHx5FQR30vfWAsQqJq WSIg== 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 1si8460456plq.153.2019.08.10.23.52.07; Sat, 10 Aug 2019 23:52:23 -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 S1726014AbfHKGvQ (ORCPT + 99 others); Sun, 11 Aug 2019 02:51:16 -0400 Received: from esgaroth.petrovitsch.at ([78.47.184.11]:5710 "EHLO esgaroth.tuxoid.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725776AbfHKGvP (ORCPT ); Sun, 11 Aug 2019 02:51:15 -0400 Received: from thorin.petrovitsch.priv.at (80-110-97-231.cgn.dynamic.surfer.at [80.110.97.231]) (authenticated bits=0) by esgaroth.tuxoid.at (8.15.2/8.15.2) with ESMTPSA id x7B6oTFa029135 (version=TLSv1 cipher=AES128-SHA bits=128 verify=NO); Sun, 11 Aug 2019 08:50:30 +0200 Subject: Re: [PATCH] Makefile: Convert -Wimplicit-fallthrough=3 to just -Wimplicit-fallthrough for clang To: Nathan Chancellor , Joe Perches Cc: Linus Torvalds , "Gustavo A. R. Silva" , LKML , clang-built-linux@googlegroups.com References: <9c7a79b4d21aea52464d00c8fa4e4b92638560b6.camel@perches.com> <6a5f470c1375289908c37632572c4aa60d6486fa.camel@perches.com> <20190811020442.GA22736@archlinux-threadripper> <871efd6113ee2f6491410409511b871b7637f9e3.camel@perches.com> <20190811031715.GA22334@archlinux-threadripper> From: Bernd Petrovitsch Message-ID: <514fb156-7d81-a812-510a-7f252c27e79e@petrovitsch.priv.at> Date: Sun, 11 Aug 2019 08:50:29 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190811031715.GA22334@archlinux-threadripper> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-DCC-EATSERVER-Metrics: esgaroth.tuxoid.at 1166; Body=6 Fuz1=6 Fuz2=6 X-Virus-Scanned: clamav-milter 0.97 at esgaroth.tuxoid.at X-Virus-Status: Clean X-Spam-Status: No, score=0.0 required=5.0 tests=UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Report: * 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on esgaroth.tuxoid.at Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/08/2019 05:17, Nathan Chancellor wrote: > On Sat, Aug 10, 2019 at 08:06:05PM -0700, 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]] >> >> if the compiler supports that notation >> > > That patch as it stands will work with D64838, as it is adding support > for the GNU fallthrough attribute. > > However, I assume that all of the /* fall through */ comments will need > to be converted to the attribute macro, was that going to be done with > Coccinelle or something else? clang has not problem with the comment - it's just a comment;-) The #define above works BTW. MfG, Bernd -- Bernd Petrovitsch Email : bernd@petrovitsch.priv.at LUGA : http://www.luga.at