Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp838820imu; Tue, 11 Dec 2018 08:19:55 -0800 (PST) X-Google-Smtp-Source: AFSGD/XX3cwG1kKAitgq1AGepnG8vQTsWfspgdj1CDU8tA5KEU9AiG1R3sgcHCKA92HSEikuPmBG X-Received: by 2002:a63:4a0a:: with SMTP id x10mr15056397pga.237.1544545195193; Tue, 11 Dec 2018 08:19:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544545195; cv=none; d=google.com; s=arc-20160816; b=WHN9ay8whDXQOGJbH43eQkzbS6a3MZ4bzoVcWSAi3rA4hZPz/QOb1iyR1htXgRXh2S 4BxMlNA3lM2TdpbqV8WCRCq/pzbYHHaDoKNp//0saoJDwTEEnbGsaaL0qDQibb1ZSO3U 5mdE1no7xaOrX4mzZMoHEo9eDvppk2Xf/0ZAC7CSR8KxpkNVjnY/XCFf3rvOy9BVcj+T eqyIX5SYPm8On4KjNaJxlBItKN5PvpjzjhHle/hlLHgArR1z1WZTXgPQGjPPQ+bHdptx 96ws1liTEsfFJCjo3WdraSYATwSySekYzXZDV5m08VvaGWDU4VQe+SlDwCijQGXWklth Tm8w== 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=sz4w8vzpv+EL/SvE/IRrgZQRWwqL9sH69QiBy35IgUU=; b=YDTJ3xWNuWqRqRS5We1GeSkERbTagyJBdTGTIwnv8brNqWDbGBHMWFjXRhM7rLukQq nSC0XJbdkpPGOSXuLVIA+Pe6Xut4fYOoM9jPY0s9H5u4JTpef0+4MZWZgCOmpyGdKaVG 2MBok1bK7CzYlfctscmMfN9y3GwzONWOMaIouuChDBVNC949dtAQX0/DKmnwtkGkc1VM KedPWBHcLt145tPQcds3jmXtwSIv6geO7o7IFb2tBHzZX4d+eDYebMuNdoMV+ZMI9S5h 3Ee5hKfV0kIG0i3rElUG4n8ZLUR5cE7blBAzUHbD/CLEmU2efSvK+/e9cnOUJ2miP8vT q5xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FmAuW7io; 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 u195si11663308pgb.550.2018.12.11.08.19.40; Tue, 11 Dec 2018 08:19:55 -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=FmAuW7io; 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 S1728887AbeLKQRz (ORCPT + 99 others); Tue, 11 Dec 2018 11:17:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:35214 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728412AbeLKPqu (ORCPT ); Tue, 11 Dec 2018 10:46:50 -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 D91D1208E7; Tue, 11 Dec 2018 15:46:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544543209; bh=80CZw+1+OuPoiSH/PQW9R9H5kv9UF4hVtOQ2EY+3NFw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FmAuW7iof9E4fa1yTxLRL/ffZfvtLyJfdUTxgaWQl2V36l3vA3dLQlwg0Nza2wl7R TW4KHMzzpJZGvm5RHhOtu/svvXsCBGMwOfjsFQ3moHByAuG2oumP/J13G9IjIQenaX LD4ratvjWViqhX1Er6un/bJUArEIWLHVztwT9Uqo= 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.4 21/91] Kbuild: suppress packed-not-aligned warning for default setting only Date: Tue, 11 Dec 2018 16:40:40 +0100 Message-Id: <20181211151607.518914047@linuxfoundation.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20181211151606.026852373@linuxfoundation.org> References: <20181211151606.026852373@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore 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.4-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-2 := -Waggregate-return