Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp6075605ybg; Tue, 22 Oct 2019 12:44:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqwJYIs+XrL1Cvk3uqz26nK3cQKwDMbr8EQVXiP8nAjPTWwl00oovOhVzQTlD/lGTv3vMZC0 X-Received: by 2002:a50:9254:: with SMTP id j20mr7390918eda.0.1571773495685; Tue, 22 Oct 2019 12:44:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571773495; cv=none; d=google.com; s=arc-20160816; b=LtxnxPTjG76hSVAhdvzRjgZutfILJYaE/VyYXejeXTBdgunxYfAsYFOEOapyITFe6q k4bebitvFZIYi7lsqD7/QK8ucLFuzeVWQnjttkEMVVTarhK07UGNvZA+UfbZViTaJud/ kgMMAZwOotKawYq0Hqsl9zpAtiYGrGmk7fP4g9JZhv7ZEDK15IE+D7wAjXTCReGQvAsJ 9ePPYhDisYaZgrHOctRNVW92NOAC3br2OX/yC+iBJIBh8+ayIfcXstjAFOt1DVTYOqYj P+iqL6rTA2COINbGZC71OUBeGIGQ3omuKWr5s4GtkrN+K2EEPOLvSv4i88pRxBG/ELGz E+hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=6VO3+Ehe7ipCGNXmMr2JxIJM/A130dF/ymD0FAmaqw0=; b=flc/c+qfWhEJzEysbuRYaa6Ft+h3XGXwkMHXxoRUekpwE2pZ9uZSE/fmdogMjVz9GV QY3txrn/x/V8pSWvHNO8JuQYbN1u/7ZNUQsbCvP3WtLHxufYAlfSUgmiCa0SvfliT9Ve PqR9Z8hdAZMWV0LRpk8CyvveawGtaIT233LmlwLcY0ZMiep0S9AnBI8MQZ8OM+M/RlCa 8u9LnNNwDCXF5b0WgR4AyJnSedZhQOd6yrN7iREQtskbOFey8ZVjfNfUKl/Ej4H2Vm5k xooLYG/Onju84/AScJMyKcHrFiaV+snk6pwnhvxaRVexIuwMpP3ntS2rTZLKN+zEu12c w6lQ== 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 l20si2692365ejz.355.2019.10.22.12.44.30; Tue, 22 Oct 2019 12:44:55 -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 S2388558AbfJVTmd (ORCPT + 99 others); Tue, 22 Oct 2019 15:42:33 -0400 Received: from www62.your-server.de ([213.133.104.62]:46196 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731806AbfJVTmd (ORCPT ); Tue, 22 Oct 2019 15:42:33 -0400 Received: from 13.249.197.178.dynamic.dsl-lte-bonding.lssmb00p-msn.res.cust.swisscom.ch ([178.197.249.13] helo=localhost) by www62.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1iN030-0005QE-Ii; Tue, 22 Oct 2019 21:42:26 +0200 Date: Tue, 22 Oct 2019 21:42:26 +0200 From: Daniel Borkmann To: "Ben Dooks (Codethink)" Cc: linux-kernel@lists.codethink.co.uk, Alexei Starovoitov , Martin KaFai Lau , Song Liu , Yonghong Song , Steven Rostedt , Ingo Molnar , "David S. Miller" , Jakub Kicinski , Jesper Dangaard Brouer , John Fastabend , netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] xdp: fix type of string pointer in __XDP_ACT_SYM_TAB Message-ID: <20191022194226.GD31343@pc-66.home> References: <20191022125925.10508-1-ben.dooks@codethink.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191022125925.10508-1-ben.dooks@codethink.co.uk> User-Agent: Mutt/1.12.1 (2019-06-15) X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.101.4/25610/Tue Oct 22 10:54:26 2019) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 22, 2019 at 01:59:25PM +0100, Ben Dooks (Codethink) wrote: > The table entry in __XDP_ACT_SYM_TAB for the last item is set > to { -1, 0 } where it should be { -1, NULL } as the second item > is a pointer to a string. > > Fixes the following sparse warnings: > > ./include/trace/events/xdp.h:28:1: warning: Using plain integer as NULL pointer > ./include/trace/events/xdp.h:53:1: warning: Using plain integer as NULL pointer > ./include/trace/events/xdp.h:82:1: warning: Using plain integer as NULL pointer > ./include/trace/events/xdp.h:140:1: warning: Using plain integer as NULL pointer > ./include/trace/events/xdp.h:155:1: warning: Using plain integer as NULL pointer > ./include/trace/events/xdp.h:190:1: warning: Using plain integer as NULL pointer > ./include/trace/events/xdp.h:225:1: warning: Using plain integer as NULL pointer > ./include/trace/events/xdp.h:260:1: warning: Using plain integer as NULL pointer > ./include/trace/events/xdp.h:318:1: warning: Using plain integer as NULL pointer > ./include/trace/events/xdp.h:356:1: warning: Using plain integer as NULL pointer > ./include/trace/events/xdp.h:390:1: warning: Using plain integer as NULL pointer > > Signed-off-by: Ben Dooks (Codethink) Applied, thanks!