From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dl1-f49.google.com (mail-dl1-f49.google.com [74.125.82.49]) (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 2FBBA3BB48 for ; Sat, 9 May 2026 18:02:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778349722; cv=none; b=Zg1mRCDqs/Pf/N/u1LrnwNQHc87J3xTeAhupZM9TQ/NrpR7q/a9RDUbtZcIamknb26RtkwvuitdIIoyDw0xNtXjh6kpHsCQbk89qGiyGVde62vvKUxltJu1gUmRDyS3Wt6w5ddq4Vnm8dDtFU1jpdweQzCP73XPiOYfptD2NJa4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778349722; c=relaxed/simple; bh=9p/WEwsLyp04MTJdTkEpR/3+QbVAq1LzXtZIxyVWL6E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oxCGqKrg9r9eNXlWKU4xkk2JsrhHED7+WhyPt/lvp9QYfJrel1UgVgN4x//+yaAzpzsKZdya7psgIJyJ40MY2B1h1QS8lR3lovBExaDOVFZEfzvxDMGO/M+YnLad9VQRt9CuwVVt9VxZ2t5jNPP+M3vWSsBW2or4Tb/9QlZ+reA= 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=ow2xIP5q; arc=none smtp.client-ip=74.125.82.49 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="ow2xIP5q" Received: by mail-dl1-f49.google.com with SMTP id a92af1059eb24-12c88e5f4aeso1875718c88.0 for ; Sat, 09 May 2026 11:02:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778349720; x=1778954520; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ez8U/hLv7wgTJT8WUv/vYTVCR+MFKx//e62T787afkY=; b=ow2xIP5qlYOrW/s1Cv3kehuI33CtEAhu06SZXFG9kBFvxhK6jUayx1hMJ70vfaQmt5 MRKPVDzGtmnASqqBnVDQuDC2AYBg+5bruakJ0gAaXh0ZD8i1OzhGxcdlKK0yq4i8TFCG XUhghaSWaT0k/SvNEmSsnNv9AEK/QMaMMLi70ejb/oieY/stNKSAe3CNBBl3Bj4Ikh6y 4gGcMeHn18reo/ySdmYXY6Qlh78uanzCxepxqn1lmpL2cM/KPHmS0B3382WjGXHGKg6W ASmog//ljHUf2LtcAF6VhX1baL6Jmon53amcxGDMPUWbSU14PEihVr3S4nwirUMO1cN1 m7kA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778349720; x=1778954520; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ez8U/hLv7wgTJT8WUv/vYTVCR+MFKx//e62T787afkY=; b=VomjXlic3giZMSjTDkWfI++vsdlnMvdoHYLRGSjGyJF2MQ84ODd1sobUY2ITEZ+/CJ OxH8vhDidjAs0aNBjechHuTOsD9ZF6rx5y8W0NM1ZKwrnaCVJox/b4ukq1xvMCjRbnQw u7CZRr+/9bTKZEY1B7Y33PnTjq2kGcRCsYx4V+rIQuKzcZKFY9LAa+X6swz3/dQgZ5cS TGBygXFMFokP0C4fO8/P2KpEBUZxXr5+KOkBjsBVUhpdy0qoE+if6mghfs6/sf++60Lt qhAyHO5L99GPOwHng1NSw3pyg4yPhZAVHxwX9Fg7an4xyzyMZ4z0sLmtGYp4/kFXyuvR qSVw== X-Forwarded-Encrypted: i=1; AFNElJ8aK+l/kbp65ZjpdLH86/4DLU+34DRbygegaIA4MSyl8AB2Zy/rrWRIyM2p9yNuhF/8l7ktUDy4LyaPa/4=@vger.kernel.org X-Gm-Message-State: AOJu0YwhLx1XlNKRDo/SJIoRcZyJVpzZ5/gSyEPMo3hfk8lF8I+yf5D0 1+nPSAnurYhlMOtkH4j35KXoEHRGOfnpwTGTj+3NUAZ41URrFnuRZ+01 X-Gm-Gg: Acq92OG5phA/sBjqZ0aHjHF1RQn8i/Mv/RfeNN/edciAXWrBNn2SLPDcMmGrMLTfFTp dWDOq4ikYXHqWIKjG6wBanb1oLqwYDxaE0rg9UK70X3GATOP89n1Ka9Iq4BTfrqF5UlyK6F6usr 69CR+HILEWMj47UNvRgpza/W9p0BM+gEvx+TpQnMCh3SVZPD7izNH7oaDT0IeFrTko4BBN50ocm Y8njKMwrJHmDX1vX3OAfgtP+yX1/TBje6bkZtFn/NGUREsSCmiS3UFZX0WTV+LHKYFdV8ZqvirD tmttLfoPoMDb6l780O/ZMiFix7ofO/gybb9sc8PzMJAFiifT3kwZwHZzHSENQI8WQrULPlRdOLk pWHo047v6eRa/gMmmpmVF/F7k778dpY077L7f5+aGnc95g00HPKU0iLvUDRJq2A7vYRbFK2Tdgs +4JM7m6HRMXJW+8mTg04diKqwJetpzKq5SNvAJQ1WcQvjWlyHPgeoT754VFeg7xbY4aRpMBumO X-Received: by 2002:a05:7022:239f:b0:12d:de3e:86b1 with SMTP id a92af1059eb24-1323b0af66emr4880836c88.20.1778349720052; Sat, 09 May 2026 11:02:00 -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.01.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 May 2026 11:01:59 -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 Subject: [PATCH v1 00/18] Backport fixes for -Wdiscarded-qualifiers and -Wnonnull with newer glibc Date: Sat, 9 May 2026 23:05:41 +0530 Message-ID: <20260509173559.10999-1-yesshedi@gmail.com> X-Mailer: git-send-email 2.54.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi all, This patch series backports a number of patches from master to 6.1.y to fix `-Wdiscarded-qualifiers` and `-Wnonnull` build issues with newer glibc versions. Arnaldo Carvalho de Melo (12): perf diff: Constify strchr() return variables perf test bpf: Address error about non-null argument for epoll_pwait 2nd arg perf trace: Deal with compiler const checks perf tools: Use const for variables receiving str{str,r?chr}() returns perf strlist: Don't write to const memory perf metricgroup: Constify variables storing the result of strchr() on const tables perf session: Don't write to memory pointed to a const pointer perf trace-event: Constify variables storing the result of strchr() on const tables perf units: Constify variables storing the result of strchr() on const tables perf time-utils: Constify variables storing the result of strchr() on const tables perf demangle-java: Constify variables storing the result of strchr() on const tables perf bpf-event: Constify variables storing the result of strchr() on const tables Dr. David Alan Gilbert (1): perf tools: Remove unused color_fwrite_lines Mikhail Gavrilov (1): libbpf: Fix -Wdiscarded-qualifiers under C23 Shreenidhi Shedi (4): perf list: Fix -Wdiscarded-qualifiers under C23 perf parse-events: Fix -Wdiscarded-qualifiers under C23 perf bpf: Fix -Wdiscarded-qualifiers under C23 perf parse-events:: Fix -Wdiscarded-qualifiers under C23 tools/lib/bpf/libbpf.c | 2 +- tools/perf/builtin-diff.c | 12 +++++------- tools/perf/builtin-list.c | 3 ++- tools/perf/builtin-trace.c | 2 +- tools/perf/jvmti/libjvmti.c | 2 +- tools/perf/tests/bpf.c | 3 ++- tools/perf/util/bpf-event.c | 3 ++- tools/perf/util/bpf-loader.c | 2 +- tools/perf/util/color.c | 28 ---------------------------- tools/perf/util/color.h | 1 - tools/perf/util/demangle-java.c | 2 +- tools/perf/util/evlist.c | 3 ++- tools/perf/util/metricgroup.c | 3 +-- tools/perf/util/parse-events.c | 2 +- tools/perf/util/print-events.c | 4 ++-- tools/perf/util/session.c | 6 +++--- tools/perf/util/strlist.c | 12 ++++++++---- tools/perf/util/time-utils.c | 4 ++-- tools/perf/util/trace-event-info.c | 2 +- tools/perf/util/units.c | 2 +- 20 files changed, 37 insertions(+), 61 deletions(-) -- 2.54.0