{"id":2228651,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2228651/?format=json","web_url":"http://patchwork.ozlabs.org/project/buildroot/patch/20260427074835.1452504-4-kanak.shilledar@axis.com/","project":{"id":27,"url":"http://patchwork.ozlabs.org/api/1.1/projects/27/?format=json","name":"Buildroot development","link_name":"buildroot","list_id":"buildroot.buildroot.org","list_email":"buildroot@buildroot.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20260427074835.1452504-4-kanak.shilledar@axis.com>","date":"2026-04-27T07:48:37","name":"[v2,1/1] support: kconfig: Fix compiler warnings","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"ecb1a5ff14fe34fc57a6fbd1ad268bb1ad654552","submitter":{"id":93250,"url":"http://patchwork.ozlabs.org/api/1.1/people/93250/?format=json","name":"Kanak Shilledar","email":"kanak.shilledar@axis.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/buildroot/patch/20260427074835.1452504-4-kanak.shilledar@axis.com/mbox/","series":[{"id":501593,"url":"http://patchwork.ozlabs.org/api/1.1/series/501593/?format=json","web_url":"http://patchwork.ozlabs.org/project/buildroot/list/?series=501593","date":"2026-04-27T07:48:35","name":"support: kconfig: Fix compiler warnings","version":2,"mbox":"http://patchwork.ozlabs.org/series/501593/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2228651/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2228651/checks/","tags":{},"headers":{"Return-Path":"<buildroot-bounces@buildroot.org>","X-Original-To":["incoming-buildroot@patchwork.ozlabs.org","buildroot@buildroot.org"],"Delivered-To":["patchwork-incoming-buildroot@legolas.ozlabs.org","buildroot@buildroot.org"],"Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=buildroot.org header.i=@buildroot.org\n header.a=rsa-sha256 header.s=default header.b=ru79hSOB;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org\n (client-ip=140.211.166.136; helo=smtp3.osuosl.org;\n envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org)"],"Received":["from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g3wgY1LQfz1yJX\n\tfor <incoming-buildroot@patchwork.ozlabs.org>;\n Mon, 27 Apr 2026 17:49:12 +1000 (AEST)","from localhost (localhost [127.0.0.1])\n\tby smtp3.osuosl.org (Postfix) with ESMTP id AD21360BF8;\n\tMon, 27 Apr 2026 07:49:09 +0000 (UTC)","from smtp3.osuosl.org ([127.0.0.1])\n by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id DMTG8Ch_blmJ; Mon, 27 Apr 2026 07:49:08 +0000 (UTC)","from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142])\n\tby smtp3.osuosl.org (Postfix) with ESMTP id C72E8615B9;\n\tMon, 27 Apr 2026 07:49:08 +0000 (UTC)","from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n by lists1.osuosl.org (Postfix) with ESMTP id C3E702DF\n for <buildroot@buildroot.org>; Mon, 27 Apr 2026 07:49:06 +0000 (UTC)","from localhost (localhost [127.0.0.1])\n by smtp1.osuosl.org (Postfix) with ESMTP id B3D5E85496\n for <buildroot@buildroot.org>; Mon, 27 Apr 2026 07:49:06 +0000 (UTC)","from smtp1.osuosl.org ([127.0.0.1])\n by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id coW79QjnSe9B for <buildroot@buildroot.org>;\n Mon, 27 Apr 2026 07:49:05 +0000 (UTC)","from AM0PR02CU008.outbound.protection.outlook.com\n (mail-westeuropeazlp170130006.outbound.protection.outlook.com\n [IPv6:2a01:111:f403:c201::6])\n by smtp1.osuosl.org (Postfix) with ESMTPS id 85FF38548C\n for <buildroot@buildroot.org>; Mon, 27 Apr 2026 07:49:05 +0000 (UTC)","from DB8P191CA0015.EURP191.PROD.OUTLOOK.COM (2603:10a6:10:130::25)\n by DU0PR02MB8523.eurprd02.prod.outlook.com (2603:10a6:10:3e6::21) with\n Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9846.26; Mon, 27 Apr\n 2026 07:48:59 +0000","from DB1PEPF000509E6.eurprd03.prod.outlook.com\n (2603:10a6:10:130:cafe::b0) by DB8P191CA0015.outlook.office365.com\n (2603:10a6:10:130::25) with Microsoft SMTP Server (version=TLS1_3,\n cipher=TLS_AES_256_GCM_SHA384) id 15.20.9846.26 via Frontend Transport; Mon,\n 27 Apr 2026 07:48:59 +0000","from mail.axis.com (195.60.68.100) by\n DB1PEPF000509E6.mail.protection.outlook.com (10.167.242.56) with Microsoft\n SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.20.9791.48 via Frontend Transport; Mon, 27 Apr 2026 07:48:58 +0000","from se-mail10w.axis.com (10.20.40.10) by se-mail11w.axis.com\n (10.20.40.11) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.39; Mon, 27 Apr\n 2026 09:48:58 +0200","from se-intmail01x.se.axis.com (10.4.0.28) by se-mail10w.axis.com\n (10.20.40.10) with Microsoft SMTP Server id 15.2.1748.39 via Frontend\n Transport; Mon, 27 Apr 2026 09:48:57 +0200","from pc66231-2602.sto.se.axis.com (pc66231-2602.sto.se.axis.com\n [10.133.4.42])\n by se-intmail01x.se.axis.com (Postfix) with ESMTP id 1C2147EC;\n Mon, 27 Apr 2026 09:48:58 +0200 (CEST)","by pc66231-2602.sto.se.axis.com (Postfix, from userid 21940)\n id 11F61305CE1D; Mon, 27 Apr 2026 09:48:58 +0200 (CEST)"],"X-Virus-Scanned":["amavis at osuosl.org","amavis at osuosl.org"],"X-Comment":"SPF check N/A for local connections - client-ip=140.211.166.142;\n helo=lists1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org;\n receiver=<UNKNOWN> ","DKIM-Filter":["OpenDKIM Filter v2.11.0 smtp3.osuosl.org C72E8615B9","OpenDKIM Filter v2.11.0 smtp1.osuosl.org 85FF38548C"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=buildroot.org;\n\ts=default; t=1777276148;\n\tbh=pWv+JUwB5bm/rMq0sDNVOt5xiaBxTeWOWWix4Y/En24=;\n\th=From:To:CC:Date:In-Reply-To:References:Subject:List-Id:\n\t List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:\n\t From;\n\tb=ru79hSOBfD3V/G9QYtejdsZlvGP33hMGC4ZP/0kgYggYOKKTr+Z1oLlWMT7pStu9p\n\t Pb6NeLBHM/tyOlo8RRMHe8PmHZzlXDV/wZvG+Vz+PdK7B5+4CXtKR46G3om0B67uyw\n\t N7vBkYQ1lXIE7qMN9CI3ap4hv1iZg2RYclpE9H/scudU6j8K53O10+9QUk/zxDtoxx\n\t pGGrj8wasihzA5VHgLAmaoNIOjCpUB8Xi4nUw8Daxipcq9i9LfhwsSyjmiJzBD32fU\n\t g3x/4k+UH9SIMIP44QuhXArQnz6tYsGlm6wvfvJgrv6OyU29y8bnT6P3jyO/fd6Ltl\n\t WUmNVvevGy7GA==","Received-SPF":["Pass (mailfrom) identity=mailfrom;\n client-ip=2a01:111:f403:c201::6;\n helo=am0pr02cu008.outbound.protection.outlook.com;\n envelope-from=kanak.shilledar@axis.com; receiver=<UNKNOWN>","Pass (protection.outlook.com: domain of axis.com designates\n 195.60.68.100 as permitted sender) receiver=protection.outlook.com;\n client-ip=195.60.68.100; helo=mail.axis.com; pr=C"],"DMARC-Filter":"OpenDMARC Filter v1.4.2 smtp1.osuosl.org 85FF38548C","ARC-Seal":"i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;\n b=SKPaQuoC25VH99NOK5VzcBPwmgnFwJNFBMpkz2DnIJ9VR/1bbGF1MuciMc8iAIVfccTOvdJPAtTjJ2kAnBNJFuguvx7flbJmd7FBiRjLocucvk/cnwOGH3iwvmwZR8OOCMWMInZKMOUi/5hoX9j2WUH00sL9cA7GdoDhnmZfDratxTyjEN7ao0sxB8B4O01RNeEVlrMlBbeB9gtRSMfIHy4bRo0Ip6Iykcdki7pwwxxtnTRVsy/1nSNHeXLRmgfcMYomqB9iXno0To5ayjvwVsDhnF8gXTsHQLCDBx0/DQBkSHpRU0qwWADuPawtMfSvCHvriPYok4VLKi+8ML2MkQ==","ARC-Message-Signature":"i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector10001;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;\n bh=VqV7CFif+2J3W7+zAwC3x3SEUgWpCbFTOxxV1nbpTws=;\n b=jdHwOZQIz7973iwVDb0gdIhSABT1+IczFMQH2OYOVf/YLhWhH36mkNP9xdGa/9p53GtCYo2PL/HlEiyH/pr2a5Sz8wdvZpzABQ5cnCg5J3jFvHz8QgsKovRC1LciTK6RahZtArc1glVvH5rp9yjfkFHYovBI8dotIlW/3gyUp/S97VLiru2juIyZIFxEwtQpP3kViN8b623TIcIwwvRD1gG+vSSibX6NkWaO7Xc/f1FBxbs9RpGYbubth+NJ6hMisvprGOnm1nlrLqPo+0u8m2W/+z8FTrq90sOSeQqZ3qKB5KMwDpHYixEA4j9XIulEt1yrSRNTb9kfQuI1v2tLkA==","ARC-Authentication-Results":"i=1; mx.microsoft.com 1; spf=pass (sender ip is\n 195.60.68.100) smtp.rcpttodomain=buildroot.org smtp.mailfrom=axis.com;\n dmarc=pass (p=none sp=none pct=100) action=none header.from=axis.com;\n dkim=none (message not signed); arc=none (0)","X-MS-Exchange-Authentication-Results":"spf=pass (sender IP is 195.60.68.100)\n smtp.mailfrom=axis.com; dkim=none (message not signed)\n header.d=none;dmarc=pass action=none header.from=axis.com;","From":"Kanak Shilledar <kanak.shilledar@axis.com>","To":"<buildroot@buildroot.org>","CC":"Kanak Shilledar <kanak.shilledar@axis.com>, Petr Vorel\n <petr.vorel@gmail.com>","Date":"Mon, 27 Apr 2026 09:48:37 +0200","Message-ID":"<20260427074835.1452504-4-kanak.shilledar@axis.com>","X-Mailer":"git-send-email 2.43.0","In-Reply-To":"<20260427074835.1452504-2-kanak.shilledar@axis.com>","References":"<20260427074835.1452504-2-kanak.shilledar@axis.com>","MIME-Version":"1.0","X-EOPAttributedMessage":"0","X-MS-PublicTrafficType":"Email","X-MS-TrafficTypeDiagnostic":"DB1PEPF000509E6:EE_|DU0PR02MB8523:EE_","X-MS-Office365-Filtering-Correlation-Id":"bb1775be-efce-49e4-7517-08dea43170cf","X-MS-Exchange-SenderADCheck":"1","X-MS-Exchange-AntiSpam-Relay":"0","X-Microsoft-Antispam":"BCL:0;\n ARA:13230040|36860700016|82310400026|1800799024|376014|56012099003|18002099003|22082099003|13003099007;","X-Microsoft-Antispam-Message-Info":"\n 0HtJaFXcbOr10yWfz9+ccTEYAFP3IFpadGe85NPJMtJiGghs3kHtOUXh4tZbKG/ohV0LiniPOuL6hjq6aAnaZBDFhtNhZv7kYkE59GFskhO8N0s9AfWsjav+qlXaAqT8IoGC2D3a+gPqEOGwMLBzpy1yUu/cBbUXbSU91RabyERaGWx8ffxba21RPAJrTnsXGXB+9wN+PyliK3TIRulovfjwopWO0d+iKqawBEmiIJ/IOtQYwWrzmmDgTijWJyn7uFAcDMUYHR1NJcCmQCMQBLBsdz+72YaAts6fL7q5/wof55zglHdZAiNEkUWzD01JXk8qoUhj6t8yjVbKweYHGbjfF1rZiLb3Z44bZruDsbLJlHB6Ej32nKSSy5tViINq98KBpZOtszzDbfKug7RXxFRBygxU6668/rxxLzCwN26ax3x0IwIBMtqXdKOlduEPySQdYPm0ZbqdNiOyuEtd/KFuQBQ8KvCkzwoLWyIaIETq0IS/8BukOB3meYyBhLveUqPk6Y9K/4Qe3g6Aa/0CqTkPm2hwn0jtOyysSaN5geg5J5gThV2vc9ZLGmb5kH/5SGicR9yvVVoKT71ujJqOTVd+UQHPh9IcTY/mFOtsL4ihyRCM8p+usFBDhhDD4DyGIhSfH8s6BQkz54pQwEQ8ofSyvGGtQoXAJspYq9y6laXR39LdKtVMzC8rBwYeaUSECOziAO26HSPIhDNCH06W929F2T+19x2kODHJnjqvnN8=","X-Forefront-Antispam-Report":"CIP:195.60.68.100; CTRY:SE; LANG:en; SCL:1; SRV:;\n IPV:NLI; SFV:NSPM; H:mail.axis.com; PTR:InfoDomainNonexistent; CAT:NONE;\n SFS:(13230040)(36860700016)(82310400026)(1800799024)(376014)(56012099003)(18002099003)(22082099003)(13003099007);\n DIR:OUT; SFP:1101;","X-MS-Exchange-AntiSpam-MessageData-ChunkCount":"1","X-MS-Exchange-AntiSpam-MessageData-0":"\n nva78mWzBt9kJiK3Iy0szXwK3GlH0old3a9L5Nnko9pg+LClCpxXqo7Gt3ugI6X8erTB6+15btgSuSVYUX+7wggN8xm4hd3S6k0rmYF6IcsKsjLvI3CXHFeUUKw2sDcLU6WOUZAYSUqPVaX5bLeUS1d3lasXAJxiwzlt7X4goVddF1vEECqj9VvcsyPYym5Fo2Rxbjeu+zGHzUismvYlM6d4sJR21BkFVkg1ojv0wRvJe4YgxOo9uby0rDBSuh0/KwvFUfLeh7j+tbr9q5DiIvDqxdYiYz5j6RB9o1tj/wV2Cq9pbZmdF0jQdhqNC3EJzyqdKFD1zU+wz+FrkGlJtZf8nO7IpiE5IU2gKmho8RRVzS8F05AyzQbUfHT/QMMt0ZlHE0q6gUW1qpCzFob/xRHSZIcI90/JpPk9BJD5jBr5KKrlbB36NzhhSMO1xEU5","X-OriginatorOrg":"axis.com","X-MS-Exchange-CrossTenant-OriginalArrivalTime":"27 Apr 2026 07:48:58.5675 (UTC)","X-MS-Exchange-CrossTenant-Network-Message-Id":"\n bb1775be-efce-49e4-7517-08dea43170cf","X-MS-Exchange-CrossTenant-Id":"78703d3c-b907-432f-b066-88f7af9ca3af","X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp":"\n TenantId=78703d3c-b907-432f-b066-88f7af9ca3af; Ip=[195.60.68.100];\n Helo=[mail.axis.com]","X-MS-Exchange-CrossTenant-AuthSource":"\n DB1PEPF000509E6.eurprd03.prod.outlook.com","X-MS-Exchange-CrossTenant-AuthAs":"Anonymous","X-MS-Exchange-CrossTenant-FromEntityHeader":"HybridOnPrem","X-MS-Exchange-Transport-CrossTenantHeadersStamped":"DU0PR02MB8523","X-Mailman-Original-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=axis.com; s=selector1;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=VqV7CFif+2J3W7+zAwC3x3SEUgWpCbFTOxxV1nbpTws=;\n b=LCEGcBqKFO24wWXQwwjdizGeJNudsKmp9em3y6LZLc8arJquqKiQEQJZwDQjziaVdXP/JEJ2nYm+4olwrXLDwa/m/oPyHFRfnShfqFgx5d1WyotKQBkytkq8SX7ww3l11t9ht75sKirx5fcB9l3TfCp1x5BvhZ1S2n1yI5mMC/4=","X-Mailman-Original-Authentication-Results":["smtp1.osuosl.org;\n dmarc=pass (p=none dis=none)\n header.from=axis.com","smtp1.osuosl.org;\n dkim=pass (1024-bit key,\n unprotected) header.d=axis.com header.i=@axis.com header.a=rsa-sha256\n header.s=selector1 header.b=LCEGcBqK"],"Subject":"[Buildroot] [PATCH v2 1/1] support: kconfig: Fix compiler warnings","X-BeenThere":"buildroot@buildroot.org","X-Mailman-Version":"2.1.30","Precedence":"list","List-Id":"Discussion and development of buildroot <buildroot.buildroot.org>","List-Unsubscribe":"<https://lists.buildroot.org/mailman/options/buildroot>,\n <mailto:buildroot-request@buildroot.org?subject=unsubscribe>","List-Archive":"<http://lists.buildroot.org/pipermail/buildroot/>","List-Post":"<mailto:buildroot@buildroot.org>","List-Help":"<mailto:buildroot-request@buildroot.org?subject=help>","List-Subscribe":"<https://lists.buildroot.org/mailman/listinfo/buildroot>,\n <mailto:buildroot-request@buildroot.org?subject=subscribe>","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"base64","Errors-To":"buildroot-bounces@buildroot.org","Sender":"\"buildroot\" <buildroot-bounces@buildroot.org>"},"content":"On Ubuntu 24.04.4, the compiler gives the warning of\n`-Wformat-overflow=`.\n\n```\n./util.c: In function ‘file_write_dep’:\n./util.c:86:26: warning: ‘%s’ directive writing 10 or more bytes into a region of size between 1 and 4097 [-Wformat-overflow=]\n   86 |         sprintf(buf2, \"%s%s\", dir, name);\n      |                          ^~\n./util.c:86:9: note: ‘sprintf’ output 11 or more bytes (assuming 4107) into a destination of size 4097\n   86 |         sprintf(buf2, \"%s%s\", dir, name);\n      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n```\n\nUpdate `buf2` to `PATH_MAX+20` similar to `buf`, thus giving enough\nheadroom for the filename suffix.\n\n--\nChanges in v2:\n* Changed from direct file fix to patch based fix.\n\nSigned-off-by: Kanak Shilledar <kanak.shilledar@axis.com>\n---\n .../24-support-kconfig-fix-compiler-warnings.patch | 14 ++++++++++++++\n 1 file changed, 14 insertions(+)\n create mode 100644 support/kconfig/patches/24-support-kconfig-fix-compiler-warnings.patch","diff":"diff --git a/support/kconfig/patches/24-support-kconfig-fix-compiler-warnings.patch b/support/kconfig/patches/24-support-kconfig-fix-compiler-warnings.patch\nnew file mode 100644\nindex 0000000000..daef13bcf6\n--- /dev/null\n+++ b/support/kconfig/patches/24-support-kconfig-fix-compiler-warnings.patch\n@@ -0,0 +1,14 @@\n+Index: kconfig/util.c\n+===================================================================\n+--- kconfig.orig/util.c\n++++ kconfig/util.c\n+@@ -35,7 +35,7 @@ struct file *file_lookup(const char *name)\n+ int file_write_dep(const char *name)\n+ {\n+ \tchar *str;\n+-\tchar buf[PATH_MAX+20], buf2[PATH_MAX+1], dir[PATH_MAX+1];\n++\tchar buf[PATH_MAX+20], buf2[PATH_MAX+20], dir[PATH_MAX+1];\n+ \tstruct symbol *sym, *env_sym;\n+ \tstruct expr *e;\n+ \tstruct file *file;\n+\n","prefixes":["v2","1/1"]}