Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp5677658ybg; Tue, 22 Oct 2019 06:53:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqw/TkCVxh6eXSwonEeB35JGJNqCuRSqLf+HJPXEo8Invdl1PbeiNb1ACGu9Dr2ggeuHJkgV X-Received: by 2002:a05:6402:751:: with SMTP id p17mr31246028edy.161.1571752401623; Tue, 22 Oct 2019 06:53:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571752401; cv=none; d=google.com; s=arc-20160816; b=ji6N9LfiXTVP+ebYNYqYKhmLtcLrEIBTCHXkZ0Yqp7XvBy2CaBMRObMdOsXE/C3rYL Cyo5r1TitQI28xQzhAKNGPX1G1D+68sTPp1EwrNqWNoVz3hv6Zw3NSw91OZHLycykhqg gToq4inijfZ9voYvk93ayz1ad56Xu7WQjU7FdssrZohSsSXVFtyK9ciBhCCiQpf+TYC5 CoWFspoDCXbNcPXvjVn6OzFB45uhrq4mW2pa1UmSx0p7NORD87r9Kxxvybgb7hN81NdY fVMl8CnuyZVQwTdYcrP0RhTAFz3qlTDctTzIiLIJFse1n7zGtIQWHnlYuB4S0yxqeoIY aS0Q== 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:mime-version :message-id:date:subject:cc:to:from; bh=V9q//ddJVLs8S7DQ56EhzxStaYREIVbwhu7oFJlNeKc=; b=kpbzwyaUcRY3cvWgrZ5oD2M5D3nGqqjfnatMu/VhSwOkcGpem4UcFqTJeyef16pGXJ WZ4z8/q8K/UetgJ1PX+rwgxeAf/CEz6FpyCWqQKZzlmfAne0N/NPHPuPrgPZOMy2JBjl zwgZKnMj61xhCwqOQ9xBXJxXsRFjgNK68u1fLWfnLM7U/z12YegRbI+N9F1t0UgoHZra jrDc0baeEbTw3SHpwgaIt+blI006O2x04VToLAGw9e63toOm+apBTng/1qApt2TMyl2/ 3I54WK/RmsVaZ5DtEp/i8uXp5PecbpRa95FVBaoNeqm8c4/n3VoOUY+fW5hFq+CsT3hm q2wQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gf9si10769127ejb.230.2019.10.22.06.52.57; Tue, 22 Oct 2019 06:53:21 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731365AbfJVM76 (ORCPT + 99 others); Tue, 22 Oct 2019 08:59:58 -0400 Received: from imap1.codethink.co.uk ([176.9.8.82]:55767 "EHLO imap1.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389138AbfJVM7x (ORCPT ); Tue, 22 Oct 2019 08:59:53 -0400 Received: from [167.98.27.226] (helo=rainbowdash.codethink.co.uk) by imap1.codethink.co.uk with esmtpsa (Exim 4.84_2 #1 (Debian)) id 1iMtl1-0002WG-UN; Tue, 22 Oct 2019 13:59:28 +0100 Received: from ben by rainbowdash.codethink.co.uk with local (Exim 4.92.3) (envelope-from ) id 1iMtl1-0002kH-6c; Tue, 22 Oct 2019 13:59:27 +0100 From: "Ben Dooks (Codethink)" To: linux-kernel@lists.codethink.co.uk Cc: "Ben Dooks (Codethink)" , Alexei Starovoitov , Daniel Borkmann , 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: [PATCH] xdp: fix type of string pointer in __XDP_ACT_SYM_TAB Date: Tue, 22 Oct 2019 13:59:25 +0100 Message-Id: <20191022125925.10508-1-ben.dooks@codethink.co.uk> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) --- Cc: Alexei Starovoitov Cc: Daniel Borkmann Cc: Martin KaFai Lau Cc: Song Liu Cc: Yonghong Song Cc: Steven Rostedt Cc: Ingo Molnar Cc: "David S. Miller" Cc: Jakub Kicinski Cc: Jesper Dangaard Brouer Cc: John Fastabend Cc: netdev@vger.kernel.org Cc: bpf@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- include/trace/events/xdp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/trace/events/xdp.h b/include/trace/events/xdp.h index 8c8420230a10..c7e3c9c5bad3 100644 --- a/include/trace/events/xdp.h +++ b/include/trace/events/xdp.h @@ -22,7 +22,7 @@ #define __XDP_ACT_SYM_FN(x) \ { XDP_##x, #x }, #define __XDP_ACT_SYM_TAB \ - __XDP_ACT_MAP(__XDP_ACT_SYM_FN) { -1, 0 } + __XDP_ACT_MAP(__XDP_ACT_SYM_FN) { -1, NULL } __XDP_ACT_MAP(__XDP_ACT_TP_FN) TRACE_EVENT(xdp_exception, -- 2.23.0