Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2838480pxb; Tue, 21 Sep 2021 08:44:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJU4tNTD9g6jv34hdsKMmOXuTIRyhqZiAxAN683KGIqQ11X/4DOgwHE2buCIk7tgRYLGDP X-Received: by 2002:a05:6e02:b4f:: with SMTP id f15mr16971363ilu.199.1632239042324; Tue, 21 Sep 2021 08:44:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632239042; cv=none; d=google.com; s=arc-20160816; b=cPy+Vj4Cx+Cr0E/NQdsICxMhmWcV7Z4/nzWWofIAjD70+TNVlA0n2C2lH8I62udKv7 acipFl9eeA30nV4Vcb9z4ayW5BOMgkM5dQPOqjgNJHh0EwQJE46OAgaNDZ4mUE3JekDs kkHXbnBA8xa3pXOPYxru11mFUo3lYdKbhq9s71mhuILAvPvB1Qif4j9mOL/Uj2Y0MQp/ 2XIMr5Wampcssrs63Tft0ygdEbwHCW6ejn5t7lPce4rbk2T5nji6dvA/SvxFwTF346BW XUy6HZiq7aPpxzhunFsWZGMZVNbn34YwCwrxUxqlzH9vippR92MWhUzzLdNLyz/XdanS 8uhw== 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=q5ZjvlclnOLefKJUciH/41eaKTuf2oeVM14/tctcfHk=; b=Xq44lsHKqWDFcdep0ayLgdJkFxElEQdMssk4HBxYmtPNY1yP6nuTxgVkxcaYIVW+pv N1NZeR0HR4axutd/zyMkKf3noKGtb4j5JuyLiEDdWMfu78n1dgnMblFUHai6YYEvZJP3 Hj7B5hS+Wd73J+UTfeCyFdY6gvHUMkfiQw1zP07NSPu+Tq79WueQC9S6T1XpAOWXEtYw 3Mnqs6/zpadgURREXJLf7jWOG2wZjLkhEW+1+RU+2jrncS6wU9wM6wzg64z9zWJtz09y gSo/tAxyKIjnWRC8U7YE+TiLS/pofgF7r5x1bYlS8T5h46PeUo+QeGYRChJcfitnY2am LEcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=WAtzyCe5; 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 x6si17779023ilv.93.2021.09.21.08.43.49; Tue, 21 Sep 2021 08:44: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=@linux-foundation.org header.s=google header.b=WAtzyCe5; 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 S234134AbhIUPnC (ORCPT + 99 others); Tue, 21 Sep 2021 11:43:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229613AbhIUPnB (ORCPT ); Tue, 21 Sep 2021 11:43:01 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7868FC061574 for ; Tue, 21 Sep 2021 08:41:32 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id i25so83978976lfg.6 for ; Tue, 21 Sep 2021 08:41:32 -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=q5ZjvlclnOLefKJUciH/41eaKTuf2oeVM14/tctcfHk=; b=WAtzyCe5WGtijPUGvRi94F/d74XLgpaTeM3I9SyJeVvDgv27xzam2rqeMHc3M/6F9o ObDpjtJQ7zMy9DmdvysMIbDE9KwSUMhZlGKlmzhuJBfyxSsgmt1NVpenIzlj/Xxyv4/I 8p0CuY63IGjBJVi+pENOA39cL/acy1HeogBao= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=q5ZjvlclnOLefKJUciH/41eaKTuf2oeVM14/tctcfHk=; b=EF/SaWjOTSeDtBj2VBl94EqavO8oqyjIqPuV7zJa6IN18QKLWWlfMwp7/+wuuS8PCX N3nVN8gbvLyupdQgPUmyfwW/ZShXkP1mpuqJQQpr86/Qn1PLw58lJ2Udx5AcS6c4Rcgf pI8cS8azrwboQHNBzE12xsA4NP4LmqNRFlBq5U49+nbyaSkgEf8/Dyadxtxb83QbRfsM puC34WsF8D5I5r9ZwHLpeUJNlf3lnPD0NYvI74VvJnFEtLbzruvPkAiOcfhiGAVff06x /I06wPxQWQJ3z46EEsQ5+2KxfgP+rtiKmQBb4B6uiUvyzQEgZhW13smyK0Vr1iBd/ZcI B7uw== X-Gm-Message-State: AOAM532nwl5d7fo9Ls1+sHH02lodW3TUp3tFcvmp23S7tP5lwKzF4kCt gxe30uq6PouujP2m+JLxnfbMDGx1XHpc8+OOaQ0= X-Received: by 2002:a05:6512:c20:: with SMTP id z32mr13500939lfu.590.1632238869500; Tue, 21 Sep 2021 08:41:09 -0700 (PDT) Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com. [209.85.167.41]) by smtp.gmail.com with ESMTPSA id w3sm1546366lfu.147.2021.09.21.08.41.09 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Sep 2021 08:41:09 -0700 (PDT) Received: by mail-lf1-f41.google.com with SMTP id i4so83684796lfv.4 for ; Tue, 21 Sep 2021 08:41:09 -0700 (PDT) X-Received: by 2002:a05:651c:1250:: with SMTP id h16mr9831360ljh.68.1632238839995; Tue, 21 Sep 2021 08:40:39 -0700 (PDT) MIME-Version: 1.0 References: <20210920121208.54732-1-arnd@kernel.org> <2955101.xlVK0Xs8nM@alarsen.net> In-Reply-To: <2955101.xlVK0Xs8nM@alarsen.net> From: Linus Torvalds Date: Tue, 21 Sep 2021 08:40:24 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] [RFC v2] qnx: avoid -Wstringop-overread warning, again To: Anders Larsen Cc: Arnd Bergmann , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 21, 2021 at 8:15 AM Anders Larsen wrote: > > they are available at the same offsets in struct qnx4_link_info as well, so > wouldn't it be even simpler to just always use the fields of the latter > structure? I'd rather use that third "clearly neither" structure member, just to clarify what is going on. Yes, we could just always use the bigger structure, but then we'd actually access a "link entry" even when it really isn't a link entry. Now we can have that bogus entry and the big comment that says exactly why we use the bogus entry, and it's clear that the "name" we use is not necessarily a link entry or an inode entry, it's that special union with a big comment about a gcc bug above it.. Anyway, I committed my patch that Arnd had tested, with a slightly expanded comment. I'm sure yours would have compiled cleanly too. Linus