Message ID | tencent_C11060D6C765B08AC1ABE2A801228381B206@qq.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1184129vqo; Sun, 21 May 2023 20:40:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5ItVg9w0kndOnRYOhOwoF2syZGoGBtpys/snQ7H1ltSJ5Mmfm5wBOu4IWIQaPi1A1c/g4s X-Received: by 2002:a05:6a00:a91:b0:64a:fa71:a98f with SMTP id b17-20020a056a000a9100b0064afa71a98fmr12419857pfl.13.1684726829878; Sun, 21 May 2023 20:40:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684726829; cv=none; d=google.com; s=arc-20160816; b=UBeNsUL1YXLDL+TTJEWtYq9sUpwdRSyYV+L+3/w5lodJtpxv4VVQv0RfPppwlMJyL6 b2BrihVMSDop0nB91RTaXHOm3ZrB8wOOD/ToJ2nuqmLiubWzanjjc2VJWGOGHUjtm4tL VT0cOQP4H6OCOhrjGFmpkhwV0C7sjcb3JclcVL3/SYl2qgCHmV2pFGXfbYfJcbJA6x3Q R6vrGeRMyTXtJ7bhsS9N3wgyJcHSKZe0mK03s3p/Bbf95tVcf7ks4He6zgE3u//UcF56 QqPyfe1y4u/6oLKhcT2EnCf3zB2wrI87sPMQwDNPGAAiznRey33R/cC/I01DLlwhNqTr 6hjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:date :subject:cc:to:from:message-id:dkim-signature; bh=FvsG6zOPtvIvHZ5Zye5fMsBrNoweYDB083Dy7y0Xqrs=; b=w3bsDiDSfmLysPOWB/kfd6T3kO2mNmelMRL0YI5u+LSyjFF+D6Ktswrp07tkxIuaTb N2sMDfWu2jkh3u6LLcJ+GMK0RlkWKakrIgG+ZYm/uWWW+Sr6EUeiHMsVoKNlKhjevXGH lj7wd+1jUgEKlfaaBad6Dz4LeYyiTuX2t+Z6CqBZwzqW8GZgdPnG8IbODHH7vxeLDnQG YMy2YYEHCixTBI4TLAPTNKDqJSMFqhKiwr4E7rbtV3XL8gsGNHPcutXbY1RwtxMmU+Lv 8Ncf9uXhAwwzb/wPuJcuMia13niT8BUmmy7Eyo3YkGvSILOzxCRl3604YSaB1lzzjjdQ jl+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foxmail.com header.s=s201512 header.b=qcMBZeAZ; 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=NONE sp=NONE dis=NONE) header.from=foxmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g9-20020a63fa49000000b00502f4be647fsi1597928pgk.641.2023.05.21.20.40.14; Sun, 21 May 2023 20:40:29 -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=@foxmail.com header.s=s201512 header.b=qcMBZeAZ; 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=NONE sp=NONE dis=NONE) header.from=foxmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229931AbjEVDcq (ORCPT <rfc822;cscallsign@gmail.com> + 99 others); Sun, 21 May 2023 23:32:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229552AbjEVDco (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 21 May 2023 23:32:44 -0400 Received: from out162-62-57-137.mail.qq.com (out162-62-57-137.mail.qq.com [162.62.57.137]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 292B790; Sun, 21 May 2023 20:32:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1684726358; bh=FvsG6zOPtvIvHZ5Zye5fMsBrNoweYDB083Dy7y0Xqrs=; h=From:To:Cc:Subject:Date; b=qcMBZeAZieLL5Yj7kdY/CdWBFtlxdm9nTVsX2pJ8YPXxG9qFS9RUW91pAJrm603Ko /s633NQ6yLUUPepmiKaoNhbq6KLf+mTN4HCYyRdRTlq8avwqM98/PKR38r25zs1H3J sd/qGUjTaGxr4L6TaCWqwOwUKgkEkWrg93Odbfik= Received: from localhost.localdomain ([39.156.73.12]) by newxmesmtplogicsvrszc2-0.qq.com (NewEsmtp) with SMTP id 5060064F; Mon, 22 May 2023 11:20:06 +0800 X-QQ-mid: xmsmtpt1684725606thdrdrro9 Message-ID: <tencent_C11060D6C765B08AC1ABE2A801228381B206@qq.com> X-QQ-XMAILINFO: NY3HYYTs4gYS7ayxzI94vsOM+ZPCRxB8U/TquQOXf2ycGLo9n9lDXzYX/TzUgz 02EERgYO4w/XLqL983HMHc6kfuSc0emfhjg+0kiz/iW6g2wXs404i1hvk34r5yDIb9oW+wFhAq9J npR2gTjuiJYDfj/CtKoCDs3dYWKY7y1hWpc8FkkRU+V8dHNs3jjZ45wkOvDZAm4bJpwEwiUS6ch4 rTRl+f8aawVlrtc/5LrIRCbjji0Jz4JkRQk1NNnoQpoZ+hPwVerrBKVvndaV+TMVeRQj6mdZgJRY D8waZ7+gB42cIYPxjIbyFGh1qpgh1JJUOjO7kwB7TrwIMk0/B1mUG8BjIh1qjAt6I/9BMw5HsR2d kcb2zLqnl0xLDbHTuKBzHZmx+0yx8puc3yq7+wDIlFnm3LKhFOLZnah9ikIY2ABtxQl/ahiyhYs+ 3E7sKYUGKxJHwAS2dwP+6WeNm1pJjg4bFg38mzGlShEIV+P3MoLt2KKMiUuNL+5ErnMdcqWPjHGm bVGSFELLgf12x9JhL/pe/Dcyb/hig0yGxvWiO/Tk6yivvkPH+rVAeoWjxgoxchMoVJza1/i7DPYh R8TotPX0NqSldQWiQzxI3zwJAuMAGKwWgwiTncC8qWZfYE6YW5vnJZsIh4vP4BgPe0TeLn65nFRO pdr+jLxfGr+YVbroibRlylcN/80GTtS5NT/DSFRPz94JKRxh6OhKzytaqX9J8urtS1j+INNIHJC/ 0W1qwaBCGGZYl+ExupGgntmXZJQw2fdaAFpJju3awBRCARhIrlWyKLq+LNqqHtAzLvWgwxrCRqmK Y6sCmgL0rd+oFH2/Rg2KcCCCZpdw8ZZbIA70OyLx9+E6V4uuHapMWJA++l88fA6DuubTZdFY29Os Ipu6KfsJ4ltM9ItHMSYVA7hdJcv8xfStHCPq/BmU+MyCBiT49cxQRRB1VwLLtWXSc49n9TAgu7ZC AtUqy9J16bnQxW8s+dxw== From: Rong Tao <rtoax@foxmail.com> To: ast@kernel.org Cc: Rong Tao <rongtao@cestc.cn>, Daniel Borkmann <daniel@iogearbox.net>, Andrii Nakryiko <andrii@kernel.org>, Martin KaFai Lau <martin.lau@linux.dev>, Song Liu <song@kernel.org>, Yonghong Song <yhs@fb.com>, John Fastabend <john.fastabend@gmail.com>, KP Singh <kpsingh@kernel.org>, Stanislav Fomichev <sdf@google.com>, Hao Luo <haoluo@google.com>, Jiri Olsa <jolsa@kernel.org>, bpf@vger.kernel.org (open list:BPF [GENERAL] (Safe Dynamic Programs and Tools)), linux-kernel@vger.kernel.org (open list) Subject: [PATCH bpf-next] samples/bpf: hbm: Fix compile error about fallthrough marking Date: Mon, 22 May 2023 11:20:03 +0800 X-OQ-MSGID: <20230522032003.79769-1-rtoax@foxmail.com> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, HELO_DYNAMIC_IPADDR,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,RDNS_DYNAMIC, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766564120356997831?= X-GMAIL-MSGID: =?utf-8?q?1766564120356997831?= |
Series |
[bpf-next] samples/bpf: hbm: Fix compile error about fallthrough marking
|
|
Commit Message
Rong Tao
May 22, 2023, 3:20 a.m. UTC
From: Rong Tao <rongtao@cestc.cn> 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 <rongtao@cestc.cn> --- samples/bpf/hbm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 5/22/23 5:20 AM, Rong Tao wrote: > From: Rong Tao <rongtao@cestc.cn> > > 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 <rongtao@cestc.cn> > --- > 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
diff --git a/samples/bpf/hbm.c b/samples/bpf/hbm.c index 6448b7826107..7ddf25e9d098 100644 --- a/samples/bpf/hbm.c +++ b/samples/bpf/hbm.c @@ -498,7 +498,7 @@ int main(int argc, char **argv) "Option -%c requires an argument.\n\n", optopt); case 'h': - __fallthrough; + fallthrough; default: Usage(); return 0;