Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2659257rwd; Mon, 22 May 2023 02:12:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7vxlKU0jR1UXVsvhlM0Gf0wbYEn25rfoz1Bf8cOTGs/+u9rNEj2g3J+GuNfK5qgNsjlD0H X-Received: by 2002:a17:90a:e557:b0:250:7347:39d9 with SMTP id ei23-20020a17090ae55700b00250734739d9mr9202224pjb.37.1684746731868; Mon, 22 May 2023 02:12:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684746731; cv=none; d=google.com; s=arc-20160816; b=sEwEkVWAF6oH4ncfZd2H4lrJ2pb74dPk8PbQy6foNd5AGCYlp0/Otkh//4fRj39RBK A7VjHM4Imb30q20D2MMHxVuts3oA1Grlzl2t6zRINZhOyo4yWyHXb1gfzJI/TjyW/BmP C28+s+Ka+X3Nx45vcPs1TnGwxJCkodrzmAsEq5VMzDOkWGkS+JToikWKJshpVBdf77En +ryx6gCED64fVRSG9106FwD3mMUAY8ZEanLn1VxW64OgyaNBi/ys3Ca05jBPc81UJW7V /sBvUcwulE5jwFNT6r6sWvI/p9yAWHAcscp2OcLBCKnwKzmGhmJ3qeesr/8bVVEuuj3D IZ5w== 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=k1tdzx4vAwXIV92zOVsZmImKM3IKiJYlisOunktC7RM=; b=pvghwhi96jt9lX3BLx0J2XQQnWIv+JhqdOgY8fiE28bKYzpg9aB2yBsomcTU+44eXl ABhtU0xtnkdigChMnsm4mnVMSJvFCMHieKJjxpjgJ8Ih5/jNhm7ufe+07/brEm2r8qD7 ftEiPNJ0qQ4xMfwB6N/a+IMdWYVPdsGqap+U4f87FtcmjsR/WM9+hdy0OSx+/QhXS8ih 1C77gbncncxMLfL7Qb1NKwlsX/XHvGiF6mUBXXJA5HCnuvYfHCl2M2OrldejbR4mwz8x MNjn6eYQaHl7o2QY+iLgmcxyv4FMQylcKweiZdARSPknRsETJjSbbMd6gecjMwB9umdr H1DA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@iogearbox.net header.s=default2302 header.b=i7roivs0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=iogearbox.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k7-20020a17090a658700b0024dd8ed1373si6239305pjj.185.2023.05.22.02.11.59; Mon, 22 May 2023 02:12:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@iogearbox.net header.s=default2302 header.b=i7roivs0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=iogearbox.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232071AbjEVIrr (ORCPT + 99 others); Mon, 22 May 2023 04:47:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229667AbjEVIrp (ORCPT ); Mon, 22 May 2023 04:47:45 -0400 Received: from www62.your-server.de (www62.your-server.de [213.133.104.62]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 540EBA8; Mon, 22 May 2023 01:47:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=iogearbox.net; s=default2302; 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; bh=k1tdzx4vAwXIV92zOVsZmImKM3IKiJYlisOunktC7RM=; b=i7roivs08Clf1Uck1tvH9I5uJA YkJNiBPORQwUixddu5Y43fiIGnpkoOS5Ztm9wzO9RvRqQQXIfn0YITpIzs+ISCyyvSJik/hrdYjyz Gb0G65gPeeTxF5LilXzbJ5V2FeFNyV4fKSSm+GMqboJO0hKE2IwI6NBzQJS7hwnanLXsYdMM5IpXO lgYv2Rd2yMz0paNKRrJRxlB6h6Uz4J9wMDT5mdP8xGre28i0mfD/t3LGXuZI/D472mkiUG6vDfzSW Q6nVtyIewWftxldo1FDidUVF509/af/X4aBg0xnWlA5gLj1FzZLzkdKsmP52+Mfpuw7iLJawtQBvt 8Fv0E62A==; Received: from sslproxy01.your-server.de ([78.46.139.224]) by www62.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1q11CU-000BTa-3K; Mon, 22 May 2023 10:47:29 +0200 Received: from [85.1.206.226] (helo=linux.home) by sslproxy01.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q11CT-00061B-E7; Mon, 22 May 2023 10:47:29 +0200 Subject: Re: [PATCH bpf-next] samples/bpf: hbm: Fix compile error about fallthrough marking To: Rong Tao , ast@kernel.org Cc: Rong Tao , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "open list:BPF [GENERAL] (Safe Dynamic Programs and Tools)" , open list References: From: Daniel Borkmann Message-ID: Date: Mon, 22 May 2023 10:47:28 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.103.8/26915/Mon May 22 09:23:18 2023) X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/22/23 5:20 AM, Rong Tao wrote: > From: Rong Tao > > commit f7a858bffcdd("tools: Rename __fallthrough to fallthrough") rename > macro __fallthrough to fallthrough, commit 4b7ef71ac977("bpftool: Replace > "__fallthrough" by a comment to address merge conflict") use comments to > replace __fallthrough, here we can use fallthrough directly. > > Compiling samples/bpf hits an error related to fallthrough marking: > ... > CC samples/bpf/hbm.o > linux/samples/bpf/hbm.c: In function ‘main’: > linux/samples/bpf/hbm.c:501:25: error: ‘__fallthrough’ undeclared > (first use in this function); did you mean ‘fallthrough’? > 501 | __fallthrough; > | ^~~~~~~~~~~~~ > | fallthrough > > Signed-off-by: Rong Tao > --- > samples/bpf/hbm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Fixed here already: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git/commit/?id=a820ca1a739b7e3ee0ddb48bdfa3c09dc7cd4302