From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6E171372079 for ; Thu, 21 May 2026 16:29:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779380984; cv=none; b=DayrXPHyOOG5sXRunCZB7+TuqjS0pmP2ELg+/igUPSNaqAlgFHwMwOU2WzmR962s0zOH1AwLw7XBP9xFAg6/I8MVbeNY8N3Wm1B7xfAtwYAdpR71gWTMp4TDyGlEap92JlRtxArNApm6k7pbcUh3/uwJvu7kPFKNL0keoBcS41k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779380984; c=relaxed/simple; bh=+elVUawdnEbvOAPon8TPMnzTjwPfIlNQApBTKJ8cVtg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=NWh9nhcfohCOCG3yTtE116VoKWKWo3Vph3CMbdunU4czNCQTlaRWGZDqT4t87qYZNNPYg1YPP0L91xPXxc/dp2hPUO5so12HkVKv0XHv7f+80/h2+MMv3O5UnRpN5l7A4GnJ51X4UrJMrHqZBuHyFzMRiH4V8boP7MteZ+XZI2c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=MdNvE24y; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="MdNvE24y" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1779380975; bh=+elVUawdnEbvOAPon8TPMnzTjwPfIlNQApBTKJ8cVtg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=MdNvE24yt6TrjlbBjWCdoZYWCdgpk5UPIAOGQc1gH1hrBTyKtN44J6wT5X/0Avgsy 8PEhtYsXBRANVqzv3Es2MMQNqHIj14C6nhP3BqMfsjT2FALfSbW46A6fJSPxXwD2Z3 +RultCPhntweVuBYh4yz8ub3SytLcH/vbqLTFpKA= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Thu, 21 May 2026 18:29:31 +0200 Subject: [PATCH 3/3] selftests/nolibc: test against -Wwrite-strings 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 Message-Id: <20260521-nolibc-write-strings-v1-3-2debb3ad4142@weissschuh.net> References: <20260521-nolibc-write-strings-v1-0-2debb3ad4142@weissschuh.net> In-Reply-To: <20260521-nolibc-write-strings-v1-0-2debb3ad4142@weissschuh.net> To: Willy Tarreau Cc: linux-kernel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1779380974; l=1047; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=+elVUawdnEbvOAPon8TPMnzTjwPfIlNQApBTKJ8cVtg=; b=TJSoXUFWBsgKuk9k7kkKT9roaLAIpznll2NKkNgOWX9xX2MPggiSFpA/9xAQsT1ZtFS6Ah+1n 5fsTsOLEOcKBFbjn4K8xi2gqbpePAFmcA6gcFSrr742LpCoxbf1b8hB X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= Users may use this warning when building their own applications. Make sure that nolibc does not trigger any such warnings. Signed-off-by: Thomas Weißschuh --- tools/testing/selftests/nolibc/Makefile.include | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/nolibc/Makefile.include b/tools/testing/selftests/nolibc/Makefile.include index 96fe2bc2191e..c30ca3a9ef14 100644 --- a/tools/testing/selftests/nolibc/Makefile.include +++ b/tools/testing/selftests/nolibc/Makefile.include @@ -6,7 +6,7 @@ _CFLAGS_STACKPROTECTOR ?= $(call try-run, \ $(__CFLAGS_STACKPROTECTOR)) _CFLAGS_SANITIZER ?= $(call cc-option,-fsanitize=undefined -fsanitize-trap=all) CFLAGS_NOLIBC_TEST ?= -Os -fno-ident -fno-asynchronous-unwind-tables -std=c89 \ - -W -Wall -Wextra -Wundef \ + -W -Wall -Wextra -Wundef -Wwrite-strings \ $(call cc-option,-fno-stack-protector) $(call cc-option,-Wmissing-prototypes) \ $(_CFLAGS_STACKPROTECTOR) $(_CFLAGS_SANITIZER) -- 2.54.0