From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dl1-f50.google.com (mail-dl1-f50.google.com [74.125.82.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B89CB2F90E0 for ; Sat, 9 May 2026 18:02:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778349724; cv=none; b=rp6Ev077EMalbk8uIm8avWeW5kS2fraw294zCKYTv/dEINqKqpaGGv/fq4ZvMgn2k75A+yKsBc9DW9k4kbpF1/+Z/+eCWopj/MqSJMMagN56oPF95TqxWNj4td9yjwKwGPPPbUlEgwAmClKr/yF5GptHLm3Uj6VJFvfeO5Mk4TQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778349724; c=relaxed/simple; bh=U79g1fMHFWxFqgg5EMKtG0uZ6/sP/SNoqUC4zgV6tU0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=LYoNq0+Kx7inrz+CbRBBiH3IzVWeirIpa60yXy3+0mcRNXmiHOii+SRsi/KXQ8rbBoss8TI+8YYiimezfPqh+GV8MBugWsOLHsDPjFk7/vqzbjgIj1WraQ2EtHjEAC2uLgc9JzSoT/u3umLUKXa0nh/1bEr66PL0rATWxJ04Iqg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=LU1Jcj3O; arc=none smtp.client-ip=74.125.82.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="LU1Jcj3O" Received: by mail-dl1-f50.google.com with SMTP id a92af1059eb24-132c3280e8fso330402c88.1 for ; Sat, 09 May 2026 11:02:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778349722; x=1778954522; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=PvdHWVxPZaPcGIqjHsjQLEIDVm5Q7oKlNarSAAQjQ9A=; b=LU1Jcj3OFGo0IqdGXdw6WuQ3/69NSQycCUSiIKaJeSqGvtMZ0ussc6X/UfkUksbm9b JYl8wB2vFlZmKgp51m8AGMLPkZKV3rgem6v0K1YAq62gcOO7qSMVHIco1OdeYowYfos3 dGPJpisPbW/h+c/epCVznzBlDdh4L5qNFKxzpw/WpBt9268zTydsDn2jsxqSKe+SFEb6 q3znmxJgdKOFYlXzvSM+g7C4HcMKu3qmV+EQ3w1gjUV6SkzQy3BUNQURTZjChFMs2ivw nw/hqRo8HlZfSKbJXkwVS1M6IqbS/TKjNPtuBqzFVGVwe54+x/gcGk+qqSu+qHr+EggR evow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778349722; x=1778954522; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=PvdHWVxPZaPcGIqjHsjQLEIDVm5Q7oKlNarSAAQjQ9A=; b=WnJ3JdpYB6/zEcPxY10mMLulkegw0ims6Qgh+jFaq6c8JuKw/yeOmunwGP2KF9S1wx BKpwKnbf4smuRof3uTv2Pq1zpl1ke/EOcKa1ZR67wfk+YKQLJX57O7Zq9uctU11GNY0c gnFYQJRgntf8fziJmvN/+uP/YqBiVROzi+3b6nK051QJQGpcHYNuqSVuxqlZNWa1aiD+ 4XIWq3Mhk7I6/U9VnkcX/qxRyznKcvUbsVUUQxnps0LslzWMx2OLtpN3qymT4TFruoz9 EonwPsbLXFeCQyVH9b8ck41mHZwW/NmComVOEHa1976mD8PT2dZipbTSKlG5XU4kfxBY IwXQ== X-Forwarded-Encrypted: i=1; AFNElJ9zhsxgtagrB+d0POr2ggE+8CKWb4Ehq+1zETA9/455Fs70SVOFAbWdwpHAMwp0cVQJwJafJ1xu4KQ2XiY=@vger.kernel.org X-Gm-Message-State: AOJu0YykBJqWZiB5M2bZBGLaH5tXETR4Gw1Vc8HIot8iv+SoSGAVrQyb jEU4IoyGONgJDo0+EVOeTSFDHkyxmGopkpOXK93/a7mHLLwRVU840xEP X-Gm-Gg: Acq92OE6q4Apg8BaH0kqfM0VSfNh3Vxn1PfnyRyvCTs39+yE9JCx9zjvyiH5D5T5Tmh bnkmIE6xtAn0et5zAowfM0iuNdOhoLNWPsAPM6RN6vif4Rl3XrHsDPKsd5vuMCACaRBj/ZvNjJt ANRa9HnwYV9JocSDFZb2odzeDGvHandI2qngOG6qR0MH5BnoOGfP/oZT5MbYRXJtlNzKBy8ktoZ 6pp+gzIyRTj/weJlftTFnjp2jAUOeW5QQyqSY2Ulu0CPPLKCVTrKO/FHcVMGfjmF3ytgeHVqWTd mHLppmz0KISFsFWMvTR1rmm+TT28aAJ4Sui9YWA1LvbK3AS05WixTDrIYkU5WArgxu9S28FEJrH rpe5RNtBgYHq45MqWE1zg/331iZOF5RpX1tOEMn/Dp2VQlxNv0xpgWozcv05MS1/JhtuARYXnK5 dt1zNwjUSE8WyBjNP4aOwFAlaoEPAoNcrFxsTmalrkEvX5PCvSyZjoN58t/l2yeMk8qkKTEc6d X-Received: by 2002:a05:7022:fa3:b0:119:e56c:18ab with SMTP id a92af1059eb24-132a81d6015mr1620891c88.19.1778349721841; Sat, 09 May 2026 11:02:01 -0700 (PDT) Received: from rawhide.lvn.broadcom.net ([192.19.161.250]) by smtp.googlemail.com with ESMTPSA id a92af1059eb24-1327821fd00sm8979500c88.8.2026.05.09.11.02.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 May 2026 11:02:01 -0700 (PDT) From: Shreenidhi Shedi To: gregkh@linuxfoundation.org, acme@kernel.org, linux@treblig.org, mikhail.v.gavrilov@gmail.com Cc: yesshedi@gmail.com, linux-kernel@vger.kernel.org, Arnaldo Carvalho de Melo , Adrian Hunter , Ian Rogers , Jiri Olsa , Namhyung Kim Subject: [PATCH v1 03/18] perf test bpf: Address error about non-null argument for epoll_pwait 2nd arg Date: Sat, 9 May 2026 23:05:44 +0530 Message-ID: <20260509173559.10999-4-yesshedi@gmail.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260509173559.10999-1-yesshedi@gmail.com> References: <20260509173559.10999-1-yesshedi@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Arnaldo Carvalho de Melo commit ed847e30f001b207013b6136c264454d7560557f upstream First noticed on Fedora Rawhide: tests/bpf.c: In function ‘epoll_pwait_loop’: tests/bpf.c:36:17: error: argument 2 null where non-null expected [-Werror=nonnull] 36 | epoll_pwait(-(i + 1), NULL, 0, 0, NULL); | ^~~~~~~~~~~ In file included from tests/bpf.c:5: /usr/include/sys/epoll.h:134:12: note: in a call to function ‘epoll_pwait’ declared ‘nonnull’ 134 | extern int epoll_pwait (int __epfd, struct epoll_event *__events, | ^~~~~~~~~~~ [perfbuilder@27cfe44d67ed perf-6.5.0-rc2]$ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/13/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-redhat-linux Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,objc,obj-c++,ada,go,d,m2,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --enable-libstdcxx-backtrace --with-libstdcxx-zoneinfo=/usr/share/zoneinfo --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl=/builddir/build/BUILD/gcc-13.2.1-20230728/obj-x86_64-redhat-linux/isl-install --enable-offload-targets=nvptx-none --without-cuda-driver --enable-offload-defaulted --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux --with-build-config=bootstrap-lto --enable-link-serialization=1 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 13.2.1 20230728 (Red Hat 13.2.1-1) (GCC) [perfbuilder@27cfe44d67ed perf-6.5.0-rc2]$ Just add that argument to address this compiler warning. Cc: Adrian Hunter Cc: Ian Rogers Cc: Jiri Olsa Cc: Namhyung Kim Link: https://lore.kernel.org/lkml/ZMj8+bvN86D0ZKiB@kernel.org Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Shreenidhi Shedi --- tools/perf/tests/bpf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/perf/tests/bpf.c b/tools/perf/tests/bpf.c index 6a4235a9cf57..d5bf0e47a48a 100644 --- a/tools/perf/tests/bpf.c +++ b/tools/perf/tests/bpf.c @@ -29,11 +29,12 @@ static int epoll_pwait_loop(void) { + struct epoll_event events; int i; /* Should fail NR_ITERS times */ for (i = 0; i < NR_ITERS; i++) - epoll_pwait(-(i + 1), NULL, 0, 0, NULL); + epoll_pwait(-(i + 1), &events, 0, 0, NULL); return 0; } -- 2.54.0