Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2244413imu; Thu, 17 Jan 2019 10:44:04 -0800 (PST) X-Google-Smtp-Source: ALg8bN51ClQkD79UVJ4k3YIrBgJQPWSQj3Dl1ZAdrtht0kDkZ02DOO781HVk8VikbyHNYR1zE0jI X-Received: by 2002:a17:902:142:: with SMTP id 60mr16526764plb.330.1547750644419; Thu, 17 Jan 2019 10:44:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547750644; cv=none; d=google.com; s=arc-20160816; b=PEKj3gueqbV7OQo4M6eeWEopVTOkyYDpfUYkgyKkiwBnfQsl9JgRcowj2yvbZFiEGZ X18WG7PZ14DQdVChFzWuURB3SI0KCoQioj37me67BWCkCPE11YbRwAAIBh7f3Xk7FVZZ KGYLp1IWY2ZfoJh50ecEkVHCXnUPA+2IJoYYo2TD8yfhWbAv91c97Y8a7BWV5j8QHezj mqlATAxwnP1IFRokT5G3MdDmI9NRsIpUMUmkiLSK15UrBbPLp9v/E31gJKbzYLFv1Z+Z dXILsndLOtf7k3w2Wf57yd/l3AwufmFzzHcO1Qj0xe0ScTQzmpFiwQvK6NLyun/7Y5to FmTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=sgdpITIV+RBkScKhhVKZo68PNDchgive8XlGW54P1FM=; b=rAWvtucGDR41rB24qbndBb7iHugEeKTbRiPouWHkCb+zw1qGP29ozfTPf3GkZsBPra gSnLtkuPB7V7HT/X1LL7Zjz6klnScnGRYGAwCg0V9jgzx1MNiWPeYZWYNp8qvJ0YlU1y OVXq/rMNZLBYS7bRdeo2IFQEwbN3VdqzwCdhVAIi9iJ8Aglf4JE8oXHR3rLF4dLYlkpX 5LT9PXSchHwQcTP0Am3M0jOsemm2u1R1NXsj2AxmsmUtB5nOSbwPszXaH4gTIT4JPLMN EdOFFDSHuQHLUiXyzDGnwlfRipBCwZcpUpIIQRbPkfXiY6BIlgu1cHOVU0EU6sMu7fmK h2Ug== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f10si2427928pln.289.2019.01.17.10.43.49; Thu, 17 Jan 2019 10:44:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728436AbfAQP47 (ORCPT + 99 others); Thu, 17 Jan 2019 10:56:59 -0500 Received: from www62.your-server.de ([213.133.104.62]:36176 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727700AbfAQP47 (ORCPT ); Thu, 17 Jan 2019 10:56:59 -0500 Received: from [78.46.172.3] (helo=sslproxy06.your-server.de) by www62.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1gkA2I-0003ur-5B; Thu, 17 Jan 2019 16:56:54 +0100 Received: from [178.197.248.17] (helo=linux.home) by sslproxy06.your-server.de with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1gkA2H-000W2x-VN; Thu, 17 Jan 2019 16:56:54 +0100 Subject: Re: [PATCH] bpf: Make function btf_name_offset_valid static To: Martin Lau , Mathieu Malaterre Cc: Alexei Starovoitov , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" References: <20190116192940.32104-1-malat@debian.org> <20190116211627.bs3rrolbjdsxkyvp@kafai-mbp.dhcp.thefacebook.com> From: Daniel Borkmann Message-ID: <06e9a2f2-50f9-99af-9fe8-51dd5425fbb7@iogearbox.net> Date: Thu, 17 Jan 2019 16:56:53 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20190116211627.bs3rrolbjdsxkyvp@kafai-mbp.dhcp.thefacebook.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.100.2/25306/Thu Jan 17 11:24:24 2019) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/16/2019 10:16 PM, Martin Lau wrote: > On Wed, Jan 16, 2019 at 08:29:40PM +0100, Mathieu Malaterre wrote: >> Initially in commit 69b693f0aefa ("bpf: btf: Introduce BPF Type Format >> (BTF)") the function 'btf_name_offset_valid' was introduced as static >> function it was later on changed to a non-static one, and then finally >> in commit c454a46b5efd ("bpf: Add bpf_line_info support") the function >> prototype was removed. > Instead of c454a46b5efd, it was removed from btf.h in > commit 23127b33ec80 ("bpf: Create a new btf_name_by_offset() for non type name use case") > >> >> Revert back to original implementation and make the function static. >> Remove warning triggered with W=1: >> >> kernel/bpf/btf.c:470:6: warning: no previous prototype for 'btf_name_offset_valid' [-Wmissing-prototypes] >> >> Signed-off-by: Mathieu Malaterre > Fixes: 23127b33ec80 ("bpf: Create a new btf_name_by_offset() for non type name use case") > > Thanks for the fix! > > Other than the above, > > Acked-by: Martin KaFai Lau Applied to bpf and fixed up commit reference. Thanks!