[{"id":3680230,"web_url":"http://patchwork.ozlabs.org/comment/3680230/","msgid":"<20260422071541-9a295128-d913-418f-a21c-1386fca30290@linutronix.de>","date":"2026-04-22T05:56:56","subject":"Re: New warning in linus/master","submitter":{"id":87994,"url":"http://patchwork.ozlabs.org/api/people/87994/","name":"Thomas Weißschuh","email":"thomas.weissschuh@linutronix.de"},"content":"Hi Ricardo,\n\nOn Wed, Apr 22, 2026 at 11:51:45AM +0800, Ricardo Ribalda wrote:\n> Media-CI has found a couple of new warnings in the latest kernel\n> version for aarch64 and powerpc. They get fixed with this patch and\n> before moving I wanted to know if this was under your radar.\n\nThanks for the report. I was not aware of these so far.\n\n> diff --git a/arch/arm64/kernel/vdso/Makefile b/arch/arm64/kernel/vdso/Makefile\n> index 7dec05dd33b7..65914842fae0 100644\n> --- a/arch/arm64/kernel/vdso/Makefile\n> +++ b/arch/arm64/kernel/vdso/Makefile\n> @@ -50,7 +50,7 @@ CFLAGS_vgettimeofday.o = $(CC_FLAGS_ADD_VDSO)\n>  CFLAGS_vgetrandom.o = $(CC_FLAGS_ADD_VDSO)\n> \n>  ifneq ($(c-gettimeofday-y),)\n> -  CFLAGS_vgettimeofday.o += -include $(c-gettimeofday-y)\n> +  CFLAGS_vgettimeofday.o += -include $(c-gettimeofday-y)\n> -Wno-maybe-uninitialized\n>  endif\n\n(...)\n\nI'd like to know exactly what is going on before suppressing the warning.\nIt is a non-standard warning, only enabled by *some* of the vDSO builds\nfor some reason.\n\n> https://gitlab.freedesktop.org/linux-media/users/ribalda/-/pipelines/1649144/test_report?job_name=cross-gcc\n\nWhile I was able to download a configuration from this job and also use the\nsame container image, I can not reproduce the issue. Is the configuration the\nfull one or only the template?\n\nCould you provide full reproduction steps?\n\n> CONFIG_CC_VERSION_TEXT=\"aarch64-linux-gnu-gcc (Debian 15.2.0-16) 15.2.0\"\n\nThe linked test log shows GCC 14.2, not 15.2.\nNot that I could reproduce it with either one...\n\n>   SYNC    include/config/auto.conf\n>   CC      arch/arm64/kernel/vdso/vgettimeofday.o\n> In file included from <command-line>:\n> In function ‘vdso_set_timespec’,\n>     inlined from ‘do_aux’ at /workdir/lib/vdso/gettimeofday.c:266:2,\n>     inlined from ‘__cvdso_clock_gettime_common’ at\n> /workdir/lib/vdso/gettimeofday.c:293:10,\n>     inlined from ‘__cvdso_clock_gettime_data.constprop’ at\n> /workdir/lib/vdso/gettimeofday.c:306:7:\n> /workdir/lib/vdso/gettimeofday.c:104:26: warning: ‘sec’ may be used\n> uninitialized [-Wmaybe-uninitialized]\n>   104 |         ts->tv_sec = sec + __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns);\n>       |                      ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n> /workdir/lib/vdso/gettimeofday.c: In function\n> ‘__cvdso_clock_gettime_data.constprop’:\n> /workdir/lib/vdso/gettimeofday.c:242:13: note: ‘sec’ was declared here\n>   242 |         u64 sec, ns;\n>       |             ^~~\n\nThe same pattern is used in some other do_ handlers, which do not generate this\nwarning. I also can't immediately see what is wrong.\n\n(...)\n\n\nThomas","headers":{"Return-Path":"\n <linuxppc-dev+bounces-19926-incoming=patchwork.ozlabs.org@lists.ozlabs.org>","X-Original-To":["incoming@patchwork.ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n secure) header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256\n header.s=2020 header.b=z5IC0+ha;\n\tdkim=pass header.d=linutronix.de header.i=@linutronix.de\n header.a=ed25519-sha256 header.s=2020e header.b=+vmzERty;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=2404:9400:21b9:f100::1; helo=lists.ozlabs.org;\n envelope-from=linuxppc-dev+bounces-19926-incoming=patchwork.ozlabs.org@lists.ozlabs.org;\n receiver=patchwork.ozlabs.org)","lists.ozlabs.org;\n arc=none smtp.remote-ip=\"2a0a:51c0:0:12e:550::1\"","lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=linutronix.de","lists.ozlabs.org;\n\tdkim=pass (2048-bit key;\n secure) header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256\n header.s=2020 header.b=z5IC0+ha;\n\tdkim=pass header.d=linutronix.de header.i=@linutronix.de\n header.a=ed25519-sha256 header.s=2020e header.b=+vmzERty;\n\tdkim-atps=neutral","lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=linutronix.de\n (client-ip=2a0a:51c0:0:12e:550::1; helo=galois.linutronix.de;\n envelope-from=t-8ch@linutronix.de; receiver=lists.ozlabs.org)"],"Received":["from lists.ozlabs.org (lists.ozlabs.org\n [IPv6:2404:9400:21b9:f100::1])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1 raw public key)\n server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g0pQY56vcz1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 15:57:09 +1000 (AEST)","from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4g0pQY0qPwz2yql;\n\tWed, 22 Apr 2026 15:57:09 +1000 (AEST)","from galois.linutronix.de (Galois.linutronix.de\n [IPv6:2a0a:51c0:0:12e:550::1])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 4g0pQW1M6lz2xSN\n\tfor <linuxppc-dev@lists.ozlabs.org>; Wed, 22 Apr 2026 15:57:07 +1000 (AEST)"],"ARC-Seal":"i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1776837428;\n\tcv=none;\n b=lNmydvglF2q6is7dWOCJu83r+DjBP6GhhpvNImwtuAbzC0P9qxq3d9uxgOEEtWG3zle9M/QeVJc/0XRqXvYLsKVkX3mWyTld4gTvQEHCyIHcgpqxreZSSjqswuYAR0Q3Aivyi3QjPqVMWUF2AcuGDtfzMke8LhXyrLGOcraohVPepsV/tk9rD/22teopUxuebPE2foQxcXpF/93TRCK0kplSOXxmwYAsFb5HWDae+b6fv6j6ZdBS9j0JUW5oxagoRv6yLnHXBzo3aKMEFj4OkA0cJUmajmeG/PaoBgiNHsxL+z/OA5y6dqWGsbYRJesp4CqTYp8btnceb9Z1N5T1IA==","ARC-Message-Signature":"i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1776837428; c=relaxed/relaxed;\n\tbh=9ovs0MfObWMEAYCItMLX9P88HtOnHXJzwGjgwUQTUPk=;\n\th=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:\n\t Content-Type:Content-Disposition:In-Reply-To;\n b=GgbkflKlDKboQ6lKoNrCzoyGr0zfA0GJ/vlf7I4OvtMWnWOytHr6BSTsQAXNp3ko1225huwkqj1jPkeGk+tCzV47/MhxrChbT/AmBRE217UkUZJnKnVrTeI2xwdKC6caWmy0P+k1vdWB83ptmYBcbX3Y/ZyS0n+Hb9qylsgJZCOdXzfgbiyqJZvC2uzbobCa7zy5lYT7EaJMaUa46k7hen64FgwGbfiqrU6CR7GSS/YRutUSbx3iD5/+Ec4YRh/S0o0/MmT7P3rDlAAiv5f/uUQcppy+5vDVEwsXM2I5YXNCLkK7vTq1zTHHJ3vry9OZoRGHDoKYqR/+qf0PfSz7LQ==","ARC-Authentication-Results":"i=1; lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=linutronix.de;\n dkim=pass (2048-bit key;\n secure) header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256\n header.s=2020 header.b=z5IC0+ha;\n dkim=pass header.d=linutronix.de header.i=@linutronix.de\n header.a=ed25519-sha256 header.s=2020e header.b=+vmzERty; dkim-atps=neutral;\n spf=pass (client-ip=2a0a:51c0:0:12e:550::1; helo=galois.linutronix.de;\n envelope-from=t-8ch@linutronix.de;\n receiver=lists.ozlabs.org) smtp.mailfrom=linutronix.de","Date":"Wed, 22 Apr 2026 07:56:56 +0200","DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de;\n\ts=2020; t=1776837422;\n\th=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n\t to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n\t content-transfer-encoding:content-transfer-encoding:\n\t in-reply-to:in-reply-to:references:references;\n\tbh=9ovs0MfObWMEAYCItMLX9P88HtOnHXJzwGjgwUQTUPk=;\n\tb=z5IC0+haCM0qWEllygNCw1PQuTkzu27LqFvjZSvHBj4ZXX8x69qmRyLlv/UBe1hpavFlNM\n\txWrYnJLe9NMEmiLbh/SuuT+WgMn4eXdsYUjWVKGKJMbVU7Bc80LB363PKX0p8lcu6Itoyq\n\tKUPRIvrKxB1ksVBwG5SWbrvbXoswGpYDpDt8rSHNugjBVSNo94gQHIA8T+gvRNoU710V6r\n\t0Hvlo41aHnxIHrv3R+lnIqBv70/1roeTC55p1mEzqOqMRFV/nYCzH6SAhAfCBAgcxj6l1h\n\tvdi1lFJmHN8sZvA3EG+GgJKDUNY1luwR7gzMXi18/KzGqpVkO1Xc6fZZh9zoJA==","v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de;\n\ts=2020e; t=1776837422;\n\th=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n\t to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n\t content-transfer-encoding:content-transfer-encoding:\n\t in-reply-to:in-reply-to:references:references;\n\tbh=9ovs0MfObWMEAYCItMLX9P88HtOnHXJzwGjgwUQTUPk=;\n\tb=+vmzERtyQwX568xh6yyuX1pXFpi4zySDDVo3wqpZxoaQv0bY7b4/qQbeMQimiVFIVKtEUr\n\txm9FtjQQ5+pTkNAQ=="],"From":"Thomas =?utf-8?q?Wei=C3=9Fschuh?= <thomas.weissschuh@linutronix.de>","To":"Ricardo Ribalda <ribalda@chromium.org>","Cc":"linux-arm-kernel@lists.infradead.org,\n\tLinux Kernel Mailing List <linux-kernel@vger.kernel.org>,\n linuxppc-dev@lists.ozlabs.org","Subject":"Re: New warning in linus/master","Message-ID":"\n <20260422071541-9a295128-d913-418f-a21c-1386fca30290@linutronix.de>","References":"\n <CANiDSCsOy0P1if-gJZqOM5pTJ0RDcwVfru1B7KFbTOEMqjPKJw@mail.gmail.com>","X-Mailing-List":"linuxppc-dev@lists.ozlabs.org","List-Id":"<linuxppc-dev.lists.ozlabs.org>","List-Help":"<mailto:linuxppc-dev+help@lists.ozlabs.org>","List-Owner":"<mailto:linuxppc-dev+owner@lists.ozlabs.org>","List-Post":"<mailto:linuxppc-dev@lists.ozlabs.org>","List-Archive":"<https://lore.kernel.org/linuxppc-dev/>,\n  <https://lists.ozlabs.org/pipermail/linuxppc-dev/>","List-Subscribe":"<mailto:linuxppc-dev+subscribe@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-digest@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-nomail@lists.ozlabs.org>","List-Unsubscribe":"<mailto:linuxppc-dev+unsubscribe@lists.ozlabs.org>","Precedence":"list","MIME-Version":"1.0","Content-Type":"text/plain; charset=utf-8","Content-Disposition":"inline","Content-Transfer-Encoding":"8bit","In-Reply-To":"\n <CANiDSCsOy0P1if-gJZqOM5pTJ0RDcwVfru1B7KFbTOEMqjPKJw@mail.gmail.com>","X-Spam-Status":"No, score=-0.2 required=3.0 tests=DKIM_SIGNED,DKIM_VALID,\n\tDKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS\n\tautolearn=disabled version=4.0.1 OzLabs 8","X-Spam-Checker-Version":"SpamAssassin 4.0.1 (2024-03-25) on lists.ozlabs.org"}},{"id":3680244,"web_url":"http://patchwork.ozlabs.org/comment/3680244/","msgid":"<CANiDSCviww1L1p2+MvF59Biqb6hc7WdL1J37kBjFd1NXz-Yt8A@mail.gmail.com>","date":"2026-04-22T07:00:11","subject":"Re: New warning in linus/master","submitter":{"id":80459,"url":"http://patchwork.ozlabs.org/api/people/80459/","name":"Ricardo Ribalda","email":"ribalda@chromium.org"},"content":"Hi Thomas\n\nThanks for the prompt reply\n\nOn Wed, 22 Apr 2026 at 13:57, Thomas Weißschuh\n<thomas.weissschuh@linutronix.de> wrote:\n>\n> Hi Ricardo,\n>\n> On Wed, Apr 22, 2026 at 11:51:45AM +0800, Ricardo Ribalda wrote:\n> > Media-CI has found a couple of new warnings in the latest kernel\n> > version for aarch64 and powerpc. They get fixed with this patch and\n> > before moving I wanted to know if this was under your radar.\n>\n> Thanks for the report. I was not aware of these so far.\n>\n> > diff --git a/arch/arm64/kernel/vdso/Makefile b/arch/arm64/kernel/vdso/Makefile\n> > index 7dec05dd33b7..65914842fae0 100644\n> > --- a/arch/arm64/kernel/vdso/Makefile\n> > +++ b/arch/arm64/kernel/vdso/Makefile\n> > @@ -50,7 +50,7 @@ CFLAGS_vgettimeofday.o = $(CC_FLAGS_ADD_VDSO)\n> >  CFLAGS_vgetrandom.o = $(CC_FLAGS_ADD_VDSO)\n> >\n> >  ifneq ($(c-gettimeofday-y),)\n> > -  CFLAGS_vgettimeofday.o += -include $(c-gettimeofday-y)\n> > +  CFLAGS_vgettimeofday.o += -include $(c-gettimeofday-y)\n> > -Wno-maybe-uninitialized\n> >  endif\n>\n> (...)\n>\n> I'd like to know exactly what is going on before suppressing the warning.\n> It is a non-standard warning, only enabled by *some* of the vDSO builds\n> for some reason.\n>\n> > https://gitlab.freedesktop.org/linux-media/users/ribalda/-/pipelines/1649144/test_report?job_name=cross-gcc\n>\n> While I was able to download a configuration from this job and also use the\n> same container image, I can not reproduce the issue. Is the configuration the\n> full one or only the template?\n>\n> Could you provide full reproduction steps?\n\nYou can try repro with:\n\nwork/linux $ podman run -v .:/workdir/ --rm -it\nregistry.freedesktop.org/linux-media/media-ci/build:latest\n$ cd /workdir\n$ CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 make allyesconfig\n$ CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 make\narch/arm64/kernel/vdso/vgettimeofday.o\n\nThe gcc version discrepancy is because I the error was due to old gcc\nversion and I was playing around with that... but it fails in both\ngcc14 and gcc15\n\nYou can try with debian testing with\nwork/linux$ podman run -v .:/workdir/ --rm -it debian:testing\n$ apt-get update\n$ apt-get install gcc-aarch64-linux-gnu build-essential flex bison libssl-dev bc\n$ cd /workdir\n$ CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 make allyesconfig\n$ CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 make\narch/arm64/kernel/vdso/vgettimeofday.o\n\nRegards!\n\n>\n> > CONFIG_CC_VERSION_TEXT=\"aarch64-linux-gnu-gcc (Debian 15.2.0-16) 15.2.0\"\n>\n> The linked test log shows GCC 14.2, not 15.2.\n> Not that I could reproduce it with either one...\n>\n> >   SYNC    include/config/auto.conf\n> >   CC      arch/arm64/kernel/vdso/vgettimeofday.o\n> > In file included from <command-line>:\n> > In function ‘vdso_set_timespec’,\n> >     inlined from ‘do_aux’ at /workdir/lib/vdso/gettimeofday.c:266:2,\n> >     inlined from ‘__cvdso_clock_gettime_common’ at\n> > /workdir/lib/vdso/gettimeofday.c:293:10,\n> >     inlined from ‘__cvdso_clock_gettime_data.constprop’ at\n> > /workdir/lib/vdso/gettimeofday.c:306:7:\n> > /workdir/lib/vdso/gettimeofday.c:104:26: warning: ‘sec’ may be used\n> > uninitialized [-Wmaybe-uninitialized]\n> >   104 |         ts->tv_sec = sec + __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns);\n> >       |                      ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n> > /workdir/lib/vdso/gettimeofday.c: In function\n> > ‘__cvdso_clock_gettime_data.constprop’:\n> > /workdir/lib/vdso/gettimeofday.c:242:13: note: ‘sec’ was declared here\n> >   242 |         u64 sec, ns;\n> >       |             ^~~\n>\n> The same pattern is used in some other do_ handlers, which do not generate this\n> warning. I also can't immediately see what is wrong.\n>\n> (...)\n>\n>\n> Thomas","headers":{"Return-Path":"\n <linuxppc-dev+bounces-19928-incoming=patchwork.ozlabs.org@lists.ozlabs.org>","X-Original-To":["incoming@patchwork.ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256\n header.s=google header.b=IFNgRYjw;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=112.213.38.117; helo=lists.ozlabs.org;\n envelope-from=linuxppc-dev+bounces-19928-incoming=patchwork.ozlabs.org@lists.ozlabs.org;\n receiver=patchwork.ozlabs.org)","lists.ozlabs.org;\n arc=none smtp.remote-ip=\"2a00:1450:4864:20::530\"","lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=chromium.org","lists.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256\n header.s=google header.b=IFNgRYjw;\n\tdkim-atps=neutral","lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=chromium.org\n (client-ip=2a00:1450:4864:20::530; helo=mail-ed1-x530.google.com;\n envelope-from=ribalda@chromium.org; receiver=lists.ozlabs.org)"],"Received":["from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117])\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 4g0qqq1XPQz1yD5\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 17:00:38 +1000 (AEST)","from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4g0qqm6wbkz2yql;\n\tWed, 22 Apr 2026 17:00:36 +1000 (AEST)","from mail-ed1-x530.google.com (mail-ed1-x530.google.com\n [IPv6:2a00:1450:4864:20::530])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 4g0qqk19b8z2xc8\n\tfor <linuxppc-dev@lists.ozlabs.org>; Wed, 22 Apr 2026 17:00:32 +1000 (AEST)","by mail-ed1-x530.google.com with SMTP id\n 4fb4d7f45d1cf-674a44b84fcso5954679a12.1\n        for <linuxppc-dev@lists.ozlabs.org>;\n Wed, 22 Apr 2026 00:00:32 -0700 (PDT)","from mail-ej1-f42.google.com (mail-ej1-f42.google.com.\n [209.85.218.42])\n        by smtp.gmail.com with ESMTPSA id\n 4fb4d7f45d1cf-67316a69a46sm3049931a12.1.2026.04.22.00.00.25\n        for <linuxppc-dev@lists.ozlabs.org>\n        (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);\n        Wed, 22 Apr 2026 00:00:26 -0700 (PDT)","by mail-ej1-f42.google.com with SMTP id\n a640c23a62f3a-baa8c78ac7fso139713366b.0\n        for <linuxppc-dev@lists.ozlabs.org>;\n Wed, 22 Apr 2026 00:00:25 -0700 (PDT)"],"ARC-Seal":"i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1776841236;\n\tcv=none;\n b=VntJDJ8j7SUx/iMSfjZn2Pyg5bP8ubl4Fl/HYfAU61E16LC2m6/0g59EZYXA+F1EYNIswGk29jZYY9xWw5XoSaGXO+QvKBmgqwvgQIPgiLV34ikZQCfC2Zc5Fms6I533Jw4ScojM2rlwmnsPJpJU99faewsONiYlSl6hwCbyruHhN1xo1H0CdsV2Q+6d7f/5Lai9l+spIxmX7Ypknk/+IM8m6r1uW4YjvuBCjYxuzMmeqopsreFbgUxWs28HECH++/f3rUk5x9aqHok91U35yEs8LdcDTcVRsBKqzj7YaaaLtU875+MtZrDa24MjbazRnexiH3ttfdzMgQy56bSryA==","ARC-Message-Signature":"i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1776841236; c=relaxed/relaxed;\n\tbh=y7FPVHJoaG3puv6XWup3ZPoz+GkNPFrTTayyBuc9srY=;\n\th=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:\n\t To:Cc:Content-Type;\n b=njrA9CWuKl7OONpFv8wUvjbdVY51lv5U+KBgu6PqYoNUqQknUIGCN3HWQzlYpnn1PWICgcoithGvNXUTBQxqLuzN3NVj60Wjln5H0j2LdMRrBaxyziSMuMcmsbH1iNrLGxlriKXS99NRvwRpON1kbakFnw/CcYkOdPajVnekuSL86lUwfPuOoBsNXSYfAag4e0ww+mCYGU5F2CVVbhTSzDydAshsuwWgCep+svt2KEvXuiq9rYZ5kUNzzn+rzctAh38+oGb6Z1chiIsBoovpDWh/N5r0FRLT1kbL0uGefEey7F4SFn/I2LcdxO+1mbOW0DbvrOor53op/eddTSsFHg==","ARC-Authentication-Results":"i=1; lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=chromium.org;\n dkim=pass (1024-bit key;\n unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256\n header.s=google header.b=IFNgRYjw; dkim-atps=neutral;\n spf=pass (client-ip=2a00:1450:4864:20::530; helo=mail-ed1-x530.google.com;\n envelope-from=ribalda@chromium.org;\n receiver=lists.ozlabs.org) smtp.mailfrom=chromium.org","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=chromium.org; s=google; t=1776841228; x=1777446028;\n darn=lists.ozlabs.org;\n        h=content-transfer-encoding:cc:to:subject:message-id:date:from\n         :in-reply-to:references:mime-version:from:to:cc:subject:date\n         :message-id:reply-to;\n        bh=y7FPVHJoaG3puv6XWup3ZPoz+GkNPFrTTayyBuc9srY=;\n        b=IFNgRYjw9cPIvxwtNzf9bqScR4TUW41lNd2Q25xKQ1tD9mVUHYkyvgkGcpoOmMP/J+\n         a9lXC1MvVix79qWv1C1REW4Hlk6Mox7W2kpkyIcbPnyiZadQz1kAhPxaS5hI/iHEw+ID\n         ptddPY+okWM3lvCI45O/fMeG9yObMYghORmlY=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1776841228; x=1777446028;\n        h=content-transfer-encoding:cc:to:subject:message-id:date:from\n         :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from\n         :to:cc:subject:date:message-id:reply-to;\n        bh=y7FPVHJoaG3puv6XWup3ZPoz+GkNPFrTTayyBuc9srY=;\n        b=rukR3MKWdEDB8SEnMBmRSnXOh4oBDBTzyM27P/tb8HLKZb0wFfC4bD1D8ZSXFL54Ng\n         Uv2kdR3QFVDV3hGC5Aeu2j7HO7bOB9Rf0f9JliXwZ/RFZ7U2CBs7yreG7oRk7jrXZ9DY\n         2Bv3VMz/H62fm81NRSmDpa4FGqpvIliGNb8c2gXaQLSBCj6hUheCJ9EX+yzQ7l9idpa1\n         l+1IihKLXqMo45IHJ5yZvqG0u+aQXObHA49oKIh0wSq0cmCamAdRpsW3r1NRYvIGoJ5d\n         u79vXY+9hFue2Uu+R490e4QA0xqB41sSrMJXA6in97OQVa7lmQYIjltzIgM7CeOR48Nj\n         jAqA==","X-Forwarded-Encrypted":["i=1;\n AFNElJ9zOXBkkkEquneK5tyGha1xds0AaYgxBlKNFOob9Eo2BVSzTx7G9/JWbTG+opFKkfkWQegavVI7K0UqsbU=@lists.ozlabs.org","i=1;\n AFNElJ8zmGp7NnRjo1bNJ98Z23vH7Olq1Fh4FkCkUi8x/NCGDD9fZrZpPno+lHfLRStNFGFxm460t6KkAm1MFc4=@lists.ozlabs.org"],"X-Gm-Message-State":"AOJu0YxHktYDI5xvBiu4PK42jOaUGSofi2CRYXVxBXaM3+A9bW7o2cZf\n\tikvhw0XN3DaYY4sZ85emHZqwBO8az0ahvuvZNu0exCJ7qA4LKbGuQHReGZ4JoaPplzwqSBv7px8\n\tBBntjsw==","X-Gm-Gg":"AeBDievzy1Go5hTkB14O4aBsdzyElLn61VruDyLkTAtdrQduGQDfkwGr1Wq5WjXpYyE\n\tIJVDZG0w5yjPikPx4Cz/52jgtmIhtwENNQ/QwSMM/xcan3444epGLBeX6xGySvHk07lUZ4/bDwZ\n\toVwRTLc6t9Cy/gml2ALfVtTTqIEPyw59y91S7UkYVUwdUxm7g4tF1NIPHsYW9uhYBG2rAazWDap\n\t+N3C7YXDVaMTt/vgzfijSVrUTaeAhMwM6pNo3P8e8A0uXwtTZtNKPrZzKCYSeV8NspuodaUnf5a\n\taKqz5pc+t/+S8znOJAclW4m4Np3Q7NPRRl7hrLyMikKBspGvCzkVz/UUZVmj0nudLwZxxRZhB03\n\tdwd5OJjJOE/apgLLMB4OmtCdsGJ+/wQN0IkkrWDn5xy4qzDVl2YP6ABDVjO+SSQT5dB+2pYuTjf\n\t0c//VrEPLdFNzUzPnbJ6QXZLwkOL9xSSmoQIEz3kyLsOAnOonGLA0WFGiC","X-Received":["by 2002:a05:6402:35d5:b0:676:99a2:296d with SMTP id\n 4fb4d7f45d1cf-67699a229e2mr3403513a12.6.1776841227673;\n        Wed, 22 Apr 2026 00:00:27 -0700 (PDT)","by 2002:a17:907:72c6:b0:ba6:1412:9339 with SMTP id\n a640c23a62f3a-ba6141295bfmr736745866b.20.1776841224135; Wed, 22 Apr 2026\n 00:00:24 -0700 (PDT)"],"X-Mailing-List":"linuxppc-dev@lists.ozlabs.org","List-Id":"<linuxppc-dev.lists.ozlabs.org>","List-Help":"<mailto:linuxppc-dev+help@lists.ozlabs.org>","List-Owner":"<mailto:linuxppc-dev+owner@lists.ozlabs.org>","List-Post":"<mailto:linuxppc-dev@lists.ozlabs.org>","List-Archive":"<https://lore.kernel.org/linuxppc-dev/>,\n  <https://lists.ozlabs.org/pipermail/linuxppc-dev/>","List-Subscribe":"<mailto:linuxppc-dev+subscribe@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-digest@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-nomail@lists.ozlabs.org>","List-Unsubscribe":"<mailto:linuxppc-dev+unsubscribe@lists.ozlabs.org>","Precedence":"list","MIME-Version":"1.0","References":"\n <CANiDSCsOy0P1if-gJZqOM5pTJ0RDcwVfru1B7KFbTOEMqjPKJw@mail.gmail.com>\n <20260422071541-9a295128-d913-418f-a21c-1386fca30290@linutronix.de>","In-Reply-To":"\n <20260422071541-9a295128-d913-418f-a21c-1386fca30290@linutronix.de>","From":"Ricardo Ribalda <ribalda@chromium.org>","Date":"Wed, 22 Apr 2026 15:00:11 +0800","X-Gmail-Original-Message-ID":"\n <CANiDSCviww1L1p2+MvF59Biqb6hc7WdL1J37kBjFd1NXz-Yt8A@mail.gmail.com>","X-Gm-Features":"AQROBzBGVi8LEvYMOBvlvkNfmwMd-5JBUrvgcCu22OEXpA-bBMJrHFL2pdRz-k8","Message-ID":"\n <CANiDSCviww1L1p2+MvF59Biqb6hc7WdL1J37kBjFd1NXz-Yt8A@mail.gmail.com>","Subject":"Re: New warning in linus/master","To":"=?utf-8?q?Thomas_Wei=C3=9Fschuh?= <thomas.weissschuh@linutronix.de>","Cc":"linux-arm-kernel@lists.infradead.org,\n\tLinux Kernel Mailing List <linux-kernel@vger.kernel.org>,\n linuxppc-dev@lists.ozlabs.org","Content-Type":"text/plain; charset=\"UTF-8\"","Content-Transfer-Encoding":"quoted-printable","X-Spam-Status":"No, score=-0.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED,\n\tDKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,\n\tSPF_HELO_NONE,SPF_PASS autolearn=disabled version=4.0.1 OzLabs 8","X-Spam-Checker-Version":"SpamAssassin 4.0.1 (2024-03-25) on lists.ozlabs.org"}},{"id":3680258,"web_url":"http://patchwork.ozlabs.org/comment/3680258/","msgid":"<5d16def3-3bad-49b1-866d-94a522e8d394@kernel.org>","date":"2026-04-22T07:26:02","subject":"Re: New warning in linus/master","submitter":{"id":92089,"url":"http://patchwork.ozlabs.org/api/people/92089/","name":"Christophe Leroy (CS GROUP)","email":"chleroy@kernel.org"},"content":"Le 22/04/2026 à 07:56, Thomas Weißschuh a écrit :\n> Hi Ricardo,\n> \n> On Wed, Apr 22, 2026 at 11:51:45AM +0800, Ricardo Ribalda wrote:\n>> Media-CI has found a couple of new warnings in the latest kernel\n>> version for aarch64 and powerpc. They get fixed with this patch and\n>> before moving I wanted to know if this was under your radar.\n> \n> Thanks for the report. I was not aware of these so far.\n> \n>> diff --git a/arch/arm64/kernel/vdso/Makefile b/arch/arm64/kernel/vdso/Makefile\n>> index 7dec05dd33b7..65914842fae0 100644\n>> --- a/arch/arm64/kernel/vdso/Makefile\n>> +++ b/arch/arm64/kernel/vdso/Makefile\n>> @@ -50,7 +50,7 @@ CFLAGS_vgettimeofday.o = $(CC_FLAGS_ADD_VDSO)\n>>   CFLAGS_vgetrandom.o = $(CC_FLAGS_ADD_VDSO)\n>>\n>>   ifneq ($(c-gettimeofday-y),)\n>> -  CFLAGS_vgettimeofday.o += -include $(c-gettimeofday-y)\n>> +  CFLAGS_vgettimeofday.o += -include $(c-gettimeofday-y)\n>> -Wno-maybe-uninitialized\n>>   endif\n> \n> (...)\n> \n> I'd like to know exactly what is going on before suppressing the warning.\n> It is a non-standard warning, only enabled by *some* of the vDSO builds\n> for some reason.\n> \n>> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitlab.freedesktop.org%2Flinux-media%2Fusers%2Fribalda%2F-%2Fpipelines%2F1649144%2Ftest_report%3Fjob_name%3Dcross-gcc&data=05%7C02%7Cchristophe.leroy2%40cs-soprasteria.com%7C5c0f15ee20a44072f47108dea0340304%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C639124342424606113%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=9Tvp2aYfB02ijxVGLzCOYcMwZlPvqVDufxEporLl1mc%3D&reserved=0\n> \n> While I was able to download a configuration from this job and also use the\n> same container image, I can not reproduce the issue. Is the configuration the\n> full one or only the template?\n> \n> Could you provide full reproduction steps?\n> \n>> CONFIG_CC_VERSION_TEXT=\"aarch64-linux-gnu-gcc (Debian 15.2.0-16) 15.2.0\"\n> \n> The linked test log shows GCC 14.2, not 15.2.\n> Not that I could reproduce it with either one...\n> \n>>    SYNC    include/config/auto.conf\n>>    CC      arch/arm64/kernel/vdso/vgettimeofday.o\n>> In file included from <command-line>:\n>> In function ‘vdso_set_timespec’,\n>>      inlined from ‘do_aux’ at /workdir/lib/vdso/gettimeofday.c:266:2,\n>>      inlined from ‘__cvdso_clock_gettime_common’ at\n>> /workdir/lib/vdso/gettimeofday.c:293:10,\n>>      inlined from ‘__cvdso_clock_gettime_data.constprop’ at\n>> /workdir/lib/vdso/gettimeofday.c:306:7:\n>> /workdir/lib/vdso/gettimeofday.c:104:26: warning: ‘sec’ may be used\n>> uninitialized [-Wmaybe-uninitialized]\n>>    104 |         ts->tv_sec = sec + __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns);\n>>        |                      ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n>> /workdir/lib/vdso/gettimeofday.c: In function\n>> ‘__cvdso_clock_gettime_data.constprop’:\n>> /workdir/lib/vdso/gettimeofday.c:242:13: note: ‘sec’ was declared here\n>>    242 |         u64 sec, ns;\n>>        |             ^~~\n> \n> The same pattern is used in some other do_ handlers, which do not generate this\n> warning. I also can't immediately see what is wrong.\n\nYou are likely in a special case where vdso_get_timestamp() returns \nfalse without setting &sec, and some versions of GCC and/or CLANG fail \nto see that vdso_set_timespec() is not called when vdso_get_timestamp() \nreturns false.\n\nChristophe","headers":{"Return-Path":"\n <linuxppc-dev+bounces-19931-incoming=patchwork.ozlabs.org@lists.ozlabs.org>","X-Original-To":["incoming@patchwork.ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=EzBqLzuO;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=2404:9400:21b9:f100::1; helo=lists.ozlabs.org;\n envelope-from=linuxppc-dev+bounces-19931-incoming=patchwork.ozlabs.org@lists.ozlabs.org;\n receiver=patchwork.ozlabs.org)","lists.ozlabs.org;\n arc=none smtp.remote-ip=172.105.4.254","lists.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org","lists.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=EzBqLzuO;\n\tdkim-atps=neutral","lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org\n (client-ip=172.105.4.254; helo=tor.source.kernel.org;\n envelope-from=chleroy@kernel.org; receiver=lists.ozlabs.org)"],"Received":["from lists.ozlabs.org (lists.ozlabs.org\n [IPv6:2404:9400:21b9:f100::1])\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 4g0rPJ5YjGz1yD5\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 17:26:11 +1000 (AEST)","from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4g0rPG5pVHz2yql;\n\tWed, 22 Apr 2026 17:26:10 +1000 (AEST)","from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 4g0rPF401kz2xc8\n\tfor <linuxppc-dev@lists.ozlabs.org>; Wed, 22 Apr 2026 17:26:09 +1000 (AEST)","from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58])\n\tby tor.source.kernel.org (Postfix) with ESMTP id 87AF460018;\n\tWed, 22 Apr 2026 07:26:05 +0000 (UTC)","by smtp.kernel.org (Postfix) with ESMTPSA id 4C7F7C19425;\n\tWed, 22 Apr 2026 07:26:04 +0000 (UTC)"],"ARC-Seal":"i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1776842770;\n\tcv=none;\n b=cUtM3kDUkYxMarvAHpyDfhombTGG6dyhr6G/1N+i3DsfvVsC6fOufyAd2ktPm4bwFWBW9RVeazO7w790fjl1E4321bhNvIIYcdBpxldU6o0XUNyLcRrEtCbvmPUo512UoCZhxCZseG9bR4E5GshE03LnLXJxTfCE3AvnjwX5jEGHwIx46iox8bmOXCNTYoTNemmH8b3vZsADZJ4X8QER8yCQ6kAEc6oQneg/QW4btoxKkpLPGa4+GAAOpmXBx7pkDhjk0sBk8jgdgeyQC+CKY8mtcoYOYptUw4oQPgyBIfNZs0T7nKjPg/ADO5w8wiyrc+TK4eWVgd1BgnsXiu18Mg==","ARC-Message-Signature":"i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1776842770; c=relaxed/relaxed;\n\tbh=7lK25W7+Mcjv1QQUKw5l94ZN7yEGQLyRTS4aEO3CXdU=;\n\th=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From:\n\t In-Reply-To:Content-Type;\n b=BJDH47VIVUefV91K3JbxMkKjJy8Z60kH/j3cSntqhdMK1T+sfXIjrRzkM+zziBxlylNWLoQoYD0uyBtRKf9NB02cxg17Reo8HouOk3IAFKTSwJ/tQDX6frLC2duiCXdm2hKOdnkOl1MkuckIw3GgV/f770GifpAwPeEJ1n8ODSFu+DuX5n+TE6UCDZPbCwRCZl+a0lq5LBlmMIAggKajvuoq6F3NB/St62/DIb+Y8H+AXqybyeZoQ/bteTS7NpoPGCTyZM1jDyH9Yz4ywpGb4Zz8aH7wlpjJ4WuhvRm5Kqm+xQfPTLKUdY4NpKOr7mhJPNMwWqbH0I7Xm83aLmN0EQ==","ARC-Authentication-Results":"i=1; lists.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org;\n dkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=EzBqLzuO; dkim-atps=neutral;\n spf=pass (client-ip=172.105.4.254; helo=tor.source.kernel.org;\n envelope-from=chleroy@kernel.org;\n receiver=lists.ozlabs.org) smtp.mailfrom=kernel.org","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n\ts=k20201202; t=1776842765;\n\tbh=IvSjzT4GEYNAHFGcrljPx1kOL3wXhKmoqPv4Tv8CkaU=;\n\th=Date:Subject:To:Cc:References:From:In-Reply-To:From;\n\tb=EzBqLzuONJJv0ldtemEnj0bXdUh9Q6jzanPurHh8Miflfd8barSPM45kdHimemhIt\n\t 1eMFfC5fT848W+2iwSmKEnYavFqS3uq5Azd6rGxw0rP59V+eJy3bOVzvbsFXDS33WC\n\t mjJh2LRhXVMpQr97ZfguumkupzTHXoJ2J2RPpSWRVsxNZLt+L2c6OoxcMztVwNnh7X\n\t uiPZT0XNuZhd6gP48BoVOaHIojh6QR7HcqrMDL5pzMXXLYiJZsj4WVVj/qRUHgmtjn\n\t tNkCp+X4hCKUScXVf1gd3/4RrgzyMhcQvtV8NoXRLtRATX5ltBsI67PYcF1YVNifaV\n\t RymlAA9f3ksEQ==","Message-ID":"<5d16def3-3bad-49b1-866d-94a522e8d394@kernel.org>","Date":"Wed, 22 Apr 2026 09:26:02 +0200","X-Mailing-List":"linuxppc-dev@lists.ozlabs.org","List-Id":"<linuxppc-dev.lists.ozlabs.org>","List-Help":"<mailto:linuxppc-dev+help@lists.ozlabs.org>","List-Owner":"<mailto:linuxppc-dev+owner@lists.ozlabs.org>","List-Post":"<mailto:linuxppc-dev@lists.ozlabs.org>","List-Archive":"<https://lore.kernel.org/linuxppc-dev/>,\n  <https://lists.ozlabs.org/pipermail/linuxppc-dev/>","List-Subscribe":"<mailto:linuxppc-dev+subscribe@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-digest@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-nomail@lists.ozlabs.org>","List-Unsubscribe":"<mailto:linuxppc-dev+unsubscribe@lists.ozlabs.org>","Precedence":"list","MIME-Version":"1.0","User-Agent":"Mozilla Thunderbird","Subject":"Re: New warning in linus/master","To":"=?utf-8?q?Thomas_Wei=C3=9Fschuh?= <thomas.weissschuh@linutronix.de>,\n Ricardo Ribalda <ribalda@chromium.org>","Cc":"linux-arm-kernel@lists.infradead.org,\n Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,\n linuxppc-dev@lists.ozlabs.org","References":"\n <CANiDSCsOy0P1if-gJZqOM5pTJ0RDcwVfru1B7KFbTOEMqjPKJw@mail.gmail.com>\n <20260422071541-9a295128-d913-418f-a21c-1386fca30290@linutronix.de>","Content-Language":"fr-FR","From":"\"Christophe Leroy (CS GROUP)\" <chleroy@kernel.org>","In-Reply-To":"\n <20260422071541-9a295128-d913-418f-a21c-1386fca30290@linutronix.de>","Content-Type":"text/plain; charset=UTF-8; format=flowed","Content-Transfer-Encoding":"8bit","X-Spam-Status":"No, score=-0.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED,\n\tDKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS\n\tautolearn=disabled version=4.0.1 OzLabs 8","X-Spam-Checker-Version":"SpamAssassin 4.0.1 (2024-03-25) on lists.ozlabs.org"}},{"id":3680259,"web_url":"http://patchwork.ozlabs.org/comment/3680259/","msgid":"<20260422092713-4021a1a5-3a54-4260-878a-aec1bef3f8c7@linutronix.de>","date":"2026-04-22T07:32:06","subject":"Re: New warning in linus/master","submitter":{"id":87994,"url":"http://patchwork.ozlabs.org/api/people/87994/","name":"Thomas Weißschuh","email":"thomas.weissschuh@linutronix.de"},"content":"On Wed, Apr 22, 2026 at 03:00:11PM +0800, Ricardo Ribalda wrote:\n> On Wed, 22 Apr 2026 at 13:57, Thomas Weißschuh\n> <thomas.weissschuh@linutronix.de> wrote:\n> > On Wed, Apr 22, 2026 at 11:51:45AM +0800, Ricardo Ribalda wrote:\n> > > Media-CI has found a couple of new warnings in the latest kernel\n> > > version for aarch64 and powerpc. They get fixed with this patch and\n> > > before moving I wanted to know if this was under your radar.\n> >\n> > Thanks for the report. I was not aware of these so far.\n> >\n> > > diff --git a/arch/arm64/kernel/vdso/Makefile b/arch/arm64/kernel/vdso/Makefile\n> > > index 7dec05dd33b7..65914842fae0 100644\n> > > --- a/arch/arm64/kernel/vdso/Makefile\n> > > +++ b/arch/arm64/kernel/vdso/Makefile\n> > > @@ -50,7 +50,7 @@ CFLAGS_vgettimeofday.o = $(CC_FLAGS_ADD_VDSO)\n> > >  CFLAGS_vgetrandom.o = $(CC_FLAGS_ADD_VDSO)\n> > >\n> > >  ifneq ($(c-gettimeofday-y),)\n> > > -  CFLAGS_vgettimeofday.o += -include $(c-gettimeofday-y)\n> > > +  CFLAGS_vgettimeofday.o += -include $(c-gettimeofday-y)\n> > > -Wno-maybe-uninitialized\n> > >  endif\n> >\n> > (...)\n> >\n> > I'd like to know exactly what is going on before suppressing the warning.\n> > It is a non-standard warning, only enabled by *some* of the vDSO builds\n> > for some reason.\n> >\n> > > https://gitlab.freedesktop.org/linux-media/users/ribalda/-/pipelines/1649144/test_report?job_name=cross-gcc\n> >\n> > While I was able to download a configuration from this job and also use the\n> > same container image, I can not reproduce the issue. Is the configuration the\n> > full one or only the template?\n> >\n> > Could you provide full reproduction steps?\n> \n> You can try repro with:\n> \n> work/linux $ podman run -v .:/workdir/ --rm -it\n> registry.freedesktop.org/linux-media/media-ci/build:latest\n> $ cd /workdir\n> $ CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 make allyesconfig\n> $ CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 make\n> arch/arm64/kernel/vdso/vgettimeofday.o\n> \n> The gcc version discrepancy is because I the error was due to old gcc\n> version and I was playing around with that... but it fails in both\n> gcc14 and gcc15\n\nAck.\n\n> You can try with debian testing with\n> work/linux$ podman run -v .:/workdir/ --rm -it debian:testing\n> $ apt-get update\n> $ apt-get install gcc-aarch64-linux-gnu build-essential flex bison libssl-dev bc\n> $ cd /workdir\n> $ CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 make allyesconfig\n> $ CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 make\n> arch/arm64/kernel/vdso/vgettimeofday.o\n\nBoth reproducers do *not* reproduce the issue for me.\n(It is more or less exactly what I tried before)\n\nPlease note that this line does not work in general:\n$ CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 make arch/arm64/kernel/vdso/vgettimeofday.o\n\nThe vDSO object files can not be built in this way like regular kernel object\nfiles and will produce a compiler error, but not the one under discussion.\nInstead the vDSO on arm64 is built during the 'make prepare' phase.\n(Other architectures work differently, of course...)\n\n(...)\n\n\nThomas","headers":{"Return-Path":"\n <linuxppc-dev+bounces-19932-incoming=patchwork.ozlabs.org@lists.ozlabs.org>","X-Original-To":["incoming@patchwork.ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n secure) header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256\n header.s=2020 header.b=HGuqX591;\n\tdkim=pass header.d=linutronix.de header.i=@linutronix.de\n header.a=ed25519-sha256 header.s=2020e header.b=vA6bVzJf;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=2404:9400:21b9:f100::1; helo=lists.ozlabs.org;\n envelope-from=linuxppc-dev+bounces-19932-incoming=patchwork.ozlabs.org@lists.ozlabs.org;\n receiver=patchwork.ozlabs.org)","lists.ozlabs.org;\n arc=none smtp.remote-ip=193.142.43.55","lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=linutronix.de","lists.ozlabs.org;\n\tdkim=pass (2048-bit key;\n secure) header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256\n header.s=2020 header.b=HGuqX591;\n\tdkim=pass header.d=linutronix.de header.i=@linutronix.de\n header.a=ed25519-sha256 header.s=2020e header.b=vA6bVzJf;\n\tdkim-atps=neutral","lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=linutronix.de\n (client-ip=193.142.43.55; helo=galois.linutronix.de;\n envelope-from=t-8ch@linutronix.de; receiver=lists.ozlabs.org)"],"Received":["from lists.ozlabs.org (lists.ozlabs.org\n [IPv6:2404:9400:21b9:f100::1])\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 4g0rXL4CDBz1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 17:32:18 +1000 (AEST)","from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4g0rXK3YgCz2yql;\n\tWed, 22 Apr 2026 17:32:17 +1000 (AEST)","from galois.linutronix.de (Galois.linutronix.de [193.142.43.55])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 4g0rXJ3wjbz2xSN\n\tfor <linuxppc-dev@lists.ozlabs.org>; Wed, 22 Apr 2026 17:32:16 +1000 (AEST)"],"ARC-Seal":"i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1776843137;\n\tcv=none;\n b=oFyMRt5vIm0t6Gz60YkrvJjTxtUc7KVRRKQnRuxThNyBUCYVUBSMQVSWLwOX7eQtpitETDy5lzSn3vUMUL931MVQhDJW/y87jmLF9jXEWfukP2YyIESbI1Toy9AJQBLahJtbbnnDi0qsK8W7H7jRcY7Y8f8WPcgT3bGTsh09YnuY59gfsEcNzBuqz7+Z+pMTM0/4euJOx5Nel+O6WFT/vgbD24FDS6Xt9kB17jPgRbAxcZK4dxIjOEpsYrnHGvoskZ7yoX7UirqxXUxA9MoFaEWdiIjLydMbLfAZXzp8+aqLphsSSewbvncrMovhKmXcvFDXWrazYTj+I51Pf1cNYA==","ARC-Message-Signature":"i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1776843137; c=relaxed/relaxed;\n\tbh=nqWPSH9orhqk1QAO9hwmlkYDMAf9Dazei8dWQ2yLik0=;\n\th=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:\n\t Content-Type:Content-Disposition:In-Reply-To;\n b=hQ87/y3AMXPvb4PQY59rVsuVyeLIaD0BmC46pq1H6xdPunEiLI7AF7yULSIIbVRdEAjel4wOR8hGR939j+OoP7Rj8OGobeSL+/9oTUqeHxQsZiTSGOHEbEBA6w2v6adYEU29dQGUunq0F0zI/3ZCxAHYgrFnBGkDBOMC9iNawGhCPPca9J0QBL9SmxpLwg5nZXrJfT2Kys/D1+fkpQk+iqjvb7l1nWo9m2Sp8oPLgtWBMFXSV0GnBEsyWPbdvnbGOwlq7WEBuAMwqou4yDDAfZzFQxYJ2BQ6IIf6UFqZph269Ll2/4YL4zoF+7BvW/+kC4dqtNx/4GVQlTe48oCa4g==","ARC-Authentication-Results":"i=1; lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=linutronix.de;\n dkim=pass (2048-bit key;\n secure) header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256\n header.s=2020 header.b=HGuqX591;\n dkim=pass header.d=linutronix.de header.i=@linutronix.de\n header.a=ed25519-sha256 header.s=2020e header.b=vA6bVzJf; dkim-atps=neutral;\n spf=pass (client-ip=193.142.43.55; helo=galois.linutronix.de;\n envelope-from=t-8ch@linutronix.de;\n receiver=lists.ozlabs.org) smtp.mailfrom=linutronix.de","Date":"Wed, 22 Apr 2026 09:32:06 +0200","DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de;\n\ts=2020; t=1776843131;\n\th=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n\t to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n\t content-transfer-encoding:content-transfer-encoding:\n\t in-reply-to:in-reply-to:references:references;\n\tbh=nqWPSH9orhqk1QAO9hwmlkYDMAf9Dazei8dWQ2yLik0=;\n\tb=HGuqX591fOx4yUoKbPFM3AFnEj4TNUtdJlqS+09QNrk+lg6EdJ54hu0hlVKN9TC//Dlb/B\n\tz9yH4pYM6L62+z/gkWjipQflovPh3Oa/xEF1N+j+y2xTjOTqMOEPbWaxmniMSiLlXtsfX/\n\tHZuudN0IQpcRD+DnLrzVQ/ZoSoDVwstsv8/LLrZFEsO+A7ZdG2/HtljUDkAgkwcdW9jHa6\n\tbLRPitpEl2B+or7HlfZHV2Xh6UWQFOLA264zEm+aoj1RtROfTLHu9eZ/4HIK09RNlygdDp\n\tE4sAlAMH/7rgRYiKYn9gW2QvyiRzgJxilh7GS8AVmz0tkai8d7+IuH3xssRiMw==","v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de;\n\ts=2020e; t=1776843131;\n\th=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n\t to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n\t content-transfer-encoding:content-transfer-encoding:\n\t in-reply-to:in-reply-to:references:references;\n\tbh=nqWPSH9orhqk1QAO9hwmlkYDMAf9Dazei8dWQ2yLik0=;\n\tb=vA6bVzJf/I9G8QEzLBWv5aZcIXcu70EFV/3tqET1xHv2nKF+Jj51HQlj7efTfkGBhadOmY\n\tb/J/+85f8+H7QcDA=="],"From":"Thomas =?utf-8?q?Wei=C3=9Fschuh?= <thomas.weissschuh@linutronix.de>","To":"Ricardo Ribalda <ribalda@chromium.org>","Cc":"linux-arm-kernel@lists.infradead.org,\n\tLinux Kernel Mailing List <linux-kernel@vger.kernel.org>,\n linuxppc-dev@lists.ozlabs.org","Subject":"Re: New warning in linus/master","Message-ID":"\n <20260422092713-4021a1a5-3a54-4260-878a-aec1bef3f8c7@linutronix.de>","References":"\n <CANiDSCsOy0P1if-gJZqOM5pTJ0RDcwVfru1B7KFbTOEMqjPKJw@mail.gmail.com>\n <20260422071541-9a295128-d913-418f-a21c-1386fca30290@linutronix.de>\n <CANiDSCviww1L1p2+MvF59Biqb6hc7WdL1J37kBjFd1NXz-Yt8A@mail.gmail.com>","X-Mailing-List":"linuxppc-dev@lists.ozlabs.org","List-Id":"<linuxppc-dev.lists.ozlabs.org>","List-Help":"<mailto:linuxppc-dev+help@lists.ozlabs.org>","List-Owner":"<mailto:linuxppc-dev+owner@lists.ozlabs.org>","List-Post":"<mailto:linuxppc-dev@lists.ozlabs.org>","List-Archive":"<https://lore.kernel.org/linuxppc-dev/>,\n  <https://lists.ozlabs.org/pipermail/linuxppc-dev/>","List-Subscribe":"<mailto:linuxppc-dev+subscribe@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-digest@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-nomail@lists.ozlabs.org>","List-Unsubscribe":"<mailto:linuxppc-dev+unsubscribe@lists.ozlabs.org>","Precedence":"list","MIME-Version":"1.0","Content-Type":"text/plain; charset=iso-8859-1","Content-Disposition":"inline","Content-Transfer-Encoding":"8bit","In-Reply-To":"\n <CANiDSCviww1L1p2+MvF59Biqb6hc7WdL1J37kBjFd1NXz-Yt8A@mail.gmail.com>","X-Spam-Status":"No, score=-2.5 required=3.0 tests=DKIM_SIGNED,DKIM_VALID,\n\tDKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS\n\tautolearn=disabled version=4.0.1 OzLabs 8","X-Spam-Checker-Version":"SpamAssassin 4.0.1 (2024-03-25) on lists.ozlabs.org"}},{"id":3680289,"web_url":"http://patchwork.ozlabs.org/comment/3680289/","msgid":"<CANiDSCtfiPDiqzhjZGoCJbLC0fRoH1HLKrvYUt7jLDYEBQHqgg@mail.gmail.com>","date":"2026-04-22T08:06:45","subject":"Re: New warning in linus/master","submitter":{"id":80459,"url":"http://patchwork.ozlabs.org/api/people/80459/","name":"Ricardo Ribalda","email":"ribalda@chromium.org"},"content":"Hi Thomas\n\nOn Wed, 22 Apr 2026 at 15:32, Thomas Weißschuh\n<thomas.weissschuh@linutronix.de> wrote:\n>\n> On Wed, Apr 22, 2026 at 03:00:11PM +0800, Ricardo Ribalda wrote:\n> > On Wed, 22 Apr 2026 at 13:57, Thomas Weißschuh\n> > <thomas.weissschuh@linutronix.de> wrote:\n> > > On Wed, Apr 22, 2026 at 11:51:45AM +0800, Ricardo Ribalda wrote:\n> > > > Media-CI has found a couple of new warnings in the latest kernel\n> > > > version for aarch64 and powerpc. They get fixed with this patch and\n> > > > before moving I wanted to know if this was under your radar.\n> > >\n> > > Thanks for the report. I was not aware of these so far.\n> > >\n> > > > diff --git a/arch/arm64/kernel/vdso/Makefile b/arch/arm64/kernel/vdso/Makefile\n> > > > index 7dec05dd33b7..65914842fae0 100644\n> > > > --- a/arch/arm64/kernel/vdso/Makefile\n> > > > +++ b/arch/arm64/kernel/vdso/Makefile\n> > > > @@ -50,7 +50,7 @@ CFLAGS_vgettimeofday.o = $(CC_FLAGS_ADD_VDSO)\n> > > >  CFLAGS_vgetrandom.o = $(CC_FLAGS_ADD_VDSO)\n> > > >\n> > > >  ifneq ($(c-gettimeofday-y),)\n> > > > -  CFLAGS_vgettimeofday.o += -include $(c-gettimeofday-y)\n> > > > +  CFLAGS_vgettimeofday.o += -include $(c-gettimeofday-y)\n> > > > -Wno-maybe-uninitialized\n> > > >  endif\n> > >\n> > > (...)\n> > >\n> > > I'd like to know exactly what is going on before suppressing the warning.\n> > > It is a non-standard warning, only enabled by *some* of the vDSO builds\n> > > for some reason.\n> > >\n> > > > https://gitlab.freedesktop.org/linux-media/users/ribalda/-/pipelines/1649144/test_report?job_name=cross-gcc\n> > >\n> > > While I was able to download a configuration from this job and also use the\n> > > same container image, I can not reproduce the issue. Is the configuration the\n> > > full one or only the template?\n> > >\n> > > Could you provide full reproduction steps?\n> >\n> > You can try repro with:\n> >\n> > work/linux $ podman run -v .:/workdir/ --rm -it\n> > registry.freedesktop.org/linux-media/media-ci/build:latest\n> > $ cd /workdir\n> > $ CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 make allyesconfig\n> > $ CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 make\n> > arch/arm64/kernel/vdso/vgettimeofday.o\n> >\n> > The gcc version discrepancy is because I the error was due to old gcc\n> > version and I was playing around with that... but it fails in both\n> > gcc14 and gcc15\n>\n> Ack.\n>\n> > You can try with debian testing with\n> > work/linux$ podman run -v .:/workdir/ --rm -it debian:testing\n> > $ apt-get update\n> > $ apt-get install gcc-aarch64-linux-gnu build-essential flex bison libssl-dev bc\n> > $ cd /workdir\n> > $ CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 make allyesconfig\n> > $ CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 make\n> > arch/arm64/kernel/vdso/vgettimeofday.o\n>\n> Both reproducers do *not* reproduce the issue for me.\n> (It is more or less exactly what I tried before)\n\n\nOk, I think I found what is going on. media-ci was forcing\nKCFLAGS=-Wmaybe-uninitialized\n\nhttps://gitlab.freedesktop.org/linux-media/media-ci/-/blob/main/test-build.sh?ref_type=heads#L29\n\nAnd something has changed in the kernel in the last version that\ntriggers a (hopefully) false positive.\n\ncan you try with:\n\nCROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 make\nKCFLAGS=-Wmaybe-uninitialized  allyesconfig\nCROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 make\nKCFLAGS=-Wmaybe-uninitialized  prepare\n\n?\n\n\n>\n> Please note that this line does not work in general:\n> $ CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 make arch/arm64/kernel/vdso/vgettimeofday.o\n>\n> The vDSO object files can not be built in this way like regular kernel object\n> files and will produce a compiler error, but not the one under discussion.\n> Instead the vDSO on arm64 is built during the 'make prepare' phase.\n> (Other architectures work differently, of course...)\n>\n> (...)\n>\n>\n> Thomas","headers":{"Return-Path":"\n <linuxppc-dev+bounces-19935-incoming=patchwork.ozlabs.org@lists.ozlabs.org>","X-Original-To":["incoming@patchwork.ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256\n header.s=google header.b=ICgTSCxi;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=112.213.38.117; helo=lists.ozlabs.org;\n envelope-from=linuxppc-dev+bounces-19935-incoming=patchwork.ozlabs.org@lists.ozlabs.org;\n receiver=patchwork.ozlabs.org)","lists.ozlabs.org;\n arc=none smtp.remote-ip=\"2a00:1450:4864:20::630\"","lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=chromium.org","lists.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256\n header.s=google header.b=ICgTSCxi;\n\tdkim-atps=neutral","lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=chromium.org\n (client-ip=2a00:1450:4864:20::630; helo=mail-ej1-x630.google.com;\n envelope-from=ribalda@chromium.org; receiver=lists.ozlabs.org)"],"Received":["from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1 raw public key)\n server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g0sJY5w0Mz1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 18:07:09 +1000 (AEST)","from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4g0sJY02drz2yr6;\n\tWed, 22 Apr 2026 18:07:09 +1000 (AEST)","from mail-ej1-x630.google.com (mail-ej1-x630.google.com\n [IPv6:2a00:1450:4864:20::630])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 4g0sJW0NK3z2yql\n\tfor <linuxppc-dev@lists.ozlabs.org>; Wed, 22 Apr 2026 18:07:06 +1000 (AEST)","by mail-ej1-x630.google.com with SMTP id\n a640c23a62f3a-ba36357195bso604812766b.0\n        for <linuxppc-dev@lists.ozlabs.org>;\n Wed, 22 Apr 2026 01:07:05 -0700 (PDT)","from mail-ej1-f46.google.com (mail-ej1-f46.google.com.\n [209.85.218.46])\n        by smtp.gmail.com with ESMTPSA id\n a640c23a62f3a-ba6366452c6sm379524666b.11.2026.04.22.01.07.00\n        for <linuxppc-dev@lists.ozlabs.org>\n        (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);\n        Wed, 22 Apr 2026 01:07:00 -0700 (PDT)","by mail-ej1-f46.google.com with SMTP id\n a640c23a62f3a-b9d9971d059so758799866b.2\n        for <linuxppc-dev@lists.ozlabs.org>;\n Wed, 22 Apr 2026 01:07:00 -0700 (PDT)"],"ARC-Seal":"i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1776845228;\n\tcv=none;\n b=UkNSvwRntuz/WeI7moqMpn3tY/jPsZw5FE/MTAp3Ck90JUjpiwAmIGn4N0leJATU3QoHYJSsksmsfzbMSzONMfE3kn/q2Dw4Yb59LTVyURBI7TDq1+gk1IxsOZuIzEYrIkkD7421zfV8U1PQMK1mSlGXvM5XUHT+8HuCTzCiUWGHoRZPUi0iLXjZhDv+cddsQjmLPBDqnY6b2KuTewKHv/U2z875yJltAlKZGXs3yPwyHn3EXBGOb7kbsbSo3pWCmCy52R8R9ozEoTr76p3Qs6zP96767Ua59KsZQT13uX3grCbXo448oAHHzwWK4no71id1qfaR50yCWM5ExafXzw==","ARC-Message-Signature":"i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1776845228; c=relaxed/relaxed;\n\tbh=+xnVaF+973Zb7xN4UvEz+8ZuM5TVrO0nSR9bASc5gWw=;\n\th=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:\n\t To:Cc:Content-Type;\n b=FIG6f3sZIO4lNhgu7z+7PM5gwoWOikH4SoFtdyGJbsU50pF+eRguIk2vpLqoYSt11msTCSPqRyjPXPP9qPQ2eqo4hJtNe11wegX0M2XhAZNOzrEVr2a8A3F27DG7SvtV1N88DiwWRe+a7VvEyBRbc9Ti4SIBxmjAjxG4t373orjMrXIAKH9HS77WbxxZ6BImZBnWNmG92XUsCiULqwOWowkmYPKt51e230ovBXRCYTgAJd/94NHyt3Q94A00DWuyqOaJ4ZvupvI4KYYXKEEvNv055dAdx02ZMsEJ3MqtwU/H1j0Js61kOUoCGspVhInWHnRvQqFKXYeSaSFQYvlCeQ==","ARC-Authentication-Results":"i=1; lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=chromium.org;\n dkim=pass (1024-bit key;\n unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256\n header.s=google header.b=ICgTSCxi; dkim-atps=neutral;\n spf=pass (client-ip=2a00:1450:4864:20::630; helo=mail-ej1-x630.google.com;\n envelope-from=ribalda@chromium.org;\n receiver=lists.ozlabs.org) smtp.mailfrom=chromium.org","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=chromium.org; s=google; t=1776845221; x=1777450021;\n darn=lists.ozlabs.org;\n        h=content-transfer-encoding:cc:to:subject:message-id:date:from\n         :in-reply-to:references:mime-version:from:to:cc:subject:date\n         :message-id:reply-to;\n        bh=+xnVaF+973Zb7xN4UvEz+8ZuM5TVrO0nSR9bASc5gWw=;\n        b=ICgTSCxicEZKAgx/8OL/2KPC/yck9LOZVNQQqL5LgsECCYm2vmq1cH+UWND4Y3yNng\n         6SSABnDb3ItL4omMgTaF35fKvS2J5x4Gtncgp63Zx4LMUB+a34Rd5/wfcnk1XNhsKrSq\n         NSJtWFf9LIJd939sFbSnoOFbvJGE7qhFwH0Wg=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1776845221; x=1777450021;\n        h=content-transfer-encoding:cc:to:subject:message-id:date:from\n         :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from\n         :to:cc:subject:date:message-id:reply-to;\n        bh=+xnVaF+973Zb7xN4UvEz+8ZuM5TVrO0nSR9bASc5gWw=;\n        b=VY6fBZl3GaaDguae47w7v04iEreYmwmWocXf9S0hYMCBV+znJg1LwN+mIgAP5tYfBp\n         OX5Cv1iaeDSrBxy/qfjBbcJiAIiwWnppw7prUIoa/jsJTpRMECZGDXLWac0fdyiUZCG5\n         5jdEu5/CosST9hsd3JnNxAZMxI8a8Pu1qFQarXLG8huqrgi/Pkm7W01GW530XG07uhbE\n         l++NrNgDeEFGlHMvCWrIh+f/J5L+OfnteAiSk1RsIZYOwf5XgXUn/5YOI1kC/essAL+R\n         eKyTo9wWAMexwPUi0vFxul6ESyIDcHP9GFGZ1yxNk9lemyS1hmxlJIUq2fdFE3Lq87l+\n         nQ5g==","X-Forwarded-Encrypted":["i=1;\n AFNElJ/Bi+OzTiGE7vB/6t2O8XaJiw4wyp7AmrxnFD1iTi4hPFiwJabTQuCjlpp0Ejlt8g2WXHskhG3SnCxMZDI=@lists.ozlabs.org","i=1;\n AFNElJ9/8km1g50M1DGmnV4ipmUjODuWiFL96C/DIytsTZMza1gO8+gkMcad8T+gy7qbpUByt0Xy6CjgHZjNcJc=@lists.ozlabs.org"],"X-Gm-Message-State":"AOJu0YyX8o4kqjgXpfegF69xhLg34we09gxs4anfvjmQ1P42dWpgcM5k\n\tpQ7guZ9Ww0jlen74+11i5JTnPRII6FQhDf7Ot8wePr97jXMb+zfMOnzC6jI9LXpUfEYGCfpRcz3\n\t25l8EJA==","X-Gm-Gg":"AeBDies3XUiYj7uyEHAiyI+XFqcxgYbMomCNSNFa1DG8XCNrsZ3RD0xLxVhb5M1SIst\n\tUNO+PV/wg6JWHDIM0SEbXso87bktYy3qNtebPONAmwDRv8Rph++mZ6gjf1lZTPtbGyEQrSDasRT\n\tZjzHJVFEIO0+77zxS+k3LTlVDJBGphthovEVCrG/tCpaX++uGVTVpgYKfqC4aXM3fqj3fXzSdIF\n\t7kB1PmU+wAjR8YtP1CymQLjaL9TYY0CFjwpGpQ1kN0yESpn1K8DgOLMY89tPH5CW1tvsUiLczEq\n\tzXVBsgLtK8Izb10BBTfOP3+qlyjZcvYCyN5nFN9IOj7f7ojrhVRiaZWIJ4S7axyzvMx7AYPfg8t\n\tXbInktaI+CJdjZM6rCHvBD7agDzy/CYSmyqYgDDa6iotT5+3DA02cgV1BU6YI/+V0k0Thk2witV\n\twLL9tRgDirepgn004gk2u/7nU/5mwR4TKcQaZR3VEPT4992U6tJAgzDbAm+DElHuktVyp+KCc=","X-Received":["by 2002:a17:907:806:b0:b9b:4519:7914 with SMTP id\n a640c23a62f3a-ba41a82618emr1078507066b.33.1776845221125;\n        Wed, 22 Apr 2026 01:07:01 -0700 (PDT)","by 2002:a17:906:4fc5:b0:b9b:ddb2:b1c1 with SMTP id\n a640c23a62f3a-ba418f7f625mr936456766b.21.1776845219289; Wed, 22 Apr 2026\n 01:06:59 -0700 (PDT)"],"X-Mailing-List":"linuxppc-dev@lists.ozlabs.org","List-Id":"<linuxppc-dev.lists.ozlabs.org>","List-Help":"<mailto:linuxppc-dev+help@lists.ozlabs.org>","List-Owner":"<mailto:linuxppc-dev+owner@lists.ozlabs.org>","List-Post":"<mailto:linuxppc-dev@lists.ozlabs.org>","List-Archive":"<https://lore.kernel.org/linuxppc-dev/>,\n  <https://lists.ozlabs.org/pipermail/linuxppc-dev/>","List-Subscribe":"<mailto:linuxppc-dev+subscribe@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-digest@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-nomail@lists.ozlabs.org>","List-Unsubscribe":"<mailto:linuxppc-dev+unsubscribe@lists.ozlabs.org>","Precedence":"list","MIME-Version":"1.0","References":"\n <CANiDSCsOy0P1if-gJZqOM5pTJ0RDcwVfru1B7KFbTOEMqjPKJw@mail.gmail.com>\n <20260422071541-9a295128-d913-418f-a21c-1386fca30290@linutronix.de>\n <CANiDSCviww1L1p2+MvF59Biqb6hc7WdL1J37kBjFd1NXz-Yt8A@mail.gmail.com>\n <20260422092713-4021a1a5-3a54-4260-878a-aec1bef3f8c7@linutronix.de>","In-Reply-To":"\n <20260422092713-4021a1a5-3a54-4260-878a-aec1bef3f8c7@linutronix.de>","From":"Ricardo Ribalda <ribalda@chromium.org>","Date":"Wed, 22 Apr 2026 16:06:45 +0800","X-Gmail-Original-Message-ID":"\n <CANiDSCtfiPDiqzhjZGoCJbLC0fRoH1HLKrvYUt7jLDYEBQHqgg@mail.gmail.com>","X-Gm-Features":"AQROBzA7vfrwO2plpLpwVGaJQHR2MKiQUcm7cyVmWYAcKsQQIyoUjhDJYfCBMLg","Message-ID":"\n <CANiDSCtfiPDiqzhjZGoCJbLC0fRoH1HLKrvYUt7jLDYEBQHqgg@mail.gmail.com>","Subject":"Re: New warning in linus/master","To":"=?utf-8?q?Thomas_Wei=C3=9Fschuh?= <thomas.weissschuh@linutronix.de>","Cc":"linux-arm-kernel@lists.infradead.org,\n\tLinux Kernel Mailing List <linux-kernel@vger.kernel.org>,\n linuxppc-dev@lists.ozlabs.org","Content-Type":"text/plain; charset=\"UTF-8\"","Content-Transfer-Encoding":"quoted-printable","X-Spam-Status":"No, score=-0.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED,\n\tDKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,\n\tSPF_HELO_NONE,SPF_PASS autolearn=disabled version=4.0.1 OzLabs 8","X-Spam-Checker-Version":"SpamAssassin 4.0.1 (2024-03-25) on lists.ozlabs.org"}},{"id":3680321,"web_url":"http://patchwork.ozlabs.org/comment/3680321/","msgid":"<20260422103218-1efdbb73-51fa-48c9-ae92-75306147d61f@linutronix.de>","date":"2026-04-22T08:45:21","subject":"Re: New warning in linus/master","submitter":{"id":87994,"url":"http://patchwork.ozlabs.org/api/people/87994/","name":"Thomas Weißschuh","email":"thomas.weissschuh@linutronix.de"},"content":"On Wed, Apr 22, 2026 at 04:06:45PM +0800, Ricardo Ribalda wrote:\n> On Wed, 22 Apr 2026 at 15:32, Thomas Weißschuh\n> <thomas.weissschuh@linutronix.de> wrote:\n> >\n> > On Wed, Apr 22, 2026 at 03:00:11PM +0800, Ricardo Ribalda wrote:\n> > > On Wed, 22 Apr 2026 at 13:57, Thomas Weißschuh\n> > > <thomas.weissschuh@linutronix.de> wrote:\n> > > > On Wed, Apr 22, 2026 at 11:51:45AM +0800, Ricardo Ribalda wrote:\n> > > > > Media-CI has found a couple of new warnings in the latest kernel\n> > > > > version for aarch64 and powerpc. They get fixed with this patch and\n> > > > > before moving I wanted to know if this was under your radar.\n> > > >\n> > > > Thanks for the report. I was not aware of these so far.\n> > > >\n> > > > > diff --git a/arch/arm64/kernel/vdso/Makefile b/arch/arm64/kernel/vdso/Makefile\n> > > > > index 7dec05dd33b7..65914842fae0 100644\n> > > > > --- a/arch/arm64/kernel/vdso/Makefile\n> > > > > +++ b/arch/arm64/kernel/vdso/Makefile\n> > > > > @@ -50,7 +50,7 @@ CFLAGS_vgettimeofday.o = $(CC_FLAGS_ADD_VDSO)\n> > > > >  CFLAGS_vgetrandom.o = $(CC_FLAGS_ADD_VDSO)\n> > > > >\n> > > > >  ifneq ($(c-gettimeofday-y),)\n> > > > > -  CFLAGS_vgettimeofday.o += -include $(c-gettimeofday-y)\n> > > > > +  CFLAGS_vgettimeofday.o += -include $(c-gettimeofday-y)\n> > > > > -Wno-maybe-uninitialized\n> > > > >  endif\n> > > >\n> > > > (...)\n> > > >\n> > > > I'd like to know exactly what is going on before suppressing the warning.\n> > > > It is a non-standard warning, only enabled by *some* of the vDSO builds\n> > > > for some reason.\n> > > >\n> > > > > https://gitlab.freedesktop.org/linux-media/users/ribalda/-/pipelines/1649144/test_report?job_name=cross-gcc\n> > > >\n> > > > While I was able to download a configuration from this job and also use the\n> > > > same container image, I can not reproduce the issue. Is the configuration the\n> > > > full one or only the template?\n> > > >\n> > > > Could you provide full reproduction steps?\n> > >\n> > > You can try repro with:\n> > >\n> > > work/linux $ podman run -v .:/workdir/ --rm -it\n> > > registry.freedesktop.org/linux-media/media-ci/build:latest\n> > > $ cd /workdir\n> > > $ CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 make allyesconfig\n> > > $ CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 make\n> > > arch/arm64/kernel/vdso/vgettimeofday.o\n> > >\n> > > The gcc version discrepancy is because I the error was due to old gcc\n> > > version and I was playing around with that... but it fails in both\n> > > gcc14 and gcc15\n> >\n> > Ack.\n> >\n> > > You can try with debian testing with\n> > > work/linux$ podman run -v .:/workdir/ --rm -it debian:testing\n> > > $ apt-get update\n> > > $ apt-get install gcc-aarch64-linux-gnu build-essential flex bison libssl-dev bc\n> > > $ cd /workdir\n> > > $ CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 make allyesconfig\n> > > $ CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 make\n> > > arch/arm64/kernel/vdso/vgettimeofday.o\n> >\n> > Both reproducers do *not* reproduce the issue for me.\n> > (It is more or less exactly what I tried before)\n> \n> \n> Ok, I think I found what is going on. media-ci was forcing\n> KCFLAGS=-Wmaybe-uninitialized\n> \n> https://gitlab.freedesktop.org/linux-media/media-ci/-/blob/main/test-build.sh?ref_type=heads#L29\n> \n> And something has changed in the kernel in the last version that\n> triggers a (hopefully) false positive.\n> \n> can you try with:\n> \n> CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 make\n> KCFLAGS=-Wmaybe-uninitialized  allyesconfig\n> CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 make\n> KCFLAGS=-Wmaybe-uninitialized  prepare\n\nThat works!\n\nThe warning was introduced in ed78b7b2c5ae (\"vdso/gettimeofday: Add a helper to\nread the sequence lock of a time namespace aware clock\").\n\nIt is *not* a false-positive, specifically:\n\ndo {\n\tif (vdso_read_begin_timens(vc, &seq)) {\n\t\tvd = __arch_get_vdso_u_timens_data(vd);\n\t\tvc = &vd->aux_clock_data[idx];\n\t\t/* Re-read from the real time data page */\n\t\tcontinue;\n\nThis 'continue' jumps to the end of the loop body and if the real vDSO datapage\nby chance has a sequence counter of '1' will exit the loop, leaving 'sec' and\n'nsec' uninitialized. My believe was that the 'continue' would jump to the\n*beginning* of the loop body, which is cleary wrong. Previously there was an\ninner while loop() which would make the 'continue' effectively start at the\nbeginning of the outer do-while loop.\n\n\t}\n\n\t/* Auxclock disabled? */\n\tif (vc->clock_mode == VDSO_CLOCKMODE_NONE)\n\t\treturn false;\n\n\tif (!vdso_get_timestamp(vd, vc, VDSO_BASE_AUX, &sec, &ns))\n\t\treturn false;\n\n} while (vdso_read_retry(vc, seq));\n\nvdso_set_timespec(ts, sec, ns);\n\n\nI'm working on a fix.\n\n\nThomas","headers":{"Return-Path":"\n <linuxppc-dev+bounces-19942-incoming=patchwork.ozlabs.org@lists.ozlabs.org>","X-Original-To":["incoming@patchwork.ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n secure) header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256\n header.s=2020 header.b=MAD3is3O;\n\tdkim=pass header.d=linutronix.de header.i=@linutronix.de\n header.a=ed25519-sha256 header.s=2020e header.b=/Bhji4fI;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=112.213.38.117; helo=lists.ozlabs.org;\n envelope-from=linuxppc-dev+bounces-19942-incoming=patchwork.ozlabs.org@lists.ozlabs.org;\n receiver=patchwork.ozlabs.org)","lists.ozlabs.org;\n arc=none smtp.remote-ip=\"2a0a:51c0:0:12e:550::1\"","lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=linutronix.de","lists.ozlabs.org;\n\tdkim=pass (2048-bit key;\n secure) header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256\n header.s=2020 header.b=MAD3is3O;\n\tdkim=pass header.d=linutronix.de header.i=@linutronix.de\n header.a=ed25519-sha256 header.s=2020e header.b=/Bhji4fI;\n\tdkim-atps=neutral","lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=linutronix.de\n (client-ip=2a0a:51c0:0:12e:550::1; helo=galois.linutronix.de;\n envelope-from=t-8ch@linutronix.de; receiver=lists.ozlabs.org)"],"Received":["from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117])\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 4g0t8q5Qp2z1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 18:45:30 +1000 (AEST)","from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4g0t8n5VGLz2yr8;\n\tWed, 22 Apr 2026 18:45:29 +1000 (AEST)","from galois.linutronix.de (Galois.linutronix.de\n [IPv6:2a0a:51c0:0:12e:550::1])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 4g0t8m0T3Pz2xc8\n\tfor <linuxppc-dev@lists.ozlabs.org>; Wed, 22 Apr 2026 18:45:27 +1000 (AEST)"],"ARC-Seal":"i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1776847529;\n\tcv=none;\n b=L0EY1HnfuUt3lDxyvxrgHvT+Eh7u3osvpSkmroiadzhk5rU9q+8gdlM0ut48/uMclK9xX8LxIYvgb/dGG/338nrOv+8Glr1feVoOI+0b89aZwguTynuogWje7dO9QhxWVUbnQ2PqJ/LGuM2rxOdJ1TaOgbJ85Hu1f1TIKTN3B9JxV0djiBObSqSo9+68VmuOJaWZE6fyVYY6i4E69DDORubCfIHKeU5u04LThvCehNnbztVRVTspqYkFc9XKkBbUHpypDS9SM1IS1RldLCP3Qpb+CX7QRS7H6hzr78x/yPnNQZDfhj3luwUkoU2OOV3Alba5lC/WBLuzSXFHByBCsA==","ARC-Message-Signature":"i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1776847529; c=relaxed/relaxed;\n\tbh=5nzzWLRM14gCMo68Gw80lFQtpEDbPKU5oX4IPo99Eck=;\n\th=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:\n\t Content-Type:Content-Disposition:In-Reply-To;\n b=JYuPEXA22/5JZ/Mo2YaOX01g1yAFmCAcUSQ00o1uy/dX6W6Tgc1IlgSBYC80EE4dw1b+YqPqKHI1wGqF5NGGtNleNeqbxe2jetYl/CdoCFYfJm5CMswvmTpOD0vS7nlCOd2xS6pu8fIAbvXA62916HseDGHGuXKp+syxQLS5HUkEsKdfWAl7mql76Dn5EZ9OgZlWBfiDB+3YqKk2g/I/9rTGv8T/wrKPfvGqovk30mAMuQv1sHR25ITQpRUL6oyr7huQq1KeYMnt4mH1C54A5aswuLB0n3WkHlA6jl7unQ7rcBomwO4UQopcJCfDQPmKDm2qTD48pisMIw4hX2GYgQ==","ARC-Authentication-Results":"i=1; lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=linutronix.de;\n dkim=pass (2048-bit key;\n secure) header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256\n header.s=2020 header.b=MAD3is3O;\n dkim=pass header.d=linutronix.de header.i=@linutronix.de\n header.a=ed25519-sha256 header.s=2020e header.b=/Bhji4fI; dkim-atps=neutral;\n spf=pass (client-ip=2a0a:51c0:0:12e:550::1; helo=galois.linutronix.de;\n envelope-from=t-8ch@linutronix.de;\n receiver=lists.ozlabs.org) smtp.mailfrom=linutronix.de","Date":"Wed, 22 Apr 2026 10:45:21 +0200","DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de;\n\ts=2020; t=1776847522;\n\th=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n\t to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n\t content-transfer-encoding:content-transfer-encoding:\n\t in-reply-to:in-reply-to:references:references;\n\tbh=5nzzWLRM14gCMo68Gw80lFQtpEDbPKU5oX4IPo99Eck=;\n\tb=MAD3is3Onv/bOoBKuHW1wjcyHz3hqI5+C8cujYrIRrVdVoiOk7KoPQDqeGdfS4jY4GsLsL\n\t5/NjXwT5Mrh7yksrlTvQ3PT/ZxGQ/OURO6/DesrngJ5MX7ca7B7Kg/AGCe64m5rlpQqjdz\n\txi1VS870d+XZ7e4I+m2K0VS/L4cj+OvtThVrt1ny5H2u+H0vm9BaayokR/CiL7thy/fXVG\n\tkWxNmwlPTHHZe5jTDfkSPhYbrqHFd+ypj5okMZ83AptMUUuGygg+VRjBh9yCIXKbKx1pia\n\toB8YQPpua44CNAZMcTstbqrHFPkwTCyWCC5pQC88/vzCL2+9Wm+Oo+Pyjqpvzw==","v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de;\n\ts=2020e; t=1776847522;\n\th=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n\t to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n\t content-transfer-encoding:content-transfer-encoding:\n\t in-reply-to:in-reply-to:references:references;\n\tbh=5nzzWLRM14gCMo68Gw80lFQtpEDbPKU5oX4IPo99Eck=;\n\tb=/Bhji4fIjCMF4t0dR952vgbdwty6z6aPQaHTJdOrpBjUy17nyVrWYVxSyPyGyzaKeRuBp9\n\tCZhbFmLv4gXeQLCg=="],"From":"Thomas =?utf-8?q?Wei=C3=9Fschuh?= <thomas.weissschuh@linutronix.de>","To":"Ricardo Ribalda <ribalda@chromium.org>","Cc":"linux-arm-kernel@lists.infradead.org,\n\tLinux Kernel Mailing List <linux-kernel@vger.kernel.org>,\n linuxppc-dev@lists.ozlabs.org","Subject":"Re: New warning in linus/master","Message-ID":"\n <20260422103218-1efdbb73-51fa-48c9-ae92-75306147d61f@linutronix.de>","References":"\n <CANiDSCsOy0P1if-gJZqOM5pTJ0RDcwVfru1B7KFbTOEMqjPKJw@mail.gmail.com>\n <20260422071541-9a295128-d913-418f-a21c-1386fca30290@linutronix.de>\n <CANiDSCviww1L1p2+MvF59Biqb6hc7WdL1J37kBjFd1NXz-Yt8A@mail.gmail.com>\n <20260422092713-4021a1a5-3a54-4260-878a-aec1bef3f8c7@linutronix.de>\n <CANiDSCtfiPDiqzhjZGoCJbLC0fRoH1HLKrvYUt7jLDYEBQHqgg@mail.gmail.com>","X-Mailing-List":"linuxppc-dev@lists.ozlabs.org","List-Id":"<linuxppc-dev.lists.ozlabs.org>","List-Help":"<mailto:linuxppc-dev+help@lists.ozlabs.org>","List-Owner":"<mailto:linuxppc-dev+owner@lists.ozlabs.org>","List-Post":"<mailto:linuxppc-dev@lists.ozlabs.org>","List-Archive":"<https://lore.kernel.org/linuxppc-dev/>,\n  <https://lists.ozlabs.org/pipermail/linuxppc-dev/>","List-Subscribe":"<mailto:linuxppc-dev+subscribe@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-digest@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-nomail@lists.ozlabs.org>","List-Unsubscribe":"<mailto:linuxppc-dev+unsubscribe@lists.ozlabs.org>","Precedence":"list","MIME-Version":"1.0","Content-Type":"text/plain; charset=iso-8859-1","Content-Disposition":"inline","Content-Transfer-Encoding":"8bit","In-Reply-To":"\n <CANiDSCtfiPDiqzhjZGoCJbLC0fRoH1HLKrvYUt7jLDYEBQHqgg@mail.gmail.com>","X-Spam-Status":"No, score=-0.2 required=3.0 tests=DKIM_SIGNED,DKIM_VALID,\n\tDKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS\n\tautolearn=disabled version=4.0.1 OzLabs 8","X-Spam-Checker-Version":"SpamAssassin 4.0.1 (2024-03-25) on lists.ozlabs.org"}},{"id":3680359,"web_url":"http://patchwork.ozlabs.org/comment/3680359/","msgid":"<f23f863a-38ed-4e28-8df9-a592638c9fda@kernel.org>","date":"2026-04-22T09:09:49","subject":"Re: New warning in linus/master","submitter":{"id":92089,"url":"http://patchwork.ozlabs.org/api/people/92089/","name":"Christophe Leroy (CS GROUP)","email":"chleroy@kernel.org"},"content":"Le 22/04/2026 à 10:45, Thomas Weißschuh a écrit :\n> On Wed, Apr 22, 2026 at 04:06:45PM +0800, Ricardo Ribalda wrote:\n>> On Wed, 22 Apr 2026 at 15:32, Thomas Weißschuh\n>> <thomas.weissschuh@linutronix.de> wrote:\n>>>\n>>> On Wed, Apr 22, 2026 at 03:00:11PM +0800, Ricardo Ribalda wrote:\n>>>> On Wed, 22 Apr 2026 at 13:57, Thomas Weißschuh\n>>>> <thomas.weissschuh@linutronix.de> wrote:\n>>>>> On Wed, Apr 22, 2026 at 11:51:45AM +0800, Ricardo Ribalda wrote:\n>>>>>> Media-CI has found a couple of new warnings in the latest kernel\n>>>>>> version for aarch64 and powerpc. They get fixed with this patch and\n>>>>>> before moving I wanted to know if this was under your radar.\n>>>>>\n>>>>> Thanks for the report. I was not aware of these so far.\n>>>>>\n>>>>>> diff --git a/arch/arm64/kernel/vdso/Makefile b/arch/arm64/kernel/vdso/Makefile\n>>>>>> index 7dec05dd33b7..65914842fae0 100644\n>>>>>> --- a/arch/arm64/kernel/vdso/Makefile\n>>>>>> +++ b/arch/arm64/kernel/vdso/Makefile\n>>>>>> @@ -50,7 +50,7 @@ CFLAGS_vgettimeofday.o = $(CC_FLAGS_ADD_VDSO)\n>>>>>>   CFLAGS_vgetrandom.o = $(CC_FLAGS_ADD_VDSO)\n>>>>>>\n>>>>>>   ifneq ($(c-gettimeofday-y),)\n>>>>>> -  CFLAGS_vgettimeofday.o += -include $(c-gettimeofday-y)\n>>>>>> +  CFLAGS_vgettimeofday.o += -include $(c-gettimeofday-y)\n>>>>>> -Wno-maybe-uninitialized\n>>>>>>   endif\n>>>>>\n>>>>> (...)\n>>>>>\n>>>>> I'd like to know exactly what is going on before suppressing the warning.\n>>>>> It is a non-standard warning, only enabled by *some* of the vDSO builds\n>>>>> for some reason.\n>>>>>\n>>>>>> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitlab.freedesktop.org%2Flinux-media%2Fusers%2Fribalda%2F-%2Fpipelines%2F1649144%2Ftest_report%3Fjob_name%3Dcross-gcc&data=05%7C02%7Cchristophe.leroy2%40cs-soprasteria.com%7C7cbf9009269d4ddc16d208dea04b86f1%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C639124443421115079%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=O4r8HjaUn7KEgW8tDE9GEC9e8CWyJBpCfhVTJZZ%2BFHs%3D&reserved=0\n>>>>>\n>>>>> While I was able to download a configuration from this job and also use the\n>>>>> same container image, I can not reproduce the issue. Is the configuration the\n>>>>> full one or only the template?\n>>>>>\n>>>>> Could you provide full reproduction steps?\n>>>>\n>>>> You can try repro with:\n>>>>\n>>>> work/linux $ podman run -v .:/workdir/ --rm -it\n>>>> registry.freedesktop.org/linux-media/media-ci/build:latest\n>>>> $ cd /workdir\n>>>> $ CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 make allyesconfig\n>>>> $ CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 make\n>>>> arch/arm64/kernel/vdso/vgettimeofday.o\n>>>>\n>>>> The gcc version discrepancy is because I the error was due to old gcc\n>>>> version and I was playing around with that... but it fails in both\n>>>> gcc14 and gcc15\n>>>\n>>> Ack.\n>>>\n>>>> You can try with debian testing with\n>>>> work/linux$ podman run -v .:/workdir/ --rm -it debian:testing\n>>>> $ apt-get update\n>>>> $ apt-get install gcc-aarch64-linux-gnu build-essential flex bison libssl-dev bc\n>>>> $ cd /workdir\n>>>> $ CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 make allyesconfig\n>>>> $ CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 make\n>>>> arch/arm64/kernel/vdso/vgettimeofday.o\n>>>\n>>> Both reproducers do *not* reproduce the issue for me.\n>>> (It is more or less exactly what I tried before)\n>>\n>>\n>> Ok, I think I found what is going on. media-ci was forcing\n>> KCFLAGS=-Wmaybe-uninitialized\n>>\n>> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitlab.freedesktop.org%2Flinux-media%2Fmedia-ci%2F-%2Fblob%2Fmain%2Ftest-build.sh%3Fref_type%3Dheads%23L29&data=05%7C02%7Cchristophe.leroy2%40cs-soprasteria.com%7C7cbf9009269d4ddc16d208dea04b86f1%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C639124443421146576%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=%2FpTHYfCn5ob42%2Fm6FVOZ32PVzuXBNBT3rlMVWslCfhw%3D&reserved=0\n>>\n>> And something has changed in the kernel in the last version that\n>> triggers a (hopefully) false positive.\n>>\n>> can you try with:\n>>\n>> CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 make\n>> KCFLAGS=-Wmaybe-uninitialized  allyesconfig\n>> CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 make\n>> KCFLAGS=-Wmaybe-uninitialized  prepare\n> \n> That works!\n> \n> The warning was introduced in ed78b7b2c5ae (\"vdso/gettimeofday: Add a helper to\n> read the sequence lock of a time namespace aware clock\").\n> \n> It is *not* a false-positive, specifically:\n> \n> do {\n> \tif (vdso_read_begin_timens(vc, &seq)) {\n> \t\tvd = __arch_get_vdso_u_timens_data(vd);\n> \t\tvc = &vd->aux_clock_data[idx];\n> \t\t/* Re-read from the real time data page */\n> \t\tcontinue;\n> \n> This 'continue' jumps to the end of the loop body and if the real vDSO datapage\n> by chance has a sequence counter of '1' will exit the loop, leaving 'sec' and\n> 'nsec' uninitialized. My believe was that the 'continue' would jump to the\n> *beginning* of the loop body, which is cleary wrong. Previously there was an\n> inner while loop() which would make the 'continue' effectively start at the\n> beginning of the outer do-while loop.\n\nWell spotted. I missed it too while reviewing.\n\nA 'retry:' label at the begining of the loop with a 'goto retry' instead \nof the 'continue' should make it.\n\nChristophe\n\n> \n> \t}\n> \n> \t/* Auxclock disabled? */\n> \tif (vc->clock_mode == VDSO_CLOCKMODE_NONE)\n> \t\treturn false;\n> \n> \tif (!vdso_get_timestamp(vd, vc, VDSO_BASE_AUX, &sec, &ns))\n> \t\treturn false;\n> \n> } while (vdso_read_retry(vc, seq));\n> \n> vdso_set_timespec(ts, sec, ns);\n> \n> \n> I'm working on a fix.\n> \n> \n> Thomas\n>","headers":{"Return-Path":"\n <linuxppc-dev+bounces-19944-incoming=patchwork.ozlabs.org@lists.ozlabs.org>","X-Original-To":["incoming@patchwork.ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=bW4Len4g;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=2404:9400:21b9:f100::1; helo=lists.ozlabs.org;\n envelope-from=linuxppc-dev+bounces-19944-incoming=patchwork.ozlabs.org@lists.ozlabs.org;\n receiver=patchwork.ozlabs.org)","lists.ozlabs.org;\n arc=none smtp.remote-ip=\"2600:3c04:e001:324:0:1991:8:25\"","lists.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org","lists.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=bW4Len4g;\n\tdkim-atps=neutral","lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org\n (client-ip=2600:3c04:e001:324:0:1991:8:25; helo=tor.source.kernel.org;\n envelope-from=chleroy@kernel.org; receiver=lists.ozlabs.org)"],"Received":["from lists.ozlabs.org (lists.ozlabs.org\n [IPv6:2404:9400:21b9:f100::1])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1 raw public key)\n server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g0tj338xTz1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 19:09:58 +1000 (AEST)","from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4g0tj10bWKz2yr8;\n\tWed, 22 Apr 2026 19:09:57 +1000 (AEST)","from tor.source.kernel.org (tor.source.kernel.org\n [IPv6:2600:3c04:e001:324:0:1991:8:25])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 4g0thz1Yjvz2xc8\n\tfor <linuxppc-dev@lists.ozlabs.org>; Wed, 22 Apr 2026 19:09:55 +1000 (AEST)","from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58])\n\tby tor.source.kernel.org (Postfix) with ESMTP id 1A518600AE;\n\tWed, 22 Apr 2026 09:09:52 +0000 (UTC)","by smtp.kernel.org (Postfix) with ESMTPSA id D4049C2BCB3;\n\tWed, 22 Apr 2026 09:09:50 +0000 (UTC)"],"ARC-Seal":"i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1776848996;\n\tcv=none;\n b=ja3kh3pFjfHyKveh2d2sQpeqx+ixd0LUT6lq4ojHouL1+M2g1jPApgRxhQ34kl2SSbVCHwm2eDkSOMtYfuTH+3KleexiJPGTE+zepyYMiV5kiW66Wm2P2JsgzkW2BStnAKmijX9cKm9SZrQrUI9Cq3iGiovIa4h8x7DmLgUYqv9iRNSzKdv91JITd9SftbEQ+Ef0TgTb4V+wBz3JpgVIQZYKtQE+Xc/pVOwdF3Taf6xxBoPnnlFshfB2KeQ3uUMyQjzeP4bqrlAumZgfM64nbZHqBZyjjm9MRAgjfp1wsdTRyTn/fUVAN+Gb4xSdrlB0Sa8e3Ak3NZ8+e3tx8Q221A==","ARC-Message-Signature":"i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1776848996; c=relaxed/relaxed;\n\tbh=Xr8QxbYshkOJjMrSj7nRCdGJ+EKCV/0wXnSEvRwBPSg=;\n\th=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From:\n\t In-Reply-To:Content-Type;\n b=hOkaxo0OrZIIkJn0gP9725Sh4Nja5Ad4PN7LGujp8Fp/D7SRBdXKoti26abvGRpDrKtocGcqLJvSmwAnl948wQAdszTl4jF3jSKJXRL19hrxF4FqFczjG1R/+fFxfbqLfbS9CW1Rs+TphsVJIM1WubToorbrUeGM0+lmopFvVOZulnwjs7c3a2U4Yg3Gcm/RcebZCTfeztIhvd94IowKFAHBeQ8GQvOEEn6nUnHD4tnu7tqbomQtagCvizbRHEij+qVjjcSHFdLw23MXMG2IB6srLAOAKV+vg6q/h5ycttLdlTBj37o7SIpVJD/o4LLCSp+r4ekA95UXZ7sdgPs2Kw==","ARC-Authentication-Results":"i=1; lists.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org;\n dkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=bW4Len4g; dkim-atps=neutral;\n spf=pass (client-ip=2600:3c04:e001:324:0:1991:8:25;\n helo=tor.source.kernel.org; envelope-from=chleroy@kernel.org;\n receiver=lists.ozlabs.org) smtp.mailfrom=kernel.org","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n\ts=k20201202; t=1776848991;\n\tbh=1eBiYpZdYpgrWMNpR3shEhEFDXlBwGOvrMbmmwxsIng=;\n\th=Date:Subject:To:Cc:References:From:In-Reply-To:From;\n\tb=bW4Len4g/CMaeDxoMwtPt5R0RQC6dQ/fVnbzypeBRlJOlhNA+pUi8PAMQYJOR/9zm\n\t GoJYKV0iZ+dSVl8Ev3deBLJZMqSRmR8yI5+4ctzahOrVIm5c4RdoPXVFvaDx74rE7p\n\t N4Fa7ypy2ukD8f0VgT6QBvoBIGKH3uSwVlWjF8jErom+1x5BSOm+2K3VXo7HXsA6pF\n\t cIrTfTcVJDl+uw6Iu3GnwuUwWvMPReXw5s1w5/MawkFfJ7okgEUjY8bqpZqSIXiQyB\n\t 50zfeRm5ixn6y9AuxBGVBknQUSDr7/Xzx5h1RXvb1toUQZbaP3LmsdwZ+CyfY3ChyF\n\t Y5y3UxY/lwGTw==","Message-ID":"<f23f863a-38ed-4e28-8df9-a592638c9fda@kernel.org>","Date":"Wed, 22 Apr 2026 11:09:49 +0200","X-Mailing-List":"linuxppc-dev@lists.ozlabs.org","List-Id":"<linuxppc-dev.lists.ozlabs.org>","List-Help":"<mailto:linuxppc-dev+help@lists.ozlabs.org>","List-Owner":"<mailto:linuxppc-dev+owner@lists.ozlabs.org>","List-Post":"<mailto:linuxppc-dev@lists.ozlabs.org>","List-Archive":"<https://lore.kernel.org/linuxppc-dev/>,\n  <https://lists.ozlabs.org/pipermail/linuxppc-dev/>","List-Subscribe":"<mailto:linuxppc-dev+subscribe@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-digest@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-nomail@lists.ozlabs.org>","List-Unsubscribe":"<mailto:linuxppc-dev+unsubscribe@lists.ozlabs.org>","Precedence":"list","MIME-Version":"1.0","User-Agent":"Mozilla Thunderbird","Subject":"Re: New warning in linus/master","To":"=?utf-8?q?Thomas_Wei=C3=9Fschuh?= <thomas.weissschuh@linutronix.de>,\n Ricardo Ribalda <ribalda@chromium.org>","Cc":"linux-arm-kernel@lists.infradead.org,\n Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,\n linuxppc-dev@lists.ozlabs.org","References":"\n <CANiDSCsOy0P1if-gJZqOM5pTJ0RDcwVfru1B7KFbTOEMqjPKJw@mail.gmail.com>\n <20260422071541-9a295128-d913-418f-a21c-1386fca30290@linutronix.de>\n <CANiDSCviww1L1p2+MvF59Biqb6hc7WdL1J37kBjFd1NXz-Yt8A@mail.gmail.com>\n <20260422092713-4021a1a5-3a54-4260-878a-aec1bef3f8c7@linutronix.de>\n <CANiDSCtfiPDiqzhjZGoCJbLC0fRoH1HLKrvYUt7jLDYEBQHqgg@mail.gmail.com>\n <20260422103218-1efdbb73-51fa-48c9-ae92-75306147d61f@linutronix.de>","Content-Language":"fr-FR","From":"\"Christophe Leroy (CS GROUP)\" <chleroy@kernel.org>","In-Reply-To":"\n <20260422103218-1efdbb73-51fa-48c9-ae92-75306147d61f@linutronix.de>","Content-Type":"text/plain; charset=UTF-8; format=flowed","Content-Transfer-Encoding":"8bit","X-Spam-Status":"No, score=-0.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED,\n\tDKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS\n\tautolearn=disabled version=4.0.1 OzLabs 8","X-Spam-Checker-Version":"SpamAssassin 4.0.1 (2024-03-25) on lists.ozlabs.org"}}]