Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp873543pxt; Thu, 5 Aug 2021 13:59:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2aaasR71ikmpARgC2myWgMFV75TKFrkhmU0QetBnir6ZkVLhQZSeCsA7vnTqRUT+jwyeM X-Received: by 2002:a02:9082:: with SMTP id x2mr2795215jaf.44.1628197162188; Thu, 05 Aug 2021 13:59:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628197162; cv=none; d=google.com; s=arc-20160816; b=Tg+LXxBGHA3qKT85mPZkQxo7/nItMia08sDZgOGm9pfN3+YUe9kqRPvCBoM1kQP/eZ whVSwep0kz/pJpt3gPiebVpN6mZP/hG1IqwP7Fnnj/Ww+6WX/S1kT+6w3CRSpJwGiiv+ nFMEZeyGyYdYFhTXvuuLNZFy4UiJR2QMWIoZZvaPoO1HXPhnaKl8ldIwgt0goEBBcjFc FVnbKolQ8gZH+4eL2o63+0/ea4pdbRqdBFG0BihasZnYvI7wlxEJGva09jCl5A65VAjs SpXbhl/yx5rENlekMXathHc9kk4TicIDUPkk/nwkbvPjbmgG0bqEcWhq/mlYT5OGuKmb a8iA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Nk1eyoWZLRLqWjJszIuPDrTAz0hvu0DjRH9VlFtufpY=; b=K7NGieENGH1M3D9YD47dc+eqVi1WOpeAgBLHy546dn0ecDNbI8R4B9pqvHv+nu/wit /ZPSA78EGvkzoJ4jlYVa8xFHDH3Bjxv3UuXgY5dIUZWDQomoim3r9q+j08ukcsf+Lerf NQoPzuIkfIqu8mG9vqudN9QNggWZ2NnvaeaWetlW+ZT54jZFTRdr4skFHQFbKEOxKh+x QwYQE5d3c74WWq5Mywv7OzhFgEc6643FoIoZw26qQrKmDzfK4qQnRYN+Jq9v9jFB66Oz HTQ0WxvVnW53e2z6ctYLcke008sl1b8q2WDlkyOf3fkqh94RUtToaWmlUmMRCuhQAPHZ rTzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eSHeL83k; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z9si7141351jat.41.2021.08.05.13.59.10; Thu, 05 Aug 2021 13:59:22 -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=pass header.i=@kernel.org header.s=k20201202 header.b=eSHeL83k; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242784AbhHETE6 (ORCPT + 99 others); Thu, 5 Aug 2021 15:04:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:47762 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242738AbhHETEr (ORCPT ); Thu, 5 Aug 2021 15:04:47 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B181E61040; Thu, 5 Aug 2021 19:04:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1628190273; bh=MCjQlxL9X2EkS0NeQyUENlq89cm31kXmcOUCJ7S5w88=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eSHeL83kJiujAp3E2VNZ5OVoar3YqffDDKloJt/BA1uRmgNRI9incZpNZDIAAcN1K MeBj8BpWE351bla1Jc49Sih1o+Y9zRULjZSmUuG7swPSsI+FXdyAcJfQPVL03QnsKQ 9hsoJwIfDMs0A5iEs8wffChG4iWsnBDbeO882OWpgU3syrWd7ucqhWfSuA8MLKMoDW fpMdMX8L7ra72Z622VVYxOPRaIYjW7QsR/m5Q4ZioFp/MMdJl0JoZbwxUt5dsM1kLd fZPK9kGtmKHV0/x0EeQT8RZ2IjOdWs+yPaCuNjKSfptZh3XRYC94qvKPBnGSTDYTXm NUijFVea6Pumw== Date: Thu, 5 Aug 2021 12:04:31 -0700 From: Nathan Chancellor To: kernel test robot Cc: "Gustavo A. R. Silva" , clang-built-linux@googlegroups.com, kbuild-all@lists.01.org, "Gustavo A. R. Silva" , LKML Subject: Re: [gustavoars-linux:for-next/clang-fallthrough 1/1] warning: fallthrough annotation in unreachable code/ Message-ID: References: <202108051403.tBfqfI49-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202108051403.tBfqfI49-lkp@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: sound/core/pcm_native.c:3812:3: warning: fallthrough annotation in unreachable code [-Wimplicit-fallthrough] fallthrough; ^ include/linux/compiler_attributes.h:211:41: note: expanded from macro 'fallthrough' # define fallthrough __attribute__((__fallthrough__)) ^ sound/core/pcm_native.c:3820:3: warning: fallthrough annotation in unreachable code [-Wimplicit-fallthrough] fallthrough; ^ include/linux/compiler_attributes.h:211:41: note: expanded from macro 'fallthrough' # define fallthrough __attribute__((__fallthrough__)) ^ 2 warnings generated. Which is already being tracked: https://github.com/ClangBuiltLinux/linux/issues/1429 Cheers, Nathan