From patchwork Fri May 3 06:29:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 163297 Delivered-To: patch@linaro.org Received: by 2002:a92:7e86:0:0:0:0:0 with SMTP id q6csp258668ill; Thu, 2 May 2019 23:29:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqwghN/CaW55OArOps0L+oY9TwbMr//M7OC2VMWfmHc2PXE4ozjsbIXii2PocGAmeeqnrl6h X-Received: by 2002:a17:902:2927:: with SMTP id g36mr7900813plb.6.1556864980283; Thu, 02 May 2019 23:29:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556864980; cv=none; d=google.com; s=arc-20160816; b=iQ4QmNJvtU4AxUJEr3qgodAcYgmf1/3PXhAvKMaSVtiNw78/LluW/1H87yUIj5kCok 2/Ct9xGfKZzWeEIdtjxVLcFZfXFDqiFhGV1wz6FsvlpV148CRtoXqQX7nzHzJ3szTHe8 BZDX8znlBqlTrnBN9z5tKaRMbKLAjE+DXMEOlsq07rRqY6d3HtUDNckC47wRSCL4DJYq WnTkNUGsQ5MRRmv9dSgiZi9O/r134OevAl6d75EC8/azKhY9ZZyDhTPCu9W1b1FUZhlJ b3QikowouhaTwl3HjLiMo8Z8EQZ6Qy1Jt21fEQyzsayEDof6/w4AfygMPf5WyTrQFPIH IFIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=WY6TPpq9ILgOsD4X7C5mxVcZY6yq2jwnfpctU8U18fU=; b=SE3XYeHycVuI2hrtdvEuMqZBpwICE0eEdGC+GtfLGg7U9RK6ziVeqA6fCiY2IkAL2L 8YLlG+/21Udob4VAOwWfxmKiYVlp9247jEgDRRm68MCuMdzjYi+V0YuKOPQyqieuNnUi tYAX7RyxMBswrKsCzle/48R7mPM6Sj0JXA56CK9HepPNyRqTYezXuHiH7wtWIx93kCxJ 8PT4cA/6aca6QVOP7cw0YKIbd3dZ2P7LpztELUf/D1+3GStFN3dUI4CIw/a6NwEStdG6 In/ajlBHmIE0BZR3Acx40HM0tGAmSodPNwSZbj35L14fNQ16tDQhcxEpKB1G+ZPAIj6A BJwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=FFPCBivy; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id i93si1461171plb.197.2019.05.02.23.29.39; Thu, 02 May 2019 23:29:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=FFPCBivy; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id DE31B7DD9D; Fri, 3 May 2019 06:29:35 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pg1-f193.google.com (mail-pg1-f193.google.com [209.85.215.193]) by mail.openembedded.org (Postfix) with ESMTP id 6A0796C1BE for ; Fri, 3 May 2019 06:29:34 +0000 (UTC) Received: by mail-pg1-f193.google.com with SMTP id p6so2233678pgh.9 for ; Thu, 02 May 2019 23:29:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1jnDQ+zJKuxRcyb1pblUiGWAsDQCICiydmKJ/RJ+870=; b=FFPCBivy8wRzFDNzSOX8RKQEWr1KoqKouFyhOtxBfXmU/q1fGGyDoqceODHGS8ZyzI DEQnjnjo6DRn2ns0q+vcUDKPY5YtikZh7Ry78rn/typ8budpULpG9OLMVf5MlepV5vmM uTxTySG2OhymNC0FnT+Hj5Gsi0A6f/PHo+o81mpwRH+984SC5UJtfdGfv6mGpy5j27Wg fXH/1JQIgZ7/apvNqe7coUWiSVkPcOd+BQsCcsvsWa/R4zB+8OGtsH2/xjwytdc6uib2 mfXGiNUYeLu4uMpH+1gmQgfoPVbVZxOcgR5cdtJtuSOV0AqYvUK3d0n487Vhbc83QGpr j85Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1jnDQ+zJKuxRcyb1pblUiGWAsDQCICiydmKJ/RJ+870=; b=TgM4MATF7Cy3R6MHNjf0lN7Hxtp60c7JbwSJpxeZwpme3ne7dQHtNCEfkM/+yjSNvO JmIGY15pIqqpnora+wogxgTRV65vcWxSB6JmEBBgGR16dKYwrameKUPCengt7RDGfB1k FbYnHYKsL012MO0kKYg43mNm9ba9PgutTjFHH/vFH+zHtRs1UK9fZPIwEb7qqUAM0u4t Bs68A9Zil5WnjJl0/rn+cSKIZSfdC0GSkFbIq+zMRRyJx2KC4FX7T/GLIlPfC1G2YeTV r95h+0GXBFpmHKc5VOt8zpVp5Zr4XcOxiJXSsIGZALzHqMtMJ6zzPP9wl5lnefMVoOBI zZwg== X-Gm-Message-State: APjAAAVBpc/foIXARirZ5msp1wkUQbFAk+fdy8JtaDYh9Q58XJ9Sbrve uCl+cqR8cs8h1wEIExre1sA7O4/Po6U= X-Received: by 2002:a63:58b:: with SMTP id 133mr8315698pgf.138.1556864974623; Thu, 02 May 2019 23:29:34 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:6bc6::5848]) by smtp.gmail.com with ESMTPSA id k9sm1188012pga.22.2019.05.02.23.29.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 May 2019 23:29:34 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Thu, 2 May 2019 23:29:26 -0700 Message-Id: <20190503062926.6933-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [OE-core] [PATCH] mdadm: Disable Werror X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Werror spews more warnings with gcc9, like other distros ( debian/fedora) disable Warnings as errors Fixes super-intel.c:696:9: error: taking address of packed member of 'struct imsm_super' may result in an unaligned pointer value [-Werror=address-of-packed-member] Signed-off-by: Khem Raj --- .../mdadm/files/debian-no-Werror.patch | 25 +++++++++++++++++++ meta/recipes-extended/mdadm/mdadm_4.1.bb | 1 + 2 files changed, 26 insertions(+) create mode 100644 meta/recipes-extended/mdadm/files/debian-no-Werror.patch -- 2.21.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-extended/mdadm/files/debian-no-Werror.patch b/meta/recipes-extended/mdadm/files/debian-no-Werror.patch new file mode 100644 index 0000000000..e66a15cd79 --- /dev/null +++ b/meta/recipes-extended/mdadm/files/debian-no-Werror.patch @@ -0,0 +1,25 @@ +From: martin f. krafft +Subject: Remove -Werror from compiler flags + +-Werror seems like a bad idea on released/packaged code because a toolchain +update (introducing new warnings) could break the build. We'll let upstream +use it to beautify the code, but remove it for out builds. + +Signed-off-by: martin f. krafft + +Upstream-Status: Pending +--- + Makefile | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +--- a/Makefile ++++ b/Makefile +@@ -48,7 +48,7 @@ endif + + CC ?= $(CROSS_COMPILE)gcc + CXFLAGS ?= -ggdb +-CWFLAGS = -Wall -Werror -Wstrict-prototypes -Wextra -Wno-unused-parameter ++CWFLAGS = -Wall -Wstrict-prototypes -Wextra -Wno-unused-parameter + ifdef WARN_UNUSED + CWFLAGS += -Wp,-D_FORTIFY_SOURCE=2 -O3 + endif diff --git a/meta/recipes-extended/mdadm/mdadm_4.1.bb b/meta/recipes-extended/mdadm/mdadm_4.1.bb index 947706ff5f..ef5ddf55db 100644 --- a/meta/recipes-extended/mdadm/mdadm_4.1.bb +++ b/meta/recipes-extended/mdadm/mdadm_4.1.bb @@ -17,6 +17,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/raid/mdadm/${BPN}-${PV}.tar.xz \ file://0001-Use-CC-to-check-for-implicit-fallthrough-warning-sup.patch \ file://0001-Compute-abs-diff-in-a-standard-compliant-way.patch \ file://0001-fix-gcc-8-format-truncation-warning.patch \ + file://debian-no-Werror.patch \ file://mdadm.init \ file://mdmonitor.service \ "