| Message ID | 20260706211524.3801466-6-adhemerval.zanella@linaro.org (mailing list archive) |
|---|---|
| State | Dropped |
| Headers |
Return-Path: <libc-alpha-bounces~patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id EF6FE4BA2E15 for <patchwork@sourceware.org>; Mon, 6 Jul 2026 21:16:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EF6FE4BA2E15 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=EEvsM3LP X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by sourceware.org (Postfix) with ESMTPS id 0D6944BA2E30 for <libc-alpha@sourceware.org>; Mon, 6 Jul 2026 21:15:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0D6944BA2E30 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 0D6944BA2E30 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::1030 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1783372538; cv=none; b=alIO/hy5OtvDL6ZP25QWevPjXYQv96JdOHJnAkDTiUVa4HjUDYyNLA3AH6OOben/Kh3BjpIet9Qfc8d6s/umBy5I/2CjZSi3C+hMJqBpmXhYvObwA+QH3o8YJddn7zdrBR0JUXAe313DFa6ODHHW0GMAfaQLlWA3q+FTedCrnrc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1783372538; c=relaxed/simple; bh=cjKqQIecJ9YMJ7v/ztsuBuLKBsd4T1Q/Tq/bUtXh5ug=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=YrCh60xSQNZLMUl7odBEvx8BKiiDWZa94bR7Ef9QPx4yIXnfWMMxKlaR2Bn7GfYmHHOhGwNKmxryIELnYTmo18YMAw2quL5/CKLf4Ll6b40bNDZZtTLvTmkOmpy0kHVFdYVNRWZLhSZ7+NFohKh+C/UqlMTF7FMjbKaAcJE5hC8= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=EEvsM3LP DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0D6944BA2E30 Received: by mail-pj1-x1030.google.com with SMTP id 98e67ed59e1d1-38511175ad3so1532616a91.2 for <libc-alpha@sourceware.org>; Mon, 06 Jul 2026 14:15:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1783372537; x=1783977337; darn=sourceware.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=lqJ0h47nr3KqSt7ayhRAp30vVbwj26NL3pZjYLflFyg=; b=EEvsM3LPAnIiEYkb/nOQrU5NOZnObOJ2jJG07ZxpYXPUDZpbNtaNh+baYUSuBKC8gc CxVvLj0qfcAH/Ge3L9/KoeRuHzqBP+/zNDJeKGIitKvd3th7FQQd5HGUAWOV6yiHCZ6s fZQIxdCWky+xm9Yp7z2i08z0V7FsJPwsM/kVO97eesUxE/CyemZzJSjPi2MrRosobjmZ W/PtrAGz8hNs/qYA6/9eMm0U4FbAYifeTqSwjJOQOAZi8/7K67VH6zov/woFlKif/Sys u0KKs/vSiM2eCAGaXqjX6Ga1npdkBdpPiDjkY4T4iAWY5xXl86pD7gwn3JR2lFEZmd2d 7yXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783372537; x=1783977337; 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=lqJ0h47nr3KqSt7ayhRAp30vVbwj26NL3pZjYLflFyg=; b=bneVtJREmKU63T1N8OzuaFsxQTpkYzt6679h0ksJBeckI9PDoRl5g0XMP/ee/afElv yHSJklJpVbxMiw1ePLunQtowGRHcKWX+vz7xfdpAcu6+Q6o8y3aMYt/cX2U1hGrnxuBD 4V4vt/PL972V5BUmKDhADRUPIN2wAqOb7E/HDJF0mw6Ibal3K6YMduHON9A2a8X+N6Ti cCvdxflgY5JUH2CdVOAU5plB+KT+/ygubaFM4DLMbv4YlEHqGiDMWvyoCVhe9vAKUU/W 3jGtTKgdtlal270HDnYrVXVaz3oOSem8+enUQmIWA07OlFvyJr0Cb2efV/vMu4geTIaF LzPQ== X-Gm-Message-State: AOJu0YzuIJVKWeg0EWQIzp8gucaJfe9uNGQWjo2yv3WZk9BMoQ9/7y3s hXTo3iSAkOoLPtzclo60CXpjvNlW8lJRD3Qo9Oag6mw59v/BUFKpUdDarl7umDQqQ76OzimTLle CLBot X-Gm-Gg: AfdE7cl6FlDYu2jGhfVVqIi2ya28rz4fcQJCmAV8/GDOUGeqtyakWaO2yRo06bvqGLP q4qHWj+3Qx/t9LXLsGqnkCCizpsaaKqxABfpLol6SLd72/0hXDISzwVKEWnrHVoGgenfjuGl2ei XSAfZCFan9aVMRtgesZhUcxzhQBod9100x83dwjMHMoXLqKK4C/lbhLIra3/5m1/2eFs7bupIAj pmp5H1j+ULpINH2LskvbzsS+FH8m+HlM/d29FU5FDfB4GVNhkgAjkehQWKkTiLk/6RmEDGN8RKV wejBzjPKZ10k9DyoeWKFXixUNeJ3PidAPrZtNqkg2M8zW0TcHraipC3ZeX2qefnjlD9gKc5jn1L Sr4TS8nKwt8d9ungmY1fCmq8FKUTQ10SfnqME9sYJ+zpHI+CEWWR0Wc/1bwMmWOB9tPmjQT6ukO jXwzr2ULLqlJoBDzizF7hO31OG X-Received: by 2002:a17:90b:4ec5:b0:380:9157:d6c with SMTP id 98e67ed59e1d1-387568fda40mr2101471a91.10.1783372536869; Mon, 06 Jul 2026 14:15:36 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c2:2485:a9ff:45ba:83f5:84f5]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-311747f598dsm517650eec.6.2026.07.06.14.15.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2026 14:15:36 -0700 (PDT) From: Adhemerval Zanella <adhemerval.zanella@linaro.org> To: libc-alpha@sourceware.org Cc: "Andreas K . Huettel" <dilfridge@gentoo.org>, DJ Delorie <dj@redhat.com> Subject: [PATCH 5/8] elf: Emit tunconf "not recognized" warning on stderr Date: Mon, 6 Jul 2026 18:14:41 -0300 Message-ID: <20260706211524.3801466-6-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260706211524.3801466-1-adhemerval.zanella@linaro.org> References: <20260706211524.3801466-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NONE, TXREP shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list <libc-alpha.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> Errors-To: libc-alpha-bounces~patchwork=sourceware.org@sourceware.org |
| Series |
Fixes for the system-wide tunables support
|
|
Checks
| Context | Check | Description |
|---|---|---|
| redhat-pt-bot/TryBot-apply_patch | success | Patch applied to master at the time it was sent |
| linaro-tcwg-bot/tcwg_glibc_build--master-aarch64 | fail | Patch failed to apply |
| linaro-tcwg-bot/tcwg_glibc_build--master-arm | fail | Patch failed to apply |
Commit Message
Adhemerval Zanella
July 6, 2026, 9:14 p.m. UTC
For consistency with other errors. Checked on x86_64-linux-gnu and i686-linux-gnu. --- elf/tunconf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Comments
Adhemerval Zanella <adhemerval.zanella@linaro.org> writes: > For consistency with other errors. I did it this way so it *wasn't* an error, just a warning. We don't have warning_at_line(). I couldn't think of a good reason to limit the cache only to tunables that the current version of ldconfig knows about, so I didn't. This way we can support multiple versions of glibc and evern non-glibc tunables (assuming the application had a way to get to them). > diff --git a/elf/tunconf.c b/elf/tunconf.c > - printf ("%s:%d: Warning: tunable %s not recognized.\n", > - filename, lineno, name); > + error_at_line (0, 0, filename, lineno, > + "Warning: tunable %s not recognized", name);
On 08/07/26 23:20, DJ Delorie wrote: > > Adhemerval Zanella <adhemerval.zanella@linaro.org> writes: >> For consistency with other errors. > > I did it this way so it *wasn't* an error, just a warning. We don't > have warning_at_line(). I couldn't think of a good reason to limit the > cache only to tunables that the current version of ldconfig knows about, > so I didn't. This way we can support multiple versions of glibc and > evern non-glibc tunables (assuming the application had a way to get to > them). Fair enough, ignoring unknown tunable should be ok for cache generation. I withdraw this patch. > >> diff --git a/elf/tunconf.c b/elf/tunconf.c > >> - printf ("%s:%d: Warning: tunable %s not recognized.\n", >> - filename, lineno, name); >> + error_at_line (0, 0, filename, lineno, >> + "Warning: tunable %s not recognized", name); >
diff --git a/elf/tunconf.c b/elf/tunconf.c index c27b50b1de0..fa0d01b53e4 100644 --- a/elf/tunconf.c +++ b/elf/tunconf.c @@ -316,8 +316,8 @@ add_tunable (char *line, const char *filename, int lineno) break; } if (id == -1) - printf ("%s:%d: Warning: tunable %s not recognized.\n", - filename, lineno, name); + error_at_line (0, 0, filename, lineno, + "Warning: tunable %s not recognized", name); entry = (struct tunable_entry_int *) xcalloc (sizeof (struct tunable_entry_int), 1); entry->name = cache_store_string (name);