[{"id":3678997,"web_url":"http://patchwork.ozlabs.org/comment/3678997/","msgid":"<20260418190921.GS41863@bill-the-cat>","list_archive_url":null,"date":"2026-04-18T19:09:21","subject":"Re: [PATCH 1/1] scripts/dtc: avoid discarded qualifiers in\n overlay_fixup_phandle","submitter":{"id":65875,"url":"http://patchwork.ozlabs.org/api/people/65875/","name":"Tom Rini","email":"trini@konsulko.com"},"content":"On Sat, Apr 18, 2026 at 08:15:10PM +0200, Heinrich Schuchardt wrote:\n\n> When building with GCC 15.2 the following warning show up:\n> \n>     scripts/dtc/libfdt/fdt_overlay.c:422:21: warning:\n>     assignment discards ‘const’ qualifier from pointer target type\n>     [-Wdiscarded-qualifiers]\n>       422 |                 sep = memchr(fixup_str, ':', fixup_len);\n>           |                     ^\n>     scripts/dtc/libfdt/fdt_overlay.c:432:21: warning:\n>     assignment discards ‘const’ qualifier from pointer target type\n>     [-Wdiscarded-qualifiers]\n>       432 |                 sep = memchr(name, ':', fixup_len);\n>           |                     ^\n> \n> Define sep as const char *.\n> \n> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>\n> ---\n>  scripts/dtc/libfdt/fdt_overlay.c | 3 ++-\n>  1 file changed, 2 insertions(+), 1 deletion(-)\n\nIs this something already fixed in upstream dtc?","headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=konsulko.com header.i=@konsulko.com header.a=rsa-sha256\n header.s=google header.b=aXD4aYci;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)","phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=konsulko.com","phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de","phobos.denx.de;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=konsulko.com header.i=@konsulko.com\n header.b=\"aXD4aYci\";\n\tdkim-atps=neutral","phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=konsulko.com","phobos.denx.de;\n spf=pass smtp.mailfrom=trini@konsulko.com"],"Received":["from phobos.denx.de (phobos.denx.de\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\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 4fyhBp676Pz1yDF\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 19 Apr 2026 05:09:38 +1000 (AEST)","from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 8163383B99;\n\tSat, 18 Apr 2026 21:09:29 +0200 (CEST)","by phobos.denx.de (Postfix, from userid 109)\n id 4C15083BC8; Sat, 18 Apr 2026 21:09:28 +0200 (CEST)","from mail-ot1-x32e.google.com (mail-ot1-x32e.google.com\n [IPv6:2607:f8b0:4864:20::32e])\n (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 333BD839D9\n for <u-boot@lists.denx.de>; Sat, 18 Apr 2026 21:09:26 +0200 (CEST)","by mail-ot1-x32e.google.com with SMTP id\n 46e09a7af769-7d55b97f358so1030618a34.3\n for <u-boot@lists.denx.de>; Sat, 18 Apr 2026 12:09:26 -0700 (PDT)","from bill-the-cat (fixed-189-203-106-235.totalplay.net.\n [189.203.106.235]) by smtp.gmail.com with ESMTPSA id\n 46e09a7af769-7dc9759bf4esm4319903a34.18.2026.04.18.12.09.23\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sat, 18 Apr 2026 12:09:23 -0700 (PDT)"],"X-Spam-Checker-Version":"SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,\n SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=konsulko.com; s=google; t=1776539365; x=1777144165; darn=lists.denx.de;\n h=in-reply-to:content-disposition:mime-version:references:message-id\n :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to;\n bh=XNQm+vmIghDhZYF54R6cMAjs1ePjRfEtabtc0VLzHwo=;\n b=aXD4aYciFuXBQs5T/rFXZ7YGD27bm2GHIsnFARwzU+BvZ8ur/av+eHwx64ricqJQJ7\n 9+0YV0G8FKTQnCnLK/wV4Ddhve604pTpbIKwVbZuZPzMzSs00Hb3zaTl1Z/iusJK+7cI\n 8DZMuYWQ9bx7TJOop6xWM2NUFT+LMdNcJZrt8=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776539365; x=1777144165;\n h=in-reply-to:content-disposition:mime-version:references:message-id\n :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc\n :subject:date:message-id:reply-to;\n bh=XNQm+vmIghDhZYF54R6cMAjs1ePjRfEtabtc0VLzHwo=;\n b=YtBkyK4fV7I2b+luBbyHFrO4VN1D2EcHXVYB7H+MmWvQHqC+n9rwhz43x5pK18vmMh\n 73ZqhYXMDK7tDnXSl+AMF9slHDb9Chise403D9MpyCbkpYd7dgz9knlsz+riKlv7mKil\n BgBKQRLRgC1NZ6OQFTd6tBDDqlKS0tJlr9aVFh8Ge42RwMRklCIYagQl2ZlbjOreDctS\n 5pWz14ROTeAc/rsD6eKss06uz/RbUuJhJvijtAHdGm9IPwjLuF/aY71T1e/wr4gU/GR6\n /Qzkg4TRBxRc/0qBCuHSl3O2cnCK1leWcq6hRVbdem70uzkaCh1PyslT6gIo9aAxH03v\n rPLw==","X-Forwarded-Encrypted":"i=1;\n AFNElJ9ghqgUjXnxPHjbJdXQJLjJrSiEIb29tKx/z84i2hRH1hgm2RVFSTqI6isEwPdOqhskVnunTto=@lists.denx.de","X-Gm-Message-State":"AOJu0YxMngt7X1HTZFXtg+LO56t8sJBvVnPU2vpC+o/Ge/dhuTN+FeRv\n TQVfi0KjJ3eh7UyovX3Kj6ozK2WatvaKnOOAB++PnMEqVZM7F3i6mrnKtPq1/RkEcMY=","X-Gm-Gg":"AeBDiesk2tmK/aGXLdcyYeCBh2ER2luvuxAvD0BaWJUamZ5sNKdgPN3Y0xU9T8vS1QZ\n fFoQTtS9VwSwi74MpdUWmspQ3GMmAXDVFE6cLTaMobbXYQwZ1y00rGv1oSOGGG/dMuK9/GjZcsL\n Q6AGs72qTyXbjJES5FKJeIJBu5CCwkJ/sXLDk73B76oH+lJNqHf2CTcndpcdfhHEk7sGWo5xoIM\n 648xgXKToB5YHg6GLpMhQmE5oAFMXBIIavPvy/qmHXQiLQUl9+8gKAbCAiRq9vMcj87sZC51VW+\n ufWrZ15SQndQRE1uPRZqzLZst6pC/gRdTTOFDSlPCt/cOsznPhiI/qYSv2+veHy21K1h9N8IgA+\n WjDKIEUhpqeqG4xcYjZsCogdht0tZux2r4MLtZt5RDCH1gqA19Ql3q5hP28X2fjIJ8nudFyvl1o\n RvDhQQX3y2Jne4mqm0mmpNw5johOsneJJl7p9/z7ceL5v8ZsYbvB8XlYbu3upEHDcOwx4EXhH4r\n nmJufqM6po3DljU+fpvdLbLQtHzbVVZ61Ctz93o+fBOeTJgJLGEeLP1MqqiKg==","X-Received":"by 2002:a05:6830:280a:b0:7dc:3db6:f02 with SMTP id\n 46e09a7af769-7dc951175bdmr5233247a34.9.1776539364863;\n Sat, 18 Apr 2026 12:09:24 -0700 (PDT)","Date":"Sat, 18 Apr 2026 13:09:21 -0600","From":"Tom Rini <trini@konsulko.com>","To":"Heinrich Schuchardt <heinrich.schuchardt@canonical.com>","Cc":"Marek Vasut <marek.vasut+renesas@mailbox.org>, u-boot@lists.denx.de","Subject":"Re: [PATCH 1/1] scripts/dtc: avoid discarded qualifiers in\n overlay_fixup_phandle","Message-ID":"<20260418190921.GS41863@bill-the-cat>","References":"<20260418181510.51490-1-heinrich.schuchardt@canonical.com>","MIME-Version":"1.0","Content-Type":"multipart/signed; micalg=pgp-sha512;\n protocol=\"application/pgp-signature\"; boundary=\"CUzb8Px2/8HG4rbF\"","Content-Disposition":"inline","In-Reply-To":"<20260418181510.51490-1-heinrich.schuchardt@canonical.com>","X-Clacks-Overhead":"GNU Terry Pratchett","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.39","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<https://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>","X-Virus-Scanned":"clamav-milter 0.103.8 at phobos.denx.de","X-Virus-Status":"Clean"}},{"id":3679002,"web_url":"http://patchwork.ozlabs.org/comment/3679002/","msgid":"<b67ed115-b040-48b0-b7d3-936dc8fb7dd6@canonical.com>","list_archive_url":null,"date":"2026-04-18T19:46:47","subject":"Re: [PATCH 1/1] scripts/dtc: avoid discarded qualifiers in\n overlay_fixup_phandle","submitter":{"id":82181,"url":"http://patchwork.ozlabs.org/api/people/82181/","name":"Heinrich Schuchardt","email":"heinrich.schuchardt@canonical.com"},"content":"On 4/18/26 21:09, Tom Rini wrote:\n> On Sat, Apr 18, 2026 at 08:15:10PM +0200, Heinrich Schuchardt wrote:\n> \n>> When building with GCC 15.2 the following warning show up:\n>>\n>>      scripts/dtc/libfdt/fdt_overlay.c:422:21: warning:\n>>      assignment discards ‘const’ qualifier from pointer target type\n>>      [-Wdiscarded-qualifiers]\n>>        422 |                 sep = memchr(fixup_str, ':', fixup_len);\n>>            |                     ^\n>>      scripts/dtc/libfdt/fdt_overlay.c:432:21: warning:\n>>      assignment discards ‘const’ qualifier from pointer target type\n>>      [-Wdiscarded-qualifiers]\n>>        432 |                 sep = memchr(name, ':', fixup_len);\n>>            |                     ^\n>>\n>> Define sep as const char *.\n>>\n>> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>\n>> ---\n>>   scripts/dtc/libfdt/fdt_overlay.c | 3 ++-\n>>   1 file changed, 2 insertions(+), 1 deletion(-)\n> \n> Is this something already fixed in upstream dtc?\n> \n\n9a1c801a1a3c (\"Fix discarded const qualifiers\")\nin git://git.kernel.org/pub/scm/utils/dtc/dtc.git\nimplements a similar change.\n\nBut the patch is not applicable:\n\nerror: scripts/dtc/fdtput.c: does not exist in index\nerror: scripts/dtc/meson.build: does not exist in index\n\nThe change in fdt_overlay.c is identical.\n\nBest regards\n\nHeinrich","headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (4096-bit key;\n unprotected) header.d=canonical.com header.i=@canonical.com\n header.a=rsa-sha256 header.s=20251003 header.b=RMk2I6eT;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)","phobos.denx.de;\n dmarc=pass (p=reject dis=none) header.from=canonical.com","phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de","phobos.denx.de;\n\tdkim=pass (4096-bit key;\n unprotected) header.d=canonical.com header.i=@canonical.com\n header.b=\"RMk2I6eT\";\n\tdkim-atps=neutral","phobos.denx.de; dmarc=pass (p=reject dis=none)\n header.from=canonical.com","phobos.denx.de; spf=pass\n smtp.mailfrom=heinrich.schuchardt@canonical.com"],"Received":["from phobos.denx.de (phobos.denx.de\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\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 4fyj1y0Qnfz1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 19 Apr 2026 05:47:01 +1000 (AEST)","from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id DABEB83B99;\n\tSat, 18 Apr 2026 21:46:53 +0200 (CEST)","by phobos.denx.de (Postfix, from userid 109)\n id AC07083BC8; Sat, 18 Apr 2026 21:46:52 +0200 (CEST)","from smtp-relay-internal-1.canonical.com\n (smtp-relay-internal-1.canonical.com [185.125.188.123])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id A2239839D9\n for <u-boot@lists.denx.de>; Sat, 18 Apr 2026 21:46:50 +0200 (CEST)","from mail-wr1-f70.google.com (mail-wr1-f70.google.com\n [209.85.221.70])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 04A853F181\n for <u-boot@lists.denx.de>; Sat, 18 Apr 2026 19:46:50 +0000 (UTC)","by mail-wr1-f70.google.com with SMTP id\n ffacd0b85a97d-43cfb72377bso1695710f8f.2\n for <u-boot@lists.denx.de>; Sat, 18 Apr 2026 12:46:49 -0700 (PDT)","from [192.168.123.154]\n (ip-176-199-115-125.um44.pools.vodafone-ip.de. [176.199.115.125])\n by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-488fc189f2esm255326825e9.7.2026.04.18.12.46.48\n (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);\n Sat, 18 Apr 2026 12:46:48 -0700 (PDT)"],"X-Spam-Checker-Version":"SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,\n DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,\n RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,\n RCVD_IN_VALIDITY_RPBL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham\n autolearn_force=no version=3.4.2","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com;\n s=20251003; t=1776541610;\n bh=5LJbTD52cXOmeB3S8dHi6Bo82WXTMAeVeWR89Pj9DKk=;\n h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From:\n In-Reply-To:Content-Type;\n b=RMk2I6eTfwf0sjE3GAhMMC4dVp72i9lpJ47yV3B+A6OB6mfbJL0tN3vGwMeLzPJbw\n pt8kETKWdRmFQxx3ifoazpo/REt57cuffBKNsu+OQMSpWwae/XXKeFB5TgFe0QRJwF\n atqsBggwaFdO6AxqVz2//VcqZVWWWE/t+dDjhdDJNS7tQKrhAjRtAs1SKzbYSHrV87\n cOlIsnFoIJMBwdpEef9aTaried+SsbKvawjDH/OqHyr1kg/NEngSEJ0ZmstA55KAWd\n dKnR4/GQHYrhE0sqBDF22iaBg+H6fMREhrUOnGRLb774c78a9HDlZ/S+nTklWTrziS\n a3u1IHy+IDPA++sPRf6qfaL+GQPTVtCJzWPzgF+R2jLSqpmbhQ5TWAeyXTYptYHDQx\n rlAYlDgulGZU+KUOcdIzeEIfG939/JObjKW6HKYTR3fLj1UfE/5FwIdWIqI9wj178E\n YOjwHgX4cLD8NdQJITt8MPbC7KNDHOfQ9mn1G3/Oavw68HEiwkahr1beCaoHhdGhA8\n 4Kv9HMibiKJ5Ds05eFNIllpfhwvxExO1gORo4H2K2gKC6xeAJnjS+h1RhHlJ/xLgh7\n VoiZ4r8tME2HWz73supgcc4td4cNV6QQHK3FJ/2229r+MdNiWnnykh6zAUQ4ON3bzX\n yx/VTZVhclqTmA/yGi3rKdOk=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776541609; x=1777146409;\n h=content-transfer-encoding:in-reply-to:from:content-language\n :references:cc:to:subject:user-agent:mime-version:date:message-id\n :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id\n :reply-to;\n bh=5LJbTD52cXOmeB3S8dHi6Bo82WXTMAeVeWR89Pj9DKk=;\n b=Pmm6FScQTijsUxoY4tjtvUgDKN2oxG99Bx/7a44CtpahH0wHeJ+C0Duo0dYzysbWQT\n JwphwJJ+zaitWD1Pt9IlQYCZ12JfssoC1Agw4eWBumwZcXvrRDRcbXEp4boqKP4blRmV\n qnPYiUXV/xTirwiTPJyQhB+N+i8IzI6ZOZE+8BsDJXZ2PcsJ5IrUmHJajY20FE8UFrMF\n dXXgcVFvEViqyVGkPgiVCVPmP8VB4r1KESyutWqos/+IReCumnHd2nRKT3iyEvytGv3n\n hzsLuUEaCH835TWRNrOZ6kCEx/QdjxuQ/5jmI7ToKyHZgxuy3AdMfF7owCOQ1RK50QqH\n 2Hnw==","X-Forwarded-Encrypted":"i=1;\n AFNElJ+4oqDgkB92p75eZWkvM34eOFH0C+r+3wa8aZavIa2gb0ProfWlMluChJOB9okEFLEg4L3wA/o=@lists.denx.de","X-Gm-Message-State":"AOJu0YxWc8vEL5rqGCGCQ/O1LjHVi8etyu8DH5jkqoVKHWEsCrsqMqr0\n boFuK709pshUR5jcikBCeddVnTPGt8uUmuXTXdbD5soHbVzJxB17KokhLELEAZYpkgurwQf+htV\n EGOWeSNJG7UQ33VftgUEDeKTXzVUGoWLn+IOrvdI+ZOye+COQudE6kZFZfIhV5tPMmK9Qxmw=","X-Gm-Gg":"AeBDieu1o+BSTwUtMRO5C3+HSVd26Yrywm85UjApBNk8R8U4Js/ECIDfeaTJP2yxrPI\n gUQq6lcI2DN6lMDcpBb1wxgU363LzLUCAf8wG3KwweOneLwou77dJHe4EiSbf1cq0v2nkrtnlS/\n rPYUg12DYayODjK32K0OrthpPpInQtB14lEoK1QwzMcmzYhyeJLGD6KTR3D7tLqS9b1cBoRwvOg\n Tvbys4v+Hyh18rcuWS/mZjT3OqhUARcnCzc9G6isFR//Le+1V0agP1GTvnBzpYFJFOQUMJ0LAzg\n wqYzCPpnf9yHJtp/+k+dEIUXFcS2+dl+X2ZuU5gwN2UoN4ytwTdz48CC4AN5iifVlRYk1yWQbeQ\n c8dQKxcvsyVC57J5N74Drnx0ZXneDSqZ8YHuwL2kMs8r9+4WaKBtzIeMB+kJ91w9fS6O4MrWV0E\n VNv181TxnUgMqmzXx66NumxPCuu6yLb73ZDmGheKsymDhRGA8CvtMfgKcCQEfCN+Dk1wA=","X-Received":["by 2002:a05:600c:8b68:b0:488:fe40:2014 with SMTP id\n 5b1f17b1804b1-488fe402016mr92739345e9.18.1776541609476;\n Sat, 18 Apr 2026 12:46:49 -0700 (PDT)","by 2002:a05:600c:8b68:b0:488:fe40:2014 with SMTP id\n 5b1f17b1804b1-488fe402016mr92739205e9.18.1776541609110;\n Sat, 18 Apr 2026 12:46:49 -0700 (PDT)"],"Message-ID":"<b67ed115-b040-48b0-b7d3-936dc8fb7dd6@canonical.com>","Date":"Sat, 18 Apr 2026 21:46:47 +0200","MIME-Version":"1.0","User-Agent":"Mozilla Thunderbird","Subject":"Re: [PATCH 1/1] scripts/dtc: avoid discarded qualifiers in\n overlay_fixup_phandle","To":"Tom Rini <trini@konsulko.com>","Cc":"Marek Vasut <marek.vasut+renesas@mailbox.org>, u-boot@lists.denx.de","References":"<20260418181510.51490-1-heinrich.schuchardt@canonical.com>\n <20260418190921.GS41863@bill-the-cat>","Content-Language":"en-US","From":"Heinrich Schuchardt <heinrich.schuchardt@canonical.com>","In-Reply-To":"<20260418190921.GS41863@bill-the-cat>","Content-Type":"text/plain; charset=UTF-8; format=flowed","Content-Transfer-Encoding":"8bit","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.39","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<https://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>","X-Virus-Scanned":"clamav-milter 0.103.8 at phobos.denx.de","X-Virus-Status":"Clean"}},{"id":3679003,"web_url":"http://patchwork.ozlabs.org/comment/3679003/","msgid":"<20260418194953.GT41863@bill-the-cat>","list_archive_url":null,"date":"2026-04-18T19:49:53","subject":"Re: [PATCH 1/1] scripts/dtc: avoid discarded qualifiers in\n overlay_fixup_phandle","submitter":{"id":65875,"url":"http://patchwork.ozlabs.org/api/people/65875/","name":"Tom Rini","email":"trini@konsulko.com"},"content":"On Sat, Apr 18, 2026 at 09:46:47PM +0200, Heinrich Schuchardt wrote:\n> On 4/18/26 21:09, Tom Rini wrote:\n> > On Sat, Apr 18, 2026 at 08:15:10PM +0200, Heinrich Schuchardt wrote:\n> > \n> > > When building with GCC 15.2 the following warning show up:\n> > > \n> > >      scripts/dtc/libfdt/fdt_overlay.c:422:21: warning:\n> > >      assignment discards ‘const’ qualifier from pointer target type\n> > >      [-Wdiscarded-qualifiers]\n> > >        422 |                 sep = memchr(fixup_str, ':', fixup_len);\n> > >            |                     ^\n> > >      scripts/dtc/libfdt/fdt_overlay.c:432:21: warning:\n> > >      assignment discards ‘const’ qualifier from pointer target type\n> > >      [-Wdiscarded-qualifiers]\n> > >        432 |                 sep = memchr(name, ':', fixup_len);\n> > >            |                     ^\n> > > \n> > > Define sep as const char *.\n> > > \n> > > Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>\n> > > ---\n> > >   scripts/dtc/libfdt/fdt_overlay.c | 3 ++-\n> > >   1 file changed, 2 insertions(+), 1 deletion(-)\n> > \n> > Is this something already fixed in upstream dtc?\n> > \n> \n> 9a1c801a1a3c (\"Fix discarded const qualifiers\")\n> in git://git.kernel.org/pub/scm/utils/dtc/dtc.git\n> implements a similar change.\n> \n> But the patch is not applicable:\n> \n> error: scripts/dtc/fdtput.c: does not exist in index\n> error: scripts/dtc/meson.build: does not exist in index\n> \n> The change in fdt_overlay.c is identical.\n\nYeah, we need to re-sync with the kernel again, and there's some other\nissue to sort out. I don't recall what, just that someone else had\nlooked and it wasn't a \"update, no changes required\". So we should look\nin to that I think. I don't know if gcc-15.2.x has released with a bug\nfix for building all of our platforms or not yet:\nhttps://gcc.gnu.org/bugzilla/show_bug.cgi?id=121588","headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=konsulko.com header.i=@konsulko.com header.a=rsa-sha256\n header.s=google header.b=BCHX8zzc;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)","phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=konsulko.com","phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de","phobos.denx.de;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=konsulko.com header.i=@konsulko.com\n header.b=\"BCHX8zzc\";\n\tdkim-atps=neutral","phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=konsulko.com","phobos.denx.de;\n spf=pass smtp.mailfrom=trini@konsulko.com"],"Received":["from phobos.denx.de (phobos.denx.de\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fyj5V1m4kz1yGt\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 19 Apr 2026 05:50:06 +1000 (AEST)","from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id B390783B99;\n\tSat, 18 Apr 2026 21:50:01 +0200 (CEST)","by phobos.denx.de (Postfix, from userid 109)\n id EDC2383FF5; Sat, 18 Apr 2026 21:50:00 +0200 (CEST)","from mail-oo1-xc42.google.com (mail-oo1-xc42.google.com\n [IPv6:2607:f8b0:4864:20::c42])\n (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 35E90839D9\n for <u-boot@lists.denx.de>; Sat, 18 Apr 2026 21:49:58 +0200 (CEST)","by mail-oo1-xc42.google.com with SMTP id\n 006d021491bc7-688a8e5fc2eso1100293eaf.0\n for <u-boot@lists.denx.de>; Sat, 18 Apr 2026 12:49:58 -0700 (PDT)","from bill-the-cat (fixed-189-203-106-235.totalplay.net.\n [189.203.106.235]) by smtp.gmail.com with ESMTPSA id\n 586e51a60fabf-42b930bd9f2sm4151900fac.8.2026.04.18.12.49.55\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sat, 18 Apr 2026 12:49:55 -0700 (PDT)"],"X-Spam-Checker-Version":"SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,\n SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=konsulko.com; s=google; t=1776541797; x=1777146597; darn=lists.denx.de;\n h=in-reply-to:content-disposition:mime-version:references:message-id\n :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to;\n bh=5BBGvJlX0jX0LR/vkmoqdZtSuaVHBZgBldDEf+hejNM=;\n b=BCHX8zzcnRK5Ihar2UzkFQ2Lwf3V3O1mtMkFjTLMfrN+HvztGD+juYqJl2wJDMemN/\n nEVWtqi8we9+pP1M0IJNKtpxru8Wsocjy9aKtzp78687rsDv1Wg12a7O+c9fRMS7UHL9\n nJw79jcUUA49BLCWdl7K8yjfq2MHPs0Bsmp9Y=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776541797; x=1777146597;\n h=in-reply-to:content-disposition:mime-version:references:message-id\n :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc\n :subject:date:message-id:reply-to;\n bh=5BBGvJlX0jX0LR/vkmoqdZtSuaVHBZgBldDEf+hejNM=;\n b=gbfvAX5kbDxIW7QGC1xQVlk0YsqmQ0gi6H7AAV0WhV6rP1b+CBNglUP/GW4FqBrfts\n kHBbawqucF9O0PnjqcsebuFncCsVeLB3/lEkkv/l1ZCxt05IzeLol9eravtDhzBjwf9r\n W/M96s7BUD7Txjfc/rdcfIVA/T08hu/hPtz/muDm/HbLiE71x0pkne1/Y7IIxH84XLDi\n nStrgD+EvBuZ6NIcXEZVKYxTh7MNZu/BgO7Nta3D1l4V0h2y8WpMxxrM670ljx+A7blF\n Dt9jMRLi2O5xFrCUAMlr6R0L2ZmBBLfF/ZxsgZdWYA5D0HIQqgdJ6MOxcpRlpdiLQgWy\n u84Q==","X-Forwarded-Encrypted":"i=1;\n AFNElJ8zOdMl7HVEF6Ti8XGOFfc3/Sm5FGr3EbBpV5RaUFKqUiEhRqftjrIBTsmmkRmAHAi0RRbalT0=@lists.denx.de","X-Gm-Message-State":"AOJu0YyB1Y3tgC9Y613vXpQvDXSsqdz5FHi1LwjQ6DxZX5C90+PRY+2v\n 6gTOLb/25hVZMvCJK2YZ7qzJSngdMMggHKlZnB9wXrNu7rG1OUU7iHTVWL2136amXVvkC3vZU+E\n dx78SafF/uuu1","X-Gm-Gg":"AeBDievqoQaiazHKu8wk6yxjYFvYYkMqcrHa6UUjLRHvTAjNXq6y5rdJbMWZ9KEkbk6\n 3P/OncVnlSUjhRJduIUVu/NhBcjKlZp7D/fSuOg88G6kOnR2DiLEKlRGWcrENYBpdrKLCMRdMXc\n yk0LWmNBOWYfuUMUV2RQFOfvp8WPjW5R/HBsfQd9aKggQUZH8QT2+8X4pjxHC+4J5RpwlBzQi7M\n A5hOZq60Itao4KAGOY2oPm5Friqs0JsbCLAXgUdj2FQSpLBUIEO2vaSpgerOx3TWlsj88i4H1FK\n uEMuvAKf1OeZ9zMxk6iM+HdMypDoBhBmOVKuUktpK6WnC/G1bTwPDt7zvbgTMQHKZrWP2L5qh76\n icXGRRulzOhKdNYlfg9E/nQbEo8YR9GmTPlrenthgL1mda423Qy+zJ0jXzOfu38yIFT0UHdDMF8\n 5DDFYCGTZGX7MyIJcoyIGcWpP/OmulDdH/vhBS1jJO5e1TDQ5VJlEb3pbUc3Uw707hd98Pv4NtZ\n 0k9wg6DA5byCkqcyM76nYo/APyhYj6qQPB4jN+zcuf+LfoRrKpN8g1Bkq7Y+w==","X-Received":"by 2002:a05:6820:162c:b0:689:ceb5:6f38 with SMTP id\n 006d021491bc7-69462de1bdfmr4251493eaf.5.1776541796838;\n Sat, 18 Apr 2026 12:49:56 -0700 (PDT)","Date":"Sat, 18 Apr 2026 13:49:53 -0600","From":"Tom Rini <trini@konsulko.com>","To":"Heinrich Schuchardt <heinrich.schuchardt@canonical.com>","Cc":"Marek Vasut <marek.vasut+renesas@mailbox.org>, u-boot@lists.denx.de","Subject":"Re: [PATCH 1/1] scripts/dtc: avoid discarded qualifiers in\n overlay_fixup_phandle","Message-ID":"<20260418194953.GT41863@bill-the-cat>","References":"<20260418181510.51490-1-heinrich.schuchardt@canonical.com>\n <20260418190921.GS41863@bill-the-cat>\n <b67ed115-b040-48b0-b7d3-936dc8fb7dd6@canonical.com>","MIME-Version":"1.0","Content-Type":"multipart/signed; micalg=pgp-sha512;\n protocol=\"application/pgp-signature\"; boundary=\"DgLeuglLftnjHMn0\"","Content-Disposition":"inline","In-Reply-To":"<b67ed115-b040-48b0-b7d3-936dc8fb7dd6@canonical.com>","X-Clacks-Overhead":"GNU Terry Pratchett","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.39","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<https://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>","X-Virus-Scanned":"clamav-milter 0.103.8 at phobos.denx.de","X-Virus-Status":"Clean"}},{"id":3679005,"web_url":"http://patchwork.ozlabs.org/comment/3679005/","msgid":"<9447010a-c660-4776-8d8c-4313f4c40ae4@canonical.com>","list_archive_url":null,"date":"2026-04-18T20:01:29","subject":"Re: [PATCH 1/1] scripts/dtc: avoid discarded qualifiers in\n overlay_fixup_phandle","submitter":{"id":82181,"url":"http://patchwork.ozlabs.org/api/people/82181/","name":"Heinrich Schuchardt","email":"heinrich.schuchardt@canonical.com"},"content":"On 4/18/26 21:49, Tom Rini wrote:\n> On Sat, Apr 18, 2026 at 09:46:47PM +0200, Heinrich Schuchardt wrote:\n>> On 4/18/26 21:09, Tom Rini wrote:\n>>> On Sat, Apr 18, 2026 at 08:15:10PM +0200, Heinrich Schuchardt wrote:\n>>>\n>>>> When building with GCC 15.2 the following warning show up:\n>>>>\n>>>>       scripts/dtc/libfdt/fdt_overlay.c:422:21: warning:\n>>>>       assignment discards ‘const’ qualifier from pointer target type\n>>>>       [-Wdiscarded-qualifiers]\n>>>>         422 |                 sep = memchr(fixup_str, ':', fixup_len);\n>>>>             |                     ^\n>>>>       scripts/dtc/libfdt/fdt_overlay.c:432:21: warning:\n>>>>       assignment discards ‘const’ qualifier from pointer target type\n>>>>       [-Wdiscarded-qualifiers]\n>>>>         432 |                 sep = memchr(name, ':', fixup_len);\n>>>>             |                     ^\n>>>>\n>>>> Define sep as const char *.\n>>>>\n>>>> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>\n>>>> ---\n>>>>    scripts/dtc/libfdt/fdt_overlay.c | 3 ++-\n>>>>    1 file changed, 2 insertions(+), 1 deletion(-)\n>>>\n>>> Is this something already fixed in upstream dtc?\n>>>\n>>\n>> 9a1c801a1a3c (\"Fix discarded const qualifiers\")\n>> in git://git.kernel.org/pub/scm/utils/dtc/dtc.git\n>> implements a similar change.\n>>\n>> But the patch is not applicable:\n>>\n>> error: scripts/dtc/fdtput.c: does not exist in index\n>> error: scripts/dtc/meson.build: does not exist in index\n>>\n>> The change in fdt_overlay.c is identical.\n> \n> Yeah, we need to re-sync with the kernel again, and there's some other\n> issue to sort out. I don't recall what, just that someone else had\n> looked and it wasn't a \"update, no changes required\". So we should look\n> in to that I think. I don't know if gcc-15.2.x has released with a bug\n> fix for building all of our platforms or not yet:\n> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121588\n> \n\nhttps://gcc.gnu.org/bugzilla/show_bug.cgi?id=121588 is marked as closed \nand backported.\n\nreleases/gcc-15.2.0-665-g4886dd899bb\n4886dd899bbb (\"lto: Fix SegFault in ICF caused by missing body\")\n\nThis is in Debian and Ubuntu since release 15.2.0-15.\nUbuntu 26.04 is at 15.2.0-16ubuntu1.\n\nBest regards\n\nHeinrich","headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (4096-bit key;\n unprotected) header.d=canonical.com header.i=@canonical.com\n header.a=rsa-sha256 header.s=20251003 header.b=Nu8/EGiJ;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=85.214.62.61; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)","phobos.denx.de;\n dmarc=pass (p=reject dis=none) header.from=canonical.com","phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de","phobos.denx.de;\n\tdkim=pass (4096-bit key;\n unprotected) header.d=canonical.com header.i=@canonical.com\n header.b=\"Nu8/EGiJ\";\n\tdkim-atps=neutral","phobos.denx.de; dmarc=pass (p=reject dis=none)\n header.from=canonical.com","phobos.denx.de; spf=pass\n smtp.mailfrom=heinrich.schuchardt@canonical.com"],"Received":["from phobos.denx.de (phobos.denx.de [85.214.62.61])\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 4fyjLs5plHz1y1V\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 19 Apr 2026 06:01:41 +1000 (AEST)","from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 0221283B99;\n\tSat, 18 Apr 2026 22:01:37 +0200 (CEST)","by phobos.denx.de (Postfix, from userid 109)\n id 5C52383BC8; Sat, 18 Apr 2026 22:01:35 +0200 (CEST)","from smtp-relay-internal-1.canonical.com\n (smtp-relay-internal-1.canonical.com [185.125.188.123])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 197B7839D9\n for <u-boot@lists.denx.de>; Sat, 18 Apr 2026 22:01:33 +0200 (CEST)","from mail-wr1-f70.google.com (mail-wr1-f70.google.com\n [209.85.221.70])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 99ABD3F181\n for <u-boot@lists.denx.de>; Sat, 18 Apr 2026 20:01:32 +0000 (UTC)","by mail-wr1-f70.google.com with SMTP id\n ffacd0b85a97d-43d780601b7so1235844f8f.2\n for <u-boot@lists.denx.de>; Sat, 18 Apr 2026 13:01:32 -0700 (PDT)","from [192.168.123.154]\n (ip-176-199-115-125.um44.pools.vodafone-ip.de. [176.199.115.125])\n by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-488fc100162sm163557485e9.5.2026.04.18.13.01.30\n (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);\n Sat, 18 Apr 2026 13:01:31 -0700 (PDT)"],"X-Spam-Checker-Version":"SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,\n DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,\n RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,\n RCVD_IN_VALIDITY_RPBL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham\n autolearn_force=no version=3.4.2","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com;\n s=20251003; t=1776542492;\n bh=RV69wxL64o+/pBYx4Lf1zFpbyESNzL3MsofhIbaoWQI=;\n h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From:\n In-Reply-To:Content-Type;\n b=Nu8/EGiJHfzQW4wWmEyk24pnNNvEkEOWaHMgFa7kVpLmmXPv1IiCdDm0EeZvd8Gbo\n w/S+3pkMpXcP7I4K5HOcrSqXf+4fMSDAUi9ZJceNAAwkABZHOgxh0sDOq4P/UlahkZ\n KjWw+EGCwFNs+huhpTFUHodAD5R3GTkLp6L9pzkmvts55c99eoK9M7OOpe9l4jAijK\n tZr7L8amOe9gvWX4VG3YTOK4l8YqREJY3AAcND87a9cYipZbQ+BEmu0t6MEgYvw+U/\n AickK0jkxRS9XMGbDn5TV3WxU3l+oMR2VOfbnpyf0aRRcdCYgDL6HS11FmHbnIHCWu\n d6ciYniMkj+byJHQaKLPMHS35VKGp1MQufixt9CD3SsNg11fO2InLDwJ/eSByKebCE\n GyvzREd+QgRmT2/5emnA4fhW7/TApxU7Xb5jC9GZqNcqnJ0KLRg/WxpWyd0F0aID2Z\n zgnNlS+/vG/wTgo1YLYjroDpdudv2GnPXf5cbqq0bO6a4CyvtI0kdmGM74TOc0MUbz\n e1B1xPSbA2SjF7sGOldH4FjdcJjv92snAtdJNpvgrvSWLv1tVCP7Cr2Wuyae+PXR/T\n TNMZcZFnXrM4qfQ8YLLaMt9gCioF+/6RTmp9WpQFFOEOkGXf5wHVaCq/Zp0fr2VZNK\n cc9blWQUHYhIfJ8qnuh1fR9k=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776542492; x=1777147292;\n h=content-transfer-encoding:in-reply-to:from:content-language\n :references:cc:to:subject:user-agent:mime-version:date:message-id\n :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id\n :reply-to;\n bh=RV69wxL64o+/pBYx4Lf1zFpbyESNzL3MsofhIbaoWQI=;\n b=mZuzjwOVRmCHrTSvZFqVefwAGmjAHsbp2RdEsZyY4c4um0BRfN/iqhm2wjqAWPdpix\n g5SzJB24EooPdKuaOOrfR4b2f0VOqaioUb0wID+9Py0bWZg0zvT52BUVXGFZ8PB7v/V2\n ZMFU3aoEry69WnNBe/m/juiaPvGqY/lb0xvuH7QoQAZEkqbGgcz/lJszH9arQ1N9Bpyk\n nnk1XPmPZ4nzGZ6fk0anF/CVEdicu78pRZ7e26YQlbAGRmGbdNFH+LswYQRBwvEaXvma\n F2f9pH8mEAJPthZSrzIL7+t2umTVVgJPXJH0XExrZvhuSQvKLjAgtlkkGfkL7v+tmCN/\n yMvQ==","X-Forwarded-Encrypted":"i=1;\n AFNElJ/5ETvi2EAB+xv7ATLmXC6u3Px8I1XHcDy1eo17+Pi1hZdizMoBYbMvtZhzKcm5Wx2CRaDegL4=@lists.denx.de","X-Gm-Message-State":"AOJu0Yy+7lFN18x3lcCvycgWw74+DkVQDR5Z1P2zvUvU9zISChPYrS0N\n 7W/4Zz4C5/VP2eywxaLzfzLSbVxai3EJx2PLELNHKkRX3YFlIkr2+TfgYCmZIVS+8twH9fieQOt\n LpUy7wHrLLprCkl66rhn0wZxKDjo5gT3E7ivjwerllY6a9eyV+KAqHcRzzxyYwMMnoD5Ajy6hm8\n pWyRY=","X-Gm-Gg":"AeBDietoyRcKWA8Zuq31R18w+8UWCM1+Kc34ulSthBM4QV599B9vBXOG79p/PfEFD8U\n DzDd0oCJfbD7/IzBoaiX1QNWTJEPZDgoEHHYkSZuAmp2xnHy2AAsxSPqXSIE6z0KM9oKRmazn3j\n FbrmYNMKINRiyTurmKxF/eVoXcAMahUm8UpbogcR8EF4s8n4gqh5Jttn9SVrTsAYclF6Bus0guE\n RmpcIeK1vn39YWVK4NNphsuEYaaO60zHb/MBxFgcoroH0uX5d6kXDT7fo3nXzXBOtHsnsmTQeot\n rWYUgkypvRb7dVzEG5G7vYJXHNrveI7S9AwGD4gwjU1Dr1BAoKo9+JaUTKzocItRDom0yT6QBVE\n MdldQEzEibU24VqcFH9qLIraR4++r9x7fTEw6qYZr4HQSMcyXRiUy4b6UmG89WaZjRpoRNx4AAf\n 5Imu9fJDDLViNHR2fgLJLSUaBaTbiC5KTSE4ERWvB+Wm6kGZNzVMczYGVidc00Suut5Mw=","X-Received":["by 2002:a05:600d:8449:b0:488:869c:edaa with SMTP id\n 5b1f17b1804b1-488fb74e103mr95551925e9.7.1776542491960;\n Sat, 18 Apr 2026 13:01:31 -0700 (PDT)","by 2002:a05:600d:8449:b0:488:869c:edaa with SMTP id\n 5b1f17b1804b1-488fb74e103mr95551755e9.7.1776542491516;\n Sat, 18 Apr 2026 13:01:31 -0700 (PDT)"],"Message-ID":"<9447010a-c660-4776-8d8c-4313f4c40ae4@canonical.com>","Date":"Sat, 18 Apr 2026 22:01:29 +0200","MIME-Version":"1.0","User-Agent":"Mozilla Thunderbird","Subject":"Re: [PATCH 1/1] scripts/dtc: avoid discarded qualifiers in\n overlay_fixup_phandle","To":"Tom Rini <trini@konsulko.com>","Cc":"Marek Vasut <marek.vasut+renesas@mailbox.org>, u-boot@lists.denx.de","References":"<20260418181510.51490-1-heinrich.schuchardt@canonical.com>\n <20260418190921.GS41863@bill-the-cat>\n <b67ed115-b040-48b0-b7d3-936dc8fb7dd6@canonical.com>\n <20260418194953.GT41863@bill-the-cat>","Content-Language":"en-US","From":"Heinrich Schuchardt <heinrich.schuchardt@canonical.com>","In-Reply-To":"<20260418194953.GT41863@bill-the-cat>","Content-Type":"text/plain; charset=UTF-8; format=flowed","Content-Transfer-Encoding":"8bit","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.39","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<https://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>","X-Virus-Scanned":"clamav-milter 0.103.8 at phobos.denx.de","X-Virus-Status":"Clean"}},{"id":3679035,"web_url":"http://patchwork.ozlabs.org/comment/3679035/","msgid":"<20260418225258.GU41863@bill-the-cat>","list_archive_url":null,"date":"2026-04-18T22:52:58","subject":"Re: [PATCH 1/1] scripts/dtc: avoid discarded qualifiers in\n overlay_fixup_phandle","submitter":{"id":65875,"url":"http://patchwork.ozlabs.org/api/people/65875/","name":"Tom Rini","email":"trini@konsulko.com"},"content":"On Sat, Apr 18, 2026 at 10:01:29PM +0200, Heinrich Schuchardt wrote:\n> On 4/18/26 21:49, Tom Rini wrote:\n> > On Sat, Apr 18, 2026 at 09:46:47PM +0200, Heinrich Schuchardt wrote:\n> > > On 4/18/26 21:09, Tom Rini wrote:\n> > > > On Sat, Apr 18, 2026 at 08:15:10PM +0200, Heinrich Schuchardt wrote:\n> > > > \n> > > > > When building with GCC 15.2 the following warning show up:\n> > > > > \n> > > > >       scripts/dtc/libfdt/fdt_overlay.c:422:21: warning:\n> > > > >       assignment discards ‘const’ qualifier from pointer target type\n> > > > >       [-Wdiscarded-qualifiers]\n> > > > >         422 |                 sep = memchr(fixup_str, ':', fixup_len);\n> > > > >             |                     ^\n> > > > >       scripts/dtc/libfdt/fdt_overlay.c:432:21: warning:\n> > > > >       assignment discards ‘const’ qualifier from pointer target type\n> > > > >       [-Wdiscarded-qualifiers]\n> > > > >         432 |                 sep = memchr(name, ':', fixup_len);\n> > > > >             |                     ^\n> > > > > \n> > > > > Define sep as const char *.\n> > > > > \n> > > > > Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>\n> > > > > ---\n> > > > >    scripts/dtc/libfdt/fdt_overlay.c | 3 ++-\n> > > > >    1 file changed, 2 insertions(+), 1 deletion(-)\n> > > > \n> > > > Is this something already fixed in upstream dtc?\n> > > > \n> > > \n> > > 9a1c801a1a3c (\"Fix discarded const qualifiers\")\n> > > in git://git.kernel.org/pub/scm/utils/dtc/dtc.git\n> > > implements a similar change.\n> > > \n> > > But the patch is not applicable:\n> > > \n> > > error: scripts/dtc/fdtput.c: does not exist in index\n> > > error: scripts/dtc/meson.build: does not exist in index\n> > > \n> > > The change in fdt_overlay.c is identical.\n> > \n> > Yeah, we need to re-sync with the kernel again, and there's some other\n> > issue to sort out. I don't recall what, just that someone else had\n> > looked and it wasn't a \"update, no changes required\". So we should look\n> > in to that I think. I don't know if gcc-15.2.x has released with a bug\n> > fix for building all of our platforms or not yet:\n> > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121588\n> > \n> \n> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121588 is marked as closed and\n> backported.\n> \n> releases/gcc-15.2.0-665-g4886dd899bb\n> 4886dd899bbb (\"lto: Fix SegFault in ICF caused by missing body\")\n> \n> This is in Debian and Ubuntu since release 15.2.0-15.\n> Ubuntu 26.04 is at 15.2.0-16ubuntu1.\n\nAnd not in\nhttps://www.kernel.org/pub/tools/crosstool/files/bin/x86_64/15.2.0/ so\nnot available to CI yet. So I would like to see if we can move up our\ndtc backport of the kernel backport, by the time there's new crosstools\navailable.","headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=konsulko.com header.i=@konsulko.com header.a=rsa-sha256\n header.s=google header.b=n2RmnFgZ;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=85.214.62.61; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)","phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=konsulko.com","phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de","phobos.denx.de;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=konsulko.com header.i=@konsulko.com\n header.b=\"n2RmnFgZ\";\n\tdkim-atps=neutral","phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=konsulko.com","phobos.denx.de;\n spf=pass smtp.mailfrom=trini@konsulko.com"],"Received":["from phobos.denx.de (phobos.denx.de [85.214.62.61])\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 4fyn8m1QVBz1yDF\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 19 Apr 2026 08:53:12 +1000 (AEST)","from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 8631683BC8;\n\tSun, 19 Apr 2026 00:53:06 +0200 (CEST)","by phobos.denx.de (Postfix, from userid 109)\n id 076A583E81; Sun, 19 Apr 2026 00:53:06 +0200 (CEST)","from mail-oa1-x43.google.com (mail-oa1-x43.google.com\n [IPv6:2001:4860:4864:20::43])\n (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 7CC6F839D9\n for <u-boot@lists.denx.de>; Sun, 19 Apr 2026 00:53:03 +0200 (CEST)","by mail-oa1-x43.google.com with SMTP id\n 586e51a60fabf-4152698e745so785735fac.1\n for <u-boot@lists.denx.de>; Sat, 18 Apr 2026 15:53:03 -0700 (PDT)","from bill-the-cat (fixed-189-203-106-235.totalplay.net.\n [189.203.106.235]) by smtp.gmail.com with ESMTPSA id\n 586e51a60fabf-42b930480bbsm4475670fac.4.2026.04.18.15.53.00\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sat, 18 Apr 2026 15:53:01 -0700 (PDT)"],"X-Spam-Checker-Version":"SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,\n SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=konsulko.com; s=google; t=1776552782; x=1777157582; darn=lists.denx.de;\n h=in-reply-to:content-disposition:mime-version:references:message-id\n :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to;\n bh=WIYcgSsqEAFD/7576DYSGhmlkCKImBL08erbylrBTEI=;\n b=n2RmnFgZDmmixIWCfR3XsEFcvphmjVdGu+MOgC+xq3TX9J8dp/ahQwbTozY3CsK5L4\n nMCw6aMtBWoKx60RTLf/VPCxUFUqrD+FNhlqv2mTlcj6+K7D33K2ivBEIjEYoOmlMc35\n 4EpbT+lxpVJgiSjiq7UpR4hKCaN7yiEqJUty4=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776552782; x=1777157582;\n h=in-reply-to:content-disposition:mime-version:references:message-id\n :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc\n :subject:date:message-id:reply-to;\n bh=WIYcgSsqEAFD/7576DYSGhmlkCKImBL08erbylrBTEI=;\n b=pM1KvxARFmsJBeGKrccWKwjpCPELiHYJKvF/HTV8Pf0P+AYi3+Vwu6WfuQSgAVWFbz\n lJjP3u1FgTELyrsnolwHEABGozatgIersoGIDCyjqNdgbiwnSSSDH+kkkMttuFXYP/5m\n P5xSQvjQL8IxOACyIVpk5gDT15jz2mhf5dxaVWiIm0QXRjWjoQV7N3fD+iDw08dM326Z\n JgUgrq/YD1BHg3FsJbCWSKyQna1dzT2C9NnQYpd5aFoUul3zweJXzvNWZzyl/Xvu1h8I\n +DjZLGCit8DXIReTFu+CP/KDnHFDFibsMCPK2fEl4W+KZkmlpC3N0gFIen4dqVwYhe3V\n nc1Q==","X-Forwarded-Encrypted":"i=1;\n AFNElJ//mXZGDutu60IlFrf3WFmgz/aDwyr4tcKYzZKF1p3+/2nxhfkJJAdZ3qVhqq83Z4oZ687gj7g=@lists.denx.de","X-Gm-Message-State":"AOJu0YxiUg8zFqzQM+60c9x/aZIyDsUjmV+y2wOBQzlcSPyh6HSjWP3h\n SIQuCiL4S8IpZ9qUc8IVxg1mgas2XOMehWrlVwO5+3tkGj7Mj2bmmc9Zht7viVTBS0w=","X-Gm-Gg":"AeBDiesiRbu9yp2FVnNvk/VNxsiPW7dHHoqOMOFie6nDRRfXNiObCVP9TcH1c5FAd0D\n Zo7zWlOkGN65amJDk3puUp1md+KWMzrCfb27FaqY8t5A3Fb6nQKqRh5Mz2d2k/7BVrX2/GYbWnR\n PBFxxhDBePxU/i9an5pIvtlbp5psOiEt/6GIQEo+Kp1djv0dD7PiCDg72EaVY3DBHccG8AmVHJe\n MK8MPzNAGrF7Zn+4fr0/9ydNx56X67F+j1YLqllxMSjfiH5JbAaAIiHSE1j1M/RiZ7pe1LOwYR0\n 5ZO4zZbzRQcP1IeKXd7wGXPK6LQp/5FGFYngHk05JJ7W+GjWXuLelGhGY7IZwb9WeaS6xe+bxRM\n MAgAEXRJHpQp2joggWdG+Br1xa2u5/xRpGfnRAL0UoFGDRvNQuw6oRgKcvhNXunnaj3PvzHgA5s\n RQ6TAoHuh8lpgq+yMjBV9ojti2Gs6KxM5F6ALlk04TjH4jTrvymbNHMFishISlaXjeOHGkkN+pT\n CKLD9/EJCaP3aUgHm8bVBbcdzC2fZkWOZMoPKmrMb1ujUEAbidaDWPOsuVhRQ==","X-Received":"by 2002:a05:6808:1384:b0:466:eeac:bdda with SMTP id\n 5614622812f47-4799c818beemr4528233b6e.5.1776552782160;\n Sat, 18 Apr 2026 15:53:02 -0700 (PDT)","Date":"Sat, 18 Apr 2026 16:52:58 -0600","From":"Tom Rini <trini@konsulko.com>","To":"Heinrich Schuchardt <heinrich.schuchardt@canonical.com>","Cc":"Marek Vasut <marek.vasut+renesas@mailbox.org>, u-boot@lists.denx.de","Subject":"Re: [PATCH 1/1] scripts/dtc: avoid discarded qualifiers in\n overlay_fixup_phandle","Message-ID":"<20260418225258.GU41863@bill-the-cat>","References":"<20260418181510.51490-1-heinrich.schuchardt@canonical.com>\n <20260418190921.GS41863@bill-the-cat>\n <b67ed115-b040-48b0-b7d3-936dc8fb7dd6@canonical.com>\n <20260418194953.GT41863@bill-the-cat>\n <9447010a-c660-4776-8d8c-4313f4c40ae4@canonical.com>","MIME-Version":"1.0","Content-Type":"multipart/signed; micalg=pgp-sha512;\n protocol=\"application/pgp-signature\"; boundary=\"XKkaDoZjm/v2TjEE\"","Content-Disposition":"inline","In-Reply-To":"<9447010a-c660-4776-8d8c-4313f4c40ae4@canonical.com>","X-Clacks-Overhead":"GNU Terry Pratchett","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.39","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<https://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>","X-Virus-Scanned":"clamav-milter 0.103.8 at phobos.denx.de","X-Virus-Status":"Clean"}}]