Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3859238pxb; Tue, 7 Sep 2021 09:04:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrUqNt7RRC65SP27DbKxs+S6AaaD662tG99vBnazhTk16sP8kE4qBT+bggSTw5djwRtRtL X-Received: by 2002:a05:6e02:168d:: with SMTP id f13mr12145944ila.12.1631030642195; Tue, 07 Sep 2021 09:04:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631030642; cv=none; d=google.com; s=arc-20160816; b=xCLE0iNm4Q4+gRT6an2fzFdkdft+i494eVbRbYUHSmRJhrkAkKYjZIPJWnAw5qw043 VgNEsd+ZkeButokwxs86aTmJtq+SDtyPqGvg9xow6xeNSVAEnA9MKjdD9vlpzDsdiFpZ n5nNhnq97ikrBJ5vb/epBmaJgb+CRwFjN3E8ArR0FwNIqP5pvDvHA0sX0NN2is7OoZy9 pomgPa8JPg22+9Yzl/c28AyuNwqqniSK8myo/f+hiwQlVz4/P9a7QHa3ubvo7Ms+Pvr1 z8bYbZm++AhF35U2Vcb4gScvSvPU3/gElI2li3/hUxFkVw4616nX6p7+HvTv2DBo7hkB hGjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:references:cc :to:from:subject:sender:dkim-signature; bh=ogax7Hn2du6LFF8ec+bJATwLOn6GD0dmA5bAclndcIk=; b=svR+5OQ9YeZgtDb9R3SxhngMVDKqz+3ppsLUOy6y4bLXeXii9NBMy+dWAS5R3QROqb 3fBm/9LCekmixfR4dK7DC0Imvka0KMEh6rh0VLe+/QelJ26Q0/RnhEE5smUBeaSz9lY4 pHE66LbUSwu6rYkdvsGBDYdAoDHm9HRdyQg1zG0ZdOTF4M+sjoA1BPqt7PGLS1JfzIYZ CbPTPIz4/Ieonsu5mM8GhGLT2JZdQJw7J8AS8vQYahDsRiNX3AWv2DFIqAbDaOzJsSAd +oEe5ziN5m5OdgPV+zuTP3AAiXgqxmXJoIqCE79D+z8+9Y/Pr54Vk+xEOEl3PkOV522v zy3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ggRQSP8F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b1si10707589ilj.117.2021.09.07.09.03.49; Tue, 07 Sep 2021 09:04:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ggRQSP8F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345479AbhIGPvV (ORCPT + 99 others); Tue, 7 Sep 2021 11:51:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232935AbhIGPvU (ORCPT ); Tue, 7 Sep 2021 11:51:20 -0400 Received: from mail-oo1-xc31.google.com (mail-oo1-xc31.google.com [IPv6:2607:f8b0:4864:20::c31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49EB9C061575; Tue, 7 Sep 2021 08:50:14 -0700 (PDT) Received: by mail-oo1-xc31.google.com with SMTP id v20-20020a4a2554000000b0028f8cc17378so3055172ooe.0; Tue, 07 Sep 2021 08:50:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=ogax7Hn2du6LFF8ec+bJATwLOn6GD0dmA5bAclndcIk=; b=ggRQSP8FTEPed7xT35spZwEld02mmPoC1B/XzF8hPC8MjmOx+0xuOvXUmToFH/JNI2 UCfanRRhEZ8F32QKHAr2EvHBktME5sJcpj3/GPGC2vVnwwxAOKBZuV5lPPoKR+NQxNOu zEtoVRrMhuoyjbuB2ienXRvyq652b7gWbdcDcLvgMiYfKwbn0uL0FRqWh8BZA/6xwps7 FD0HDph0uACn/8eGn/Dl5yng6Ts4pP9k5XLsOBBDadsgG82h3AVuJ+Eoz5TBrJ4QN0Px QPKYBgfhzvj0MrnFNaz/+h3r0Y3+JWicAnQ/JS+ZpJJazc7G3Uuu96hgNXJDl3vuS67R WcNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:from:to:cc:references:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ogax7Hn2du6LFF8ec+bJATwLOn6GD0dmA5bAclndcIk=; b=ITxkRjEaj7ji097hSLNCWzG3h67wGZEE0pGBU25HzEwLjOS5wbwWRtKsrq7jE/gUBY rSj0KENrHc9PYYnvjbOFrdrpAT0lgp3QaAkDl+XK4PjvcqSaFIIoXoMgoTNZBLbapavh xAzCXLhaZrNVBCarldV0/rvD/UZvyfJ2wcGbfdrgBYVtBXnZdhcN9ZpjCmMz/ZA29dIG QFfkq9lESRlg2ICsGT6982BisLEjbEar/MWKSH5x3XicD2J0CPgiS0LZSwJm1WDLgBKD tUcHCJ2UfFvs/aknIz3d0HR0Uso06QwnBotD7I3Em0s6jOVJUkF2juIZDrlCZJCx83ty bZsA== X-Gm-Message-State: AOAM530lcfvpYIErzQFT5aFGjIvZCt4dLruLXclPzSjaKtDIRM0GD3B/ 1JcarJMSoZomlAg2GjnJJUI= X-Received: by 2002:a4a:88e2:: with SMTP id q31mr343033ooh.91.1631029813663; Tue, 07 Sep 2021 08:50:13 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id c24sm2487574otf.71.2021.09.07.08.50.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Sep 2021 08:50:13 -0700 (PDT) Sender: Guenter Roeck Subject: Re: [PATCH] Enable '-Werror' by default for all kernel builds From: Guenter Roeck To: Linus Torvalds Cc: "David S. Miller" , Dmitry Torokhov , Christian Koenig , Huang Rui , Linux Kernel Mailing List , linux-sparc , Arnd Bergmann References: <20210906142615.GA1917503@roeck-us.net> <20210906234921.GA1394069@roeck-us.net> <4fa776ea-c225-157e-6321-f852393422b9@roeck-us.net> Message-ID: Date: Tue, 7 Sep 2021 08:50:11 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <4fa776ea-c225-157e-6321-f852393422b9@roeck-us.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/6/21 7:29 PM, Guenter Roeck wrote: > On 9/6/21 6:12 PM, Linus Torvalds wrote: >> On Mon, Sep 6, 2021 at 4:49 PM Guenter Roeck wrote: >>> >>>> but I'm not seeing why that one happens on sparc64, but not on arm64 >>>> or x86-64. There doesn't seem to be anything architecture-specific >>>> anywhere in that area. >>>> >>>> Funky. >>> >>> Not really. That is because de->di_fname is always 16 bytes but size >>> can be 48 if the node is really a link. The use of de is overloaded >>> in that case; de is struct qnx4_inode_entry (where di_fname is 16 bytes) >>> but the actual data is struct qnx4_link_info where the name is 48 bytes >>> long. A possible fix (compile tested only) is below. >>> >>> I think the warning/error is only reported with gcc 11.x. Do you possibly >>> use an older compiler for x86/arm64 ? >> >> No. Literally the same exact version. All of them are >> >>      gcc version 11.2.1 20210728 >> >> from F34. >> >> I suspect it's something about the config - a sparc64 allmodconfig >> presumably doesn't end up having some of the things x86-64 has enabled >> (because of different core config parameters), and then optimizes >> differently as a result and shows the issue that way. >> >> Or something. >> > > Looks like Arnd stumbled into the qnx4 problem before: > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99578 > ... and submitted a patch for it: https://lore.kernel.org/lkml/20210322160253.4032422-6-arnd@kernel.org/ Looks like it got lost. Guenter