Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp2529479rwn; Fri, 16 Sep 2022 11:43:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM62z8HrbJuwm+0DpMwh4DTeLI4dYyD6s8gN1tKUlS8vy6Pqo+rOO6gXo1EyCwtYGbwTaD/7 X-Received: by 2002:a17:90a:1617:b0:200:9da5:d0ed with SMTP id n23-20020a17090a161700b002009da5d0edmr6858237pja.90.1663353790727; Fri, 16 Sep 2022 11:43:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663353790; cv=none; d=google.com; s=arc-20160816; b=bWzkjLXCore74lZckOyLTzacY/Iqa/CBV97PZSYtleBDfT527NbZO3FmdkgWoSZxfd JVB0zhRXD6GISs7m9WfoxWO9ppwQ5Qh6X/tYX6W9W51X3XOPhvRHM43ANOBK2/R5Vme7 3w7xApoFeXg4Sb7wYVkGnG8JfhUXhBoTaxJIb32GJbxH3kSbif0GZkli3MFbw1xsVIy3 7FL3y56miuo6uO3jt0RGtKuzTZyvETfrgWFroSGAMoG9rSTWKjbQlVjAG2HHjtjeLa44 HrsboQavznDPlnNwO8rmX+DrenX09G9zgHAGPDO0F7h7lRLkJVfM8o2R/9kG80qLyTJV ykLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:mime-version:date :dkim-signature:message-id; bh=F3RNLEuF8buEC8QUWl8Z2CEswmdqvtMcE8bEVXrKec0=; b=BGcYVYv3uW7/DvE09NsCeCMF7BdgUekton7XlrNdraqRyfmEY809lqym8Vo/hoMjYH bZc3lkELEFF1Jy2dWHoB+RJslBoufE24t4qjsi1crVvdj6JOUtJEdoWTXVoEp1LJnKKv WN5kaDfnwrhxpbEAMQSDe0t7ya98Xx2oCSYS+/hx6FR7xcRB8masjO8/jr3i7cSRlx1z x9elC44TAVyJpH+SXgH8KDn2+LtCNNDah118fxcH69nKG1q8Pakw/jfI16j3JzagzG2x eaw0JvfOLcDV1xm9UXSAphKAuTVfZybWqYBU6iP0Si6axE63IYk5+NKMxY8sWFRVO6T8 N6cA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=TfoqqXo3; 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=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q17-20020a056a00089100b0052d9e5f07d9si19969853pfj.210.2022.09.16.11.42.59; Fri, 16 Sep 2022 11:43:10 -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=@linux.dev header.s=key1 header.b=TfoqqXo3; 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=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230054AbiIPSh6 (ORCPT + 99 others); Fri, 16 Sep 2022 14:37:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229953AbiIPShz (ORCPT ); Fri, 16 Sep 2022 14:37:55 -0400 Received: from out0.migadu.com (out0.migadu.com [94.23.1.103]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31D2D14D0E; Fri, 16 Sep 2022 11:37:54 -0700 (PDT) Message-ID: <7c01a2b8-bfb7-df72-faae-0b940ea0f149@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1663353472; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=F3RNLEuF8buEC8QUWl8Z2CEswmdqvtMcE8bEVXrKec0=; b=TfoqqXo3iCxx0PHrv+jEu26Nlcw222jcGOVZm43Yn+SujQwDsLaOsEz9j5t5UjX/xwtBbE OxALioATvD6PdqBPO2eowC6PR6CqalYKOlOvM9n7UM92jUtsmwT7fsze7zlIZE+AM5LxYB kJTu2TYph7cDk9wZyn6K1gXvdIF1KJA= Date: Fri, 16 Sep 2022 11:37:46 -0700 MIME-Version: 1.0 Subject: Re: [PATCH bpf-next] bpf/btf: Use btf_type_str() whenever possible To: Peilin Ye Cc: Peilin Ye , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , bpf@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220914021328.17039-1-yepeilin.cs@gmail.com> Content-Language: en-US X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Martin KaFai Lau In-Reply-To: <20220914021328.17039-1-yepeilin.cs@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS 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 9/13/22 7:13 PM, Peilin Ye wrote: > From: Peilin Ye > > We have btf_type_str(). Use it whenever possible in btf.c, instead of > "btf_kind_str[BTF_INFO_KIND(t->info)]". > > Signed-off-by: Peilin Ye > --- > kernel/bpf/btf.c | 14 +++++++------- > 1 file changed, 7 insertions(+), 7 deletions(-) > > diff --git a/kernel/bpf/btf.c b/kernel/bpf/btf.c > index cad4657ba2ce..81dc7423d723 100644 This clean up makes sense. The patch cannot be applied though [0], so it is marked as 'Changes Requested'. Also, where is the cad4657ba2ce coming from? It can't be found in the bpf-next tree. Please rebase on the bpf-next and resend. [0]: https://patchwork.kernel.org/project/netdevbpf/patch/20220914021328.17039-1-yepeilin.cs@gmail.com/