Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10793794imu; Thu, 6 Dec 2018 06:56:12 -0800 (PST) X-Google-Smtp-Source: AFSGD/VzA0vJx3vJQUbhQ0tuuEO0xlVr/Gut8h7TdRlLNL6JbPJRsoY81yWGmfXjHRm+sbf7l6wL X-Received: by 2002:a63:344e:: with SMTP id b75mr23358822pga.184.1544108172757; Thu, 06 Dec 2018 06:56:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544108172; cv=none; d=google.com; s=arc-20160816; b=LxAeKKyHsdQVo5OFmIHSAURpOODcQU8yNHeFwVcRiS6V/ppveDvsHGM8ckpr0hmjwS 698HOc0JULx7GuoQBV/CDXU4nRJyYHjyiF2iGFFgHd5ZcZedDhyjz/ORcV1Myhqp5YQf v99TsS5V5yfdm+/sWszGY5mN9kzUX4uA7VXPLTdj7VHc4xTP9rnCOpUYr2SuQM0VFFor dyCmzD2zbszcQpnZkDPS5JDI1oogNvTQP24ENSPB4f8yexH7jHMxIsvYq244qs/VsXqa frAVUghRWRd+KDaFM6XHumexMNP7h98RiDoaus9gTOSV5f2nBimwE9eXeOIYv1uDebbG SvVQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=WI+PH2HkbOzC+C0E4aF2xDi/gWsV7fktf3advB1wblk=; b=jkyvB3d1JxqgeDdodPvs096r2ZHKo7ehg1AcBkttBzyF4Tw9Ir5fVkrHPrJS7rqINT TAOHEnUG0tjSvvpbeAmS2HmMCQEIK9Y+3xAKGYwLLdILay1PcH+zxtaoi4fSsO41jNVd 8DY/nMEFPOvSNwcf84eN8YTPdNPZiSw8xcPeQgASkWME2TAn8wwQxBXWp/jtHAhaadB5 iBLCNrvwzxcErMi9PsDKrGA/n5fmFRn/iyypsN4QQmx7tNXGWx7XD6fvoHoULWLSk4dR KQR8kOCNGr3SBMk6wnz8RgiUTXYQ/Yk8VT3jBC3fTR14HQU/zmEV0vr2KgfC4IxECt9O mFjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZCDC5b6G; 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 191si406438pgd.228.2018.12.06.06.55.56; Thu, 06 Dec 2018 06:56:12 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=ZCDC5b6G; 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 S1726085AbeLFOzX (ORCPT + 99 others); Thu, 6 Dec 2018 09:55:23 -0500 Received: from mail.kernel.org ([198.145.29.99]:48678 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729850AbeLFOoF (ORCPT ); Thu, 6 Dec 2018 09:44:05 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AB5F22146D; Thu, 6 Dec 2018 14:44:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544107445; bh=hqiuZuyPhhv87MtciiDhzbF+lroxyx6vVeli4pmvq78=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZCDC5b6Gmri8FR6U53FCWiriqRFlE3KjGGQy9S17xvSDDg2QVcuYNdyiLsQSss0Gz dzrVQSByy4ltFP3efDEKUi6p+q9hVYjnSyAt4eijhngQK1yU0PXJ8PJfa3U66Q8OsV szSnjFN3bDLU1afuI6JomCjBdDigdoT1aVGV6+bo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Xiongfeng Wang , Masahiro Yamada Subject: [PATCH 4.9 001/101] Kbuild: suppress packed-not-aligned warning for default setting only Date: Thu, 6 Dec 2018 15:38:00 +0100 Message-Id: <20181206143011.481021359@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181206143011.174892052@linuxfoundation.org> References: <20181206143011.174892052@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Xiongfeng Wang commit 321cb0308a9e76841394b4bbab6a1107cfedbae0 upstream. gcc-8 reports many -Wpacked-not-aligned warnings. The below are some examples. ./include/linux/ceph/msgr.h:67:1: warning: alignment 1 of 'struct ceph_entity_addr' is less than 8 [-Wpacked-not-aligned] } __attribute__ ((packed)); ./include/linux/ceph/msgr.h:67:1: warning: alignment 1 of 'struct ceph_entity_addr' is less than 8 [-Wpacked-not-aligned] } __attribute__ ((packed)); ./include/linux/ceph/msgr.h:67:1: warning: alignment 1 of 'struct ceph_entity_addr' is less than 8 [-Wpacked-not-aligned] } __attribute__ ((packed)); This patch suppresses this kind of warnings for default setting. Signed-off-by: Xiongfeng Wang Signed-off-by: Masahiro Yamada Signed-off-by: Greg Kroah-Hartman --- scripts/Makefile.extrawarn | 3 +++ 1 file changed, 3 insertions(+) --- a/scripts/Makefile.extrawarn +++ b/scripts/Makefile.extrawarn @@ -10,6 +10,8 @@ # are not supported by all versions of the compiler # ========================================================================== +KBUILD_CFLAGS += $(call cc-disable-warning, packed-not-aligned) + ifeq ("$(origin W)", "command line") export KBUILD_ENABLE_EXTRA_GCC_CHECKS := $(W) endif @@ -25,6 +27,7 @@ warning-1 += -Wold-style-definition warning-1 += $(call cc-option, -Wmissing-include-dirs) warning-1 += $(call cc-option, -Wunused-but-set-variable) warning-1 += $(call cc-option, -Wunused-const-variable) +warning-1 += $(call cc-option, -Wpacked-not-aligned) warning-1 += $(call cc-disable-warning, missing-field-initializers) warning-1 += $(call cc-disable-warning, sign-compare)