Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp837284img; Fri, 22 Mar 2019 09:34:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqxM0pVSSRNIRg4abt3m2FWddsB0S+IaAy9z2e/bFqCDmV9j+ExlVWnHXoJXkpq/TEJ09RRW X-Received: by 2002:a17:902:3a5:: with SMTP id d34mr10046563pld.174.1553272460902; Fri, 22 Mar 2019 09:34:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553272460; cv=none; d=google.com; s=arc-20160816; b=tK6S4ukWFEtsI6nDfPst1ikzFqx82Bo2IBALlp/bh09oXDOXOjkDpZVxj1kt0faaTD cb+GhWPHzRBI0svILhsXwJHXwl+lk4LQ9oTt+loNicfCWy2OKB39TX9kbOSrDW2Q/KJ3 2jhDdoc7BRFkiLXtNsI2ObqkQGxMVmMBonZKDjjG1JUciZKdKoJIlnRkCOYoq5icRTUI VX3nrfFNcu7cQ8p1pOB83uRfak4Eo8+ZDlyQepSDzq+rQgzfxADHLRty4ZYvprIwi5NJ vxvfxFsiH34uU8NmjQUqXTWMPabmAMpKv+LjSpdTx80PWAsfWDqqDeC1z6YOdtkOBLll R/YA== 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=9oOHE0qixaQMRGVDT/+AlWa30ZdaD9dcfKly2zNFFEU=; b=r9iiG5C7q8XFmQZ21FaXp4XmJ0BFRS+gwAYqCkgQlgbw5FJWQNMn6Ip1rjBoZqOAq8 Ez2oJ2at/ya+LQUIEPTMz18S9G3Ppr901p6hTUmWxdpNkwu0n4+koWypTV9MVnbzDeuu CziPERudeULecCZArVQ+TjZvhFZKICZNiHdNGCOk3Z/XxZ5AS7jes04o3xX3WU+/+27o O0w/5coV9aH/SUo8JaEdVFLVIbIlk7FRTjWh47iEnVeA0DVZkbD2pE0IRRv6wJngnYJc eL9VsYcraBMmyWKpDS21kI1Bif3khiY1OUoP/EIwf5Hxw0Z6+lzgjlZ6iU2kp4mCgCPb Wz1w== 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 l66si7004158pgl.474.2019.03.22.09.34.05; Fri, 22 Mar 2019 09:34:20 -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 S1727172AbfCVQbH (ORCPT + 99 others); Fri, 22 Mar 2019 12:31:07 -0400 Received: from mga05.intel.com ([192.55.52.43]:18877 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726023AbfCVQbH (ORCPT ); Fri, 22 Mar 2019 12:31:07 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Mar 2019 09:31:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,256,1549958400"; d="scan'208";a="136380317" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.137]) by orsmga003.jf.intel.com with ESMTP; 22 Mar 2019 09:31:06 -0700 Received: by tassilo.localdomain (Postfix, from userid 1000) id 400E4300E46; Fri, 22 Mar 2019 09:31:06 -0700 (PDT) Date: Fri, 22 Mar 2019 09:31:06 -0700 From: Andi Kleen To: Arnd Bergmann Cc: 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: <20190322163106.GD24002@tassilo.jf.intel.com> References: <20190321220009.29334-1-andi@firstfloor.org> <20190321220009.29334-2-andi@firstfloor.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 On Fri, Mar 22, 2019 at 02:58:51PM +0100, Arnd Bergmann wrote: > On Thu, Mar 21, 2019 at 11:00 PM Andi Kleen wrote: > > > > From: Andi Kleen > > > > This warning is very noisy in a default build with gcc 9. > > Move it into W=2 only. > > > > Cc: arnd@arndb.de > > Cc: Masahiro Yamada > > Signed-off-by: Andi Kleen > > I think W=2 is too aggressive. On many architectures, this finds > real bugs and the false positives tend to be trivial to fix > (by removing the bogus __packed annotation), which improves > the generated code in the process. It might waste more memory or make the data structure incompatible with something external. > > Moving it to W=1 for the moment is probably fine, but ideally > I think we should fix the kernel to behave according to the > C standard. Okay, so is there anybody working on this? AFAIK it's not an issue on x86 at all. -Andi