Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp856060img; Fri, 22 Mar 2019 10:00:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqzYpHtwc+6QKAJFf74x4z4JieKYalxZE8I2eIIKf5vgyX63KmKT4AW+Y4NYN2/W6x+rEpmR X-Received: by 2002:a17:902:681:: with SMTP id 1mr10752282plh.31.1553274052915; Fri, 22 Mar 2019 10:00:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553274052; cv=none; d=google.com; s=arc-20160816; b=JnC4c/NETk19h5+dE5WGufSDYCNCTL6O91LrS1MyyxN7rIEo/tI7kbBvWCT890XbwS 3oJo7UGjhZEZ9CVWh8zDHDr2rR5qE/62H4uMxXZGCjky5gg5wEZA+T1vsulIj7iaKJMS UtJPiHiHVr93gFzrZhUtliaJFmKzPD0KNTOPgfPlIXEeuOEG9uB8auHfAmgTDKVGEsdl DJnF98OjHx6OUSExq33ebmHz923aCzHE13w0BDuwZI8RuaEKx+MGjLAXtBwJZqazVWhV 6WMgaB+MhlDa+/2VbGieobP4HiuKCcdFbg3gAIV00fuDVI23Pvi3xVi9mZ3Moep1nnRc /BGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=umazeXUsIhDLb6UnbN8YJucQXFT94BmS2ETVNMhbVLw=; b=IPTyyJIDVniLS5lP2CPM8Ggf9XjB/Q2gXD1bhB96i5mtqULiR5yQfyj1sOJda9ZG8B IzoUvdAAycFBwkjNLb2nz3rcePvs+AnJEPSY+5rbKLXKU1Huek+VBJYjcAreLoA9lLEX PQ5ZZ0yyxxfiG8rc3cz715tos+l/ZO6dsF4mqIPgTTjdLNmxhDebypwHO8mY8ohApbwn zCQ9H4bTCagOiTzKSHugq96frvz9lQqPlSTUblOIyPvSuy1tDQbqTpzXbqh3vLg8LmV5 7ldHw82hIqGaWkUPoKuAQb3kuwaLloA48Oh+QaBYXSOdoeYVHfbX2t1jHCRH8E0MAUUK ilLg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bg3si7233475plb.363.2019.03.22.10.00.37; Fri, 22 Mar 2019 10:00:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728029AbfCVQ62 (ORCPT + 99 others); Fri, 22 Mar 2019 12:58:28 -0400 Received: from mga05.intel.com ([192.55.52.43]:20435 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727058AbfCVQ61 (ORCPT ); Fri, 22 Mar 2019 12:58:27 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Mar 2019 09:58:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,256,1549958400"; d="scan'208";a="133875258" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.137]) by fmsmga008.fm.intel.com with ESMTP; 22 Mar 2019 09:58:25 -0700 Received: by tassilo.localdomain (Postfix, from userid 1000) id CBD29300E46; Fri, 22 Mar 2019 09:58:26 -0700 (PDT) Date: Fri, 22 Mar 2019 09:58:26 -0700 From: Andi Kleen To: Peter Zijlstra Cc: Arnd Bergmann , Andi Kleen , the arch/x86 maintainers , Andrew Morton , Linux Kernel Mailing List , Masahiro Yamada Subject: Re: [PATCH 01/17] kbuild: Disable -Waddress-of-packed-member for gcc 9 Message-ID: <20190322165826.GE24002@tassilo.jf.intel.com> References: <20190321220009.29334-1-andi@firstfloor.org> <20190321220009.29334-2-andi@firstfloor.org> <20190322163954.GG7905@worktop.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190322163954.GG7905@worktop.programming.kicks-ass.net> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Lol... we're actively moving away from the C standard on many places. Yes and also packed is not part of the C standard. > Why does the silly compiler think it is a problem to take the address of > a member of a packed structure? That sounds like something that's > perfectly fine and useful. Probably because a pointer reference doesn't do whatever magic may be needed on architectures with poor misalignment handling. In theory you would need memcpy(). In practice it's likely a lot of false positives, like the architectures with poor misalignment handling are usually in SOCs without PCI and they don't have the devices with the problematic drivers. -Andi