Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10799047imu; Thu, 6 Dec 2018 07:01:13 -0800 (PST) X-Google-Smtp-Source: AFSGD/WqvYT2YecGsEQPadxVHxhoTGgMyb4fnsq9KFvXufvaYxWm2TllMMZDSyvbqu4eD91ImahF X-Received: by 2002:a17:902:33c2:: with SMTP id b60mr28403772plc.211.1544108473318; Thu, 06 Dec 2018 07:01:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544108473; cv=none; d=google.com; s=arc-20160816; b=RAIAwzuc8yY3wXK7qr+F+clpBbJMOCncRNVR2T3fI4WJC7O81V6CqisBVs6SIkcFyl HABYxpBx7O/bCgN7W4oQSn5YDiJ/D68hj+DiWCfVsteSMvQ+3LD2cfXrVF/hSjgSpoSh NoLsi81edm1raXVsj9AOxxV4B1Fa3eLpMuOhyGoXbHZJE1wvX9M4hPK0UnVi6NDB634j hk+odLDyGWHYyU8L+I9wOF/zHHjj6+gFG/TiXF8iqrFDMjulm2uJxv0rtrARfyhq51UD rWKCXtF4XoHUNjsoFDXmQBrfZLiSOzPlfAi7z73Ow06wzfK6CL70LmM0oBtzmUhaOyrt iaXQ== 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=yBABqmd/4TCPBXp2gRfjDchRP7FNaRYaV0qDN6bkV0Y=; b=wmNuRBHAg6ZVqFqkoZ/bvTIK6Z147oHaB5IDgwrIYNBRfdSwcwGtD2ewvbD2Vi4PAr t6AJOt3sHVWUHT/OG9/qnvzVZqCEQZTEEb3TJ965IXzRorEJk4d0P+xl0e4LL61aZEnr L048UJfcLld1KRkzZ8fwTR9EZL2HMiE/uNJUdo0747POKO4mivExcJdopBVny4FySWsW xGu1k12UtlP1hWP4VDB/lKcvQVMy4EZUV/OWt0g6tG/ri4D7sPbCJ1E/kokUh0bwZ+oU 3XkC1chOMG7lKfktCE5N7e5R6+BFTSk6SSXU5ooojkgCH1XSPZqhUjBk6Pj6ARJy4A8c lpFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TNnTYCZm; 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 c21si420508plo.165.2018.12.06.07.00.56; Thu, 06 Dec 2018 07:01:13 -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=TNnTYCZm; 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 S1730314AbeLFOlo (ORCPT + 99 others); Thu, 6 Dec 2018 09:41:44 -0500 Received: from mail.kernel.org ([198.145.29.99]:45916 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730298AbeLFOlk (ORCPT ); Thu, 6 Dec 2018 09:41:40 -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 815E520661; Thu, 6 Dec 2018 14:41:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544107300; bh=qea203T00d5QGpCpPcyqypRnZ+DGOeOW1WHFrfK76JQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TNnTYCZm3ELYay5UQQZqqNL7Z0Bu4gbf32rjOxMztT0xxYk0xojgWi667RYmc9RBU /z3bRDMRUOqWHU0USS+PZK9vOu3kJfUwcEy6Y/DZRUFwOB2nZ4X1lekrp5pstLje5y YF5wQaQnSFbO3SzHQUoC/2fuk2x7SU9N0MC0r3VM= 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.14 01/55] Kbuild: suppress packed-not-aligned warning for default setting only Date: Thu, 6 Dec 2018 15:38:35 +0100 Message-Id: <20181206143001.831278160@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181206143001.749982936@linuxfoundation.org> References: <20181206143001.749982936@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.14-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 @@ -11,6 +11,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 @@ -26,6 +28,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)