From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6F918C6FA82 for ; Fri, 16 Sep 2022 18:38:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230062AbiIPSh6 (ORCPT ); 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 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/