From patchwork Fri Aug 2 23:54:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Dan Williams X-Patchwork-Id: 11074245 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 11D3E1399 for ; Sat, 3 Aug 2019 00:08:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 03EA2288E0 for ; Sat, 3 Aug 2019 00:08:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EC9CA288E8; Sat, 3 Aug 2019 00:08:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from ml01.01.org (ml01.01.org [198.145.21.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B00FD288E0 for ; Sat, 3 Aug 2019 00:08:47 +0000 (UTC) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 151982131472A; Fri, 2 Aug 2019 17:11:18 -0700 (PDT) X-Original-To: linux-nvdimm@lists.01.org Delivered-To: linux-nvdimm@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.31; helo=mga06.intel.com; envelope-from=dan.j.williams@intel.com; receiver=linux-nvdimm@lists.01.org Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id E6E4921314729 for ; Fri, 2 Aug 2019 17:11:16 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Aug 2019 17:08:46 -0700 X-IronPort-AV: E=Sophos;i="5.64,340,1559545200"; d="scan'208";a="173368661" Received: from dwillia2-desk3.jf.intel.com (HELO dwillia2-desk3.amr.corp.intel.com) ([10.54.39.16]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Aug 2019 17:08:45 -0700 Subject: [ndctl PATCH v3 1/8] ndctl/build: Suppress -Waddress-of-packed-member From: Dan Williams To: linux-nvdimm@lists.01.org Date: Fri, 02 Aug 2019 16:54:28 -0700 Message-ID: <156479006802.707590.7623788701230232646.stgit@dwillia2-desk3.amr.corp.intel.com> In-Reply-To: <156479006271.707590.298793474092813749.stgit@dwillia2-desk3.amr.corp.intel.com> References: <156479006271.707590.298793474092813749.stgit@dwillia2-desk3.amr.corp.intel.com> User-Agent: StGit/0.18-2-gc94f MIME-Version: 1.0 X-BeenThere: linux-nvdimm@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Linux-nvdimm developer list." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" X-Virus-Scanned: ClamAV using ClamSMTP gcc 9.1.1 emits a slew of warnings for many of the command field accesses. I.e. warnings of the form: libndctl.c:2586:21: warning: taking address of packed member of ‘struct nd_cmd_get_config_data_hdr’ may result in an unaligned pointer value [-Waddress-of-packed-member] 2586 | cmd->iter.offset = &cmd->get_data->in_offset; | ^~~~~~~~~~~~~~~~~~~~~~~~~ Suppress these as fixing the warning would defeat the abstraction of being able to have common code that operates on commands with common fields at different offsets in the payload. Signed-off-by: Dan Williams --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index 4737cfff77f2..79f82977fa44 100644 --- a/configure.ac +++ b/configure.ac @@ -214,6 +214,7 @@ my_CFLAGS="\ -Wmaybe-uninitialized \ -Wdeclaration-after-statement \ -Wunused-result \ +-Wno-address-of-packed-member \ -D_FORTIFY_SOURCE=2 \ -O2 "