Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3304316pxb; Mon, 6 Sep 2021 18:14:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKCVgFPqRtUBm8dGvX5yllkW8aEnkKDwTx7uCy/7qu/ZDfINHj92V7xHKTReA0da10pdNu X-Received: by 2002:a05:6e02:10c2:: with SMTP id s2mr10741596ilj.148.1630977299167; Mon, 06 Sep 2021 18:14:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630977299; cv=none; d=google.com; s=arc-20160816; b=AEZWS8R/dbDwM/PJ8EVJtymWeSTlhavNt1wRGcYGMEjE10OaMilHCXttOdlrQu83zo SClMJkAgXl6bmaztKqq4mEvt/eOU4wE2IBpZgXS1Ji+5e2Kgn5aMegqZJ0ygYIucLIgI Ag15ZEcDEpFjYt3aOY8ZB+B26MZQppzPsvW+gg7K96xTVMImfE9O9rNZqslf8+tIG01g CRgbb1gcdV/0xrc7NyBOKDrMvVYP9w/cihv1PqFO1DOgdczLkYIxKXN1SnQW7BYjtUT2 hn3SewgZHc3sIZie3POpM5tDFlPqYsyWljY0sjaDXGqsK/XaUs8xtb0v640sGTJSOPdb nSYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=buovdfuVwAYJ1wdL40xpZvGrNDWI2KNqFgBPmPDh630=; b=ZblmNK3k/4r5j4ipaIyDzQi+dP4Qjc73AnqocM8M8nEVC7b+aNUyUIoNdbAFg//ASa Aob8YcB+uLII1ZhTKgflf/4/CDPCr8kEsd290caxhI9gmJVsLaaHTkp8KakVB5eMHR35 wOYjLvI0wekJ1WC9t1L3K+Th9OfhhGQgeIBJMnFXVkpVfv9DlYan0GC8DigLzBgI9WEm 4nhwV1HLqTMpCYvZJ4+Gm63OtJHXSPdgDgzq+ot+Rljkhc2S4zZruOgbpX2Va1tYUun7 ydN7Ms99SWvZmEDDV4c4HolYzo0wpQuS6Q29sK5+v3O8ykudvdfGdfouZyHeU12tuk22 0TvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=fuQfTafv; 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 16si8276666ily.161.2021.09.06.18.14.46; Mon, 06 Sep 2021 18:14:59 -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=@linux-foundation.org header.s=google header.b=fuQfTafv; 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 S230061AbhIGBNc (ORCPT + 99 others); Mon, 6 Sep 2021 21:13:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229797AbhIGBNb (ORCPT ); Mon, 6 Sep 2021 21:13:31 -0400 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03798C061757 for ; Mon, 6 Sep 2021 18:12:26 -0700 (PDT) Received: by mail-lj1-x22c.google.com with SMTP id j12so13830399ljg.10 for ; Mon, 06 Sep 2021 18:12:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=buovdfuVwAYJ1wdL40xpZvGrNDWI2KNqFgBPmPDh630=; b=fuQfTafv4uneL2AzwltGo4ZWCS3xmlXhvTfaWdXPcpqErjQyMz3g6ew9quCkVeUZdR X0gHcxtFLBJg+SYSmchrwATm1Xb1uxbZjxVz/87MUSvQntnDeHgJkbIMmJCgDwCX/vPJ 0YlupHDDkh2Qz5u75srCW2zHTRG5msU6vsIYE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=buovdfuVwAYJ1wdL40xpZvGrNDWI2KNqFgBPmPDh630=; b=ec9+lVBRY3Yxpv7Tfmd0VKFovS81m9J0cKEwDyzjLmxGIX0p8bRNi4JtFecxDthVZG NR4W2LHdWsVqeOPe2nYvnucbL09m3dPgUsVwNSIad5mXgFqLKtXU6C3pdXD2J25teOTI iCehynJHJFA7szCeq6D8cmjzKWQe2sm0hxFUzGoL7R2mlhl6HriibzGwoINHGSLeBHmr FXitWYx+MjonaFeLUW3ePiD4tKUalC76Gag4aGoHu8JAbxH7rT9SiUOiYGHF75DG63pO t+hXRfOpvuGNEaPkCKiO/p3ZApTQNGpTAOhUWrJOe6wG8nd0M64617CWDasz4IEQU5cD rlGA== X-Gm-Message-State: AOAM5314CU/AUjZiPeqHQ84GAITcMI8ngJdULL7ns7CdfZs+/yFXEbU/ Q5RElhyp4RPrnRZ9I5zpecaZ0I/aIWZHrbpM X-Received: by 2002:a2e:a54d:: with SMTP id e13mr12878748ljn.267.1630977143467; Mon, 06 Sep 2021 18:12:23 -0700 (PDT) Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com. [209.85.208.180]) by smtp.gmail.com with ESMTPSA id l22sm858278lfc.218.2021.09.06.18.12.22 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Sep 2021 18:12:23 -0700 (PDT) Received: by mail-lj1-f180.google.com with SMTP id p15so13897482ljn.3 for ; Mon, 06 Sep 2021 18:12:22 -0700 (PDT) X-Received: by 2002:a2e:a363:: with SMTP id i3mr12459242ljn.56.1630977142525; Mon, 06 Sep 2021 18:12:22 -0700 (PDT) MIME-Version: 1.0 References: <20210906142615.GA1917503@roeck-us.net> <20210906234921.GA1394069@roeck-us.net> In-Reply-To: <20210906234921.GA1394069@roeck-us.net> From: Linus Torvalds Date: Mon, 6 Sep 2021 18:12:06 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] Enable '-Werror' by default for all kernel builds To: Guenter Roeck Cc: "David S. Miller" , Dmitry Torokhov , Christian Koenig , Huang Rui , Linux Kernel Mailing List , linux-sparc Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Linus