Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp798264imu; Tue, 11 Dec 2018 07:45:51 -0800 (PST) X-Google-Smtp-Source: AFSGD/WAXA1WaEhF6/cBpRiHx3/50efQoKWZ1CrjeUfFM2ozoSa93FqbXTue+HELLCZGd6vht5bS X-Received: by 2002:a17:902:b20e:: with SMTP id t14mr16558943plr.128.1544543151701; Tue, 11 Dec 2018 07:45:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544543151; cv=none; d=google.com; s=arc-20160816; b=c/lk4sNqUMD3Q6MQuQErh3Jx8DFQLqlAY9bOLjXDW0+a4n7a2taOwH4INwtUQWFvLg ve6DMaRt/rQVDgmfuZDNzDlUM25CFXVqB44be5fEuSFLzoIBhz9I2HHU40hlKuYoevfi IVRNCBCdTjbT781SVHIolDs+HlQZjSFZ5r93gzwqN6NFKnaCZf7R9Y7dyUCIMJu1XGbp 7rN0na/cvx5kxTcKNSw2k6jgT0zbc7w/1WZ7YGjlyXY+I/iGMsK6ZEGHA6+M86BXGApK iqxdP4JdbxHMB8T8TcnLEjz3hbwaldWhUAPammtTKvdLfps7+6VOo+4zRhC4pVG/I6HP HR3A== 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=LSjadALKajZXt9KoIqUrG4T2074hq2ccOw84Y+2VbmM=; b=G0DPFgLd0UQblocrf7vW+pqL20fWDbeYlZ8vW3KTuHfytFty/VneFeP08snfm6Xjlz /0ll9K8CeoYywQKYkrHdV0asVjndLrBjaMEa6JJO4bxXh0Vq1QLk41dbBghLWsVGwXi4 SECtymxL6wfCnADLOAthEfUi5TKPtkX/tj3HEg4ch5afqdmegyFTCm6LT8vzkA3rKhjb hm2Wnh4OyeF1OWci1JkVqMlQz9MWyxdT40uZxu7X7VysZVa+B/eg0D09u8shDOzbEiuS TAKvw7y6A56i0fZ8lkMT514vTraIua+YbsIMhu6PRg17tgWIdwJv++cksS1FL5fYj6d6 PFJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JqHDDx2P; 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 i1si13012476pfj.276.2018.12.11.07.45.37; Tue, 11 Dec 2018 07:45:51 -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=JqHDDx2P; 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 S1727764AbeLKPoN (ORCPT + 99 others); Tue, 11 Dec 2018 10:44:13 -0500 Received: from mail.kernel.org ([198.145.29.99]:60764 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727254AbeLKPoM (ORCPT ); Tue, 11 Dec 2018 10:44:12 -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 ADF5B2082F; Tue, 11 Dec 2018 15:44:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544543051; bh=zyLhz1bSH9QXTV77PLYiif6QDoXBiieVO0gn8vJSpqQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JqHDDx2P96U6W+bRqSjWVlvv2CnT9PbqXEnvOot5cD8GzQz3caqx6LEqqcuXFFNvB NQyG8GBFNkoPD38t6Ik4STNx87dZ+WJImrs3uR+HD7mgD1gr8ZbdVKPwLc6IN4s1OY 3RTaGuFhIlkZgWAm90rMPYzhpQtMnQCoERjvgTPk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Xiongfeng Wang , Masahiro Yamada Subject: [PATCH 3.18 13/54] Kbuild: suppress packed-not-aligned warning for default setting only Date: Tue, 11 Dec 2018 16:41:01 +0100 Message-Id: <20181211151546.730802170@linuxfoundation.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20181211151546.010073210@linuxfoundation.org> References: <20181211151546.010073210@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 3.18-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