Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp96866img; Thu, 21 Mar 2019 15:03:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqyXETD5ZMpMxqZ/qyKNFkVk5Yjjq1Ji8XgL0IlCcVBPkclUUzbAduYKqbnHcOMUKhtWnvOQ X-Received: by 2002:a63:28c:: with SMTP id 134mr408915pgc.278.1553205789010; Thu, 21 Mar 2019 15:03:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553205789; cv=none; d=google.com; s=arc-20160816; b=tzOPlVTQo5A7gS6y7KgFjMBKav9hqrrS5mm8topK6MwjAlYnIJqvw9r9U9BWO8JHLD tteJD6ZYqZknbkIgRpk93arD8lYsLTRc4inu2nL5dy5UB2Rb+m6F0u3HlJMXKxXbccwa iXbJQOHmPrVTx/94h+6Bzae2hmlZMYx2etpsy6QMa5P0onLDMmDcWOzeMnJvyQqhob3A GghdB+Z2Tej6nrkx4OY6Ts0TBJ7bPv8s7izoMRQikQueNfpraS7wvNpZx5PhMk+CD11O bw6MAjtgziCe6IN4zRXIPk9Exqusaao03bssvE+UtYttCHVNpGt7IuyEvpp5s/6yr5f/ ViqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=m1gOqb2GUkj21iJFULRmyP5hjYdRCLS/WY3rYD27bF8=; b=O3clxIxt7ZCKo1KjQz1m0dKZ51ISMlm1Mn61vblGU6lXz9LQavCtbMf003AJhTLvTE 9c2HqBccQ04qbax3cxv6YXObOVAtWJ0XbOiPIDDiGl8ZncRpiQkDjpr9GBbB1ToLIe/Z YGDsm6bP6QmJfWt654LW8YHtCMd0F9xFLopKUmINnFIal/TPHBQKW+QbvV7DDQxJ9Cy/ C+e0jt3gEzAOGqJ6eMag1RpkMHJ7hO2CEovxwqMYpAIsG9SKj5IsiGo9403JjnLDbFic sEYR2rubwiICQnw8mYYtqT0yDdnU5kmyH1U9/eoACqrIAfJfnbXV3SKkDjMd8esR/hce XHzg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f3si5325992plo.369.2019.03.21.15.02.51; Thu, 21 Mar 2019 15:03:08 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727591AbfCUWBf (ORCPT + 99 others); Thu, 21 Mar 2019 18:01:35 -0400 Received: from mga02.intel.com ([134.134.136.20]:20537 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727050AbfCUWAY (ORCPT ); Thu, 21 Mar 2019 18:00:24 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Mar 2019 15:00:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,254,1549958400"; d="scan'208";a="157183552" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.137]) by fmsmga001.fm.intel.com with ESMTP; 21 Mar 2019 15:00:23 -0700 Received: by tassilo.localdomain (Postfix, from userid 1000) id 0C77A300AB8; Thu, 21 Mar 2019 15:00:23 -0700 (PDT) From: Andi Kleen To: x86@kernel.org Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, Andi Kleen , arnd@arndb.de, Masahiro Yamada Subject: [PATCH 01/17] kbuild: Disable -Waddress-of-packed-member for gcc 9 Date: Thu, 21 Mar 2019 14:59:53 -0700 Message-Id: <20190321220009.29334-2-andi@firstfloor.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190321220009.29334-1-andi@firstfloor.org> References: <20190321220009.29334-1-andi@firstfloor.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- Makefile | 1 + scripts/Makefile.extrawarn | 1 + 2 files changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 71c2c482e2a2..78efbb172991 100644 --- a/Makefile +++ b/Makefile @@ -676,6 +676,7 @@ KBUILD_CFLAGS += $(call cc-disable-warning,frame-address,) KBUILD_CFLAGS += $(call cc-disable-warning, format-truncation) KBUILD_CFLAGS += $(call cc-disable-warning, format-overflow) KBUILD_CFLAGS += $(call cc-disable-warning, int-in-bool-context) +KBUILD_CFLAGS += $(call cc-disable-warning, address-of-packed-member) ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE KBUILD_CFLAGS += $(call cc-option,-Oz,-Os) diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn index 768306add591..ed974a0f4a47 100644 --- a/scripts/Makefile.extrawarn +++ b/scripts/Makefile.extrawarn @@ -43,6 +43,7 @@ warning-2 += $(call cc-option, -Wmissing-field-initializers) warning-2 += $(call cc-option, -Wsign-compare) warning-2 += $(call cc-option, -Wmaybe-uninitialized) warning-2 += $(call cc-option, -Wunused-macros) +warning-2 += $(call cc-option, -Waddress-of-packed-member) warning-3 := -Wbad-function-cast warning-3 += -Wcast-qual -- 2.20.1