Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A1B70C04AAA for ; Mon, 6 May 2019 09:36:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7BAAD208C2 for ; Mon, 6 May 2019 09:36:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725856AbfEFJgR (ORCPT ); Mon, 6 May 2019 05:36:17 -0400 Received: from www62.your-server.de ([213.133.104.62]:40372 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725855AbfEFJgQ (ORCPT ); Mon, 6 May 2019 05:36:16 -0400 Received: from [78.46.172.2] (helo=sslproxy05.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 1hNa2g-0000UI-Jm; Mon, 06 May 2019 11:36:14 +0200 Received: from [2a02:120b:c3fc:feb0:dda7:bd28:a848:50e2] (helo=linux.home) by sslproxy05.your-server.de with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1hNa2g-000QDF-D8; Mon, 06 May 2019 11:36:14 +0200 Subject: Re: [PATCH bpf] libbpf: remove unnecessary cast-to-void To: =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , ast@kernel.org, netdev@vger.kernel.org Cc: =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , magnus.karlsson@intel.com, magnus.karlsson@gmail.com, bpf@vger.kernel.org References: <20190506092443.24483-1-bjorn.topel@gmail.com> From: Daniel Borkmann Message-ID: <2f46de83-7b76-b7ba-54ed-9b084bb83df8@iogearbox.net> Date: Mon, 6 May 2019 11:36:13 +0200 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: <20190506092443.24483-1-bjorn.topel@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.100.3/25441/Mon May 6 10:04:24 2019) Sender: bpf-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org On 05/06/2019 11:24 AM, Björn Töpel wrote: > From: Björn Töpel > > The patches with fixes tags added a cast-to-void in the places when > the return value of a function was ignored. > > This is not common practice in the kernel, and is therefore removed in > this patch. > > Reported-by: Daniel Borkmann > Fixes: 5750902a6e9b ("libbpf: proper XSKMAP cleanup") > Fixes: 0e6741f09297 ("libbpf: fix invalid munmap call") > Signed-off-by: Björn Töpel Applied, thanks!