Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3672195ybb; Mon, 6 Apr 2020 13:16:01 -0700 (PDT) X-Google-Smtp-Source: APiQypKSSwe/LVnatKP879NKDGJp0O2tYrFO9zHSiats6X6RN4Uc+yrMM7hVNuebU4aSaVEp0Hey X-Received: by 2002:a9d:d36:: with SMTP id 51mr19781080oti.308.1586204160958; Mon, 06 Apr 2020 13:16:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586204160; cv=none; d=google.com; s=arc-20160816; b=M0dezKc1kov7IhTWcb+6zsz1FbjzsLDVb3BOxIFqbIQwcwx6IF5dy7sI3P/gtSV/Tj bAeG72dQzY/xKegwJ0Qq9mcpAO/Ah/qk6bFZxYigwPuPtrAb6yoShMnz+tIT7Uwqua+w 1UMtoouRwOLt6FmLk0skvfS3GFvmCaH0m7uTcZVH85No1cawoR09mOCHLUr+v3b7/fPb 9znUbBDnuA6+sjrCbcp3ycVOD3x0J1xs99EdAGCrYARLZRPQsjJSq4jdpIhLm2PUB5DG 0amzVLR7BmxfruTRt+M7+4vkpm5GzRQXhA5enWnhq19/V9WSY74UhY2NM0OQTJZP+Ekm p2fQ== 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=b9APoEW2AK4EeBGdtLRWCrLkrex7T8vP1FNKMrOjpf8=; b=ZyUIGmyu8xuHAYwg4VigrqjxZegdy94CYlR2kZpeHx7V66hlKbbl/gmAWzvqXRWinq sCbYWZhAmRL4ppqij1whTCeuFBLI82WYWijVi+Qlk9s8Bo+726WGtkr3GHX8Rzru+z51 MSm7vcTq7ZMX/Me6+Ts7JU6BGncONt738Or47DoFpsBFtV9NvqYi2QAuoVsBKO7iUBp0 Mmy/oYPRoqFGaRl98DFWu5VLObhMzNJy9XO2OOd8Y20UUiGme+5PKreRED0NJEFK1pur gk81HQWKBoEkqSkzfNWkIUo83G1f1a+WqpArWq/JzwiFiLIQ9YvDazZfohAMjcld26C4 yjwA== 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 s27si289864otg.229.2020.04.06.13.15.48; Mon, 06 Apr 2020 13:16:00 -0700 (PDT) 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 S1726287AbgDFUPD (ORCPT + 99 others); Mon, 6 Apr 2020 16:15:03 -0400 Received: from www62.your-server.de ([213.133.104.62]:50996 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725895AbgDFUPD (ORCPT ); Mon, 6 Apr 2020 16:15:03 -0400 Received: from sslproxy05.your-server.de ([78.46.172.2]) by www62.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1jLY8s-0000iS-RH; Mon, 06 Apr 2020 22:14:46 +0200 Received: from [178.195.186.98] (helo=pc-9.home) by sslproxy05.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jLY8s-0001Mt-Ch; Mon, 06 Apr 2020 22:14:46 +0200 Subject: Re: [PATCH] libbpf: Initialize *nl_pid so gcc 10 is happy To: Jeremy Cline , Alexei Starovoitov Cc: Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , John Fastabend , KP Singh , "David S . Miller" , Jakub Kicinski , Jesper Dangaard Brouer , netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org References: <20200404051430.698058-1-jcline@redhat.com> From: Daniel Borkmann Message-ID: <977ea25b-01bc-c1aa-eb93-e51ff916da0f@iogearbox.net> Date: Mon, 6 Apr 2020 22:14:45 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <20200404051430.698058-1-jcline@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.102.2/25774/Mon Apr 6 14:53:25 2020) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/4/20 7:14 AM, Jeremy Cline wrote: > Builds of Fedora's kernel-tools package started to fail with "may be > used uninitialized" warnings for nl_pid in bpf_set_link_xdp_fd() and > bpf_get_link_xdp_info() on the s390 architecture. > > Although libbpf_netlink_open() always returns a negative number when it > does not set *nl_pid, the compiler does not determine this and thus > believes the variable might be used uninitialized. Assuage gcc's fears > by explicitly initializing nl_pid. > > Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1807781 > Signed-off-by: Jeremy Cline Applied, thanks!