Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp72702pxt; Thu, 5 Aug 2021 18:23:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9lLQRg81RYpA9Lfp1p1XFh4QFfiDDZbbAt8G26BE8kV0TpnoxPu3/mznVNTpUZu8saXTR X-Received: by 2002:a17:906:d925:: with SMTP id rn5mr7343009ejb.429.1628212986870; Thu, 05 Aug 2021 18:23:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628212986; cv=none; d=google.com; s=arc-20160816; b=bKgf2E+Dp5texTWzga0rfojv9rcnfVtA9QgJUluwH4Nt5FtarGvtlhG42GoP3KUa5/ aBAPV9uU+PBlyICmVT5KKopwdw2m0I9xqfpFlyVib+k7PRG5sIqNlBJrFQGQWesdckpg /Sh3z7O50jZBRQlhFNuVV8gwjmgNdSNczMY2T9HLZYbKmDTUq9ThUko4UaxtPU8qslop fh3kShTxmG4GGSCdQnGGg32/P7CZ1M4tNAXkBQ84Vm8nTwuRPblqSUJX1Ww3shnN/Zdr QWhRf2kgrBjtqQ9OwN7br3+uX6Sx5mZslKj6XRiOjjIR2WYAZ1wxsnf1vElbV1LmVVb8 civQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=a4vAYZN12jXuxE4AG3Yv7D5Z+TPfpOMAcdil9c80T/g=; b=rjsaPOzJHZCYzP0DguQWqYcbeTxJWAM3ZXvLF+5bErd7uHUyEBjzbB2xPZ/NLf7TCA J14rfHT6Z5tZG1zhND0dZ7xInTh3KrB7SakGnzi+0KYf8tvpBvmt6N8x9kIDNnETCaj8 21fFBUvI1EEkplmB0il5sVVlMQN7mtJI0giErw+pP4KgsIVb5An0Q+FiwbcXJdVU2XR2 zFP/9herTd+gEdBQ2S1min72dLOwKhBQfSiyei1Muy0ZIGdanMWW8L6iPvmy1PHpmjws wYyKCeDDFZMK9Jj0VDTpJCrK2JVfQZldI0ct+JNkvYEgQaRgei6GGwBHp1kdX1z97N+9 T+Xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@embeddedor.com header.s=default header.b=ZF468vcG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d26si6886795ejz.183.2021.08.05.18.22.42; Thu, 05 Aug 2021 18:23:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@embeddedor.com header.s=default header.b=ZF468vcG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235158AbhHEVuD (ORCPT + 99 others); Thu, 5 Aug 2021 17:50:03 -0400 Received: from gateway23.websitewelcome.com ([192.185.50.164]:37520 "EHLO gateway23.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234746AbhHEVuB (ORCPT ); Thu, 5 Aug 2021 17:50:01 -0400 Received: from cm11.websitewelcome.com (cm11.websitewelcome.com [100.42.49.5]) by gateway23.websitewelcome.com (Postfix) with ESMTP id 6CC191E21F for ; Thu, 5 Aug 2021 16:49:44 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id BlFIm1qSqK61iBlFIm4Xye; Thu, 05 Aug 2021 16:49:44 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=embeddedor.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=a4vAYZN12jXuxE4AG3Yv7D5Z+TPfpOMAcdil9c80T/g=; b=ZF468vcGqhZA/+n+JijJQBVH/Y J/L85VTfmDXKjAvHL0ttXgb5Z8MMUupniW6NUOgQSnKtXqFZA000KMJlAuk+b8kR0a26r1rwS68oL k0qo0Lra2RJrGT3yUwsNJj7lQjLMzKi4sw6oyjx9QBY71OL2OF7SgniwDKya3mTVy1wg8w5nLAfzl bquaIT83BIJIYiPdFGh1uac9SGeSP7fsMevD4RcFEV3S1cK/Z3NfvOngHC2ShDeV7ftb/iQQrjWV6 YcOCZ5pluNW1C6G2ZyOCh8jLs2QRytcwFOKX6OfardAghNZMYqijyRSvZjuRJqNZKmOLe43lfEaTL ziqNRZ7g==; Received: from 187-162-31-110.static.axtel.net ([187.162.31.110]:47584 helo=[192.168.15.8]) by gator4166.hostgator.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1mBlFH-001QJz-Rl; Thu, 05 Aug 2021 16:49:43 -0500 Subject: Re: [gustavoars-linux:for-next/clang-fallthrough 1/1] warning: fallthrough annotation in unreachable code/ To: Nathan Chancellor , kernel test robot Cc: "Gustavo A. R. Silva" , clang-built-linux@googlegroups.com, kbuild-all@lists.01.org, LKML References: <202108051403.tBfqfI49-lkp@intel.com> From: "Gustavo A. R. Silva" Message-ID: <19cb5505-9f81-3fc2-394e-365a5b230cba@embeddedor.com> Date: Thu, 5 Aug 2021 16:52:23 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 187.162.31.110 X-Source-L: No X-Exim-ID: 1mBlFH-001QJz-Rl X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 187-162-31-110.static.axtel.net ([192.168.15.8]) [187.162.31.110]:47584 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 6 X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/5/21 14:04, Nathan Chancellor wrote: > On Thu, Aug 05, 2021 at 02:21:34PM +0800, kernel test robot wrote: >> tree: https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git for-next/clang-fallthrough >> head: 58d0d2d2e7dc1b1a4997bb9c47d6cf428f2d3a00 >> commit: 58d0d2d2e7dc1b1a4997bb9c47d6cf428f2d3a00 [1/1] Revert "Revert "Makefile: Enable -Wimplicit-fallthrough for Clang"" >> config: hexagon-randconfig-r023-20210804 (attached as .config) >> compiler: clang version 12.0.0 >> reproduce (this is a W=1 build): >> wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross >> chmod +x ~/bin/make.cross >> # https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git/commit/?id=58d0d2d2e7dc1b1a4997bb9c47d6cf428f2d3a00 >> git remote add gustavoars-linux https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git >> git fetch --no-tags gustavoars-linux for-next/clang-fallthrough >> git checkout 58d0d2d2e7dc1b1a4997bb9c47d6cf428f2d3a00 >> # save the attached .config to linux build tree >> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=hexagon >> >> If you fix the issue, kindly add following tag as appropriate >> Reported-by: kernel test robot >> >> All warnings (new ones prefixed by >>): >> >>>> warning: fallthrough annotation in unreachable code [-Wimplicit-fallthrough] >>>> warning: fallthrough annotation in unreachable code [-Wimplicit-fallthrough] >> 2 warnings generated. > > With a newer version of clang that shows proper line numbers: Yep; I've been using mainline since you told us about commit 1b4800c26259 ("[clang][parser] Set source ranges for GNU-style attributes") :) > Which is already being tracked: https://github.com/ClangBuiltLinux/linux/issues/1429 Hopefully, this will be solved soon: https://bugs.llvm.org/show_bug.cgi?id=51094 (fingers crossed). Thanks -- Gustavo