From patchwork Fri May 4 02:10:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 908433 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40cb9f0d5rz9s0q for ; Fri, 4 May 2018 12:11:50 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="D5NCtYqy"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 40cb9d6DYLzF1PT for ; Fri, 4 May 2018 12:11:49 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="D5NCtYqy"; dkim-atps=neutral X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:400e:c05::244; helo=mail-pg0-x244.google.com; envelope-from=joel.stan@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="D5NCtYqy"; dkim-atps=neutral Received: from mail-pg0-x244.google.com (mail-pg0-x244.google.com [IPv6:2607:f8b0:400e:c05::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 40cb8n4Dd8zF1PT for ; Fri, 4 May 2018 12:11:05 +1000 (AEST) Received: by mail-pg0-x244.google.com with SMTP id j11-v6so14424368pgf.2 for ; Thu, 03 May 2018 19:11:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=nM+Mvw3owR2UuZFA3kYZw+fjKNGbM6MlIVb29ugfR5U=; b=D5NCtYqymA6ODucyM7mye0Rer11jWOctyTL7uFTTRGj/5zZBIMZSFGoCrNN4KvUhh6 5KIyinYv5DoWMnaAQ0BEcPbdlC5ZsZZ0z6zwn/jZ+35PneUT+G5N01ieaYdfYloSDQKl wDqmP+c9IHdgI+1sfx0NjdcdqIEeKdY/NmQlKo5Fp8aSamPujAmNHeZf8YroK4g6eC/X tik5eD9FEwl1Ue3INwV6PsFtSsNIj17QAfnLT2GZlYwayN6nh8eFkcVGlxDbRQB8S/ur eheXEFKGhYF2jyBikEHn4kE3rbf5f+cL6p3rUMzLA7MrNETu/d/OBBG5ruDcLVuG5Jwr bhvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references; bh=nM+Mvw3owR2UuZFA3kYZw+fjKNGbM6MlIVb29ugfR5U=; b=D79NhPkPUqr7yRv9uUqvS4lQHZdeqRHeU5+A7h+SdC9+rTCnVBIeMznoACdlIB3Dm2 DungmUn1tsMf8W98hnSzOJYK5rBW03y9BWMo62f50o1lLRx0nk2rnRFlf2vSnmcZDjBX /Cvye8fWAHlbt0aFCIjCeDzGo1qARZnCAlji0VFsaikzVzGcY017MmDG9hDbEzmznITS E8LhMR39us/Z96NZM5Z34aQhOEkWxQC1oAzZPYC80i2Wqcl473GWpOhocB5+Gld3cuC1 S/GR+UKg5BySUbbR+eXIu8ejkcpH8JnFFZPeD7NM9Ej9kUr4VeKblPL6AXEEQMjxU2j6 ykkQ== X-Gm-Message-State: ALQs6tAn00H9waQYlBo+9lszsI2LJ1GGvbXpQG35PhzQxO9eLEkRbHGI ZBaGhiVAL+JQ42NEexCJXYfRfqMd X-Google-Smtp-Source: AB8JxZqcxc9SadHQVVfpvnXQYzsUgy72PzduYG8VlGt+xngnKyRQGnoszZ0m6+xts1VA0FT8q3vIKQ== X-Received: by 2002:a17:902:a24:: with SMTP id 33-v6mr26295981plo.72.1525399863486; Thu, 03 May 2018 19:11:03 -0700 (PDT) Received: from aurora.jms.id.au ([45.124.203.19]) by smtp.gmail.com with ESMTPSA id i127-v6sm25444814pgc.45.2018.05.03.19.11.00 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 03 May 2018 19:11:02 -0700 (PDT) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Fri, 04 May 2018 11:40:57 +0930 From: Joel Stanley To: skiboot@lists.ozlabs.org Date: Fri, 4 May 2018 11:40:28 +0930 Message-Id: <20180504021036.17027-4-joel@jms.id.au> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180504021036.17027-1-joel@jms.id.au> References: <20180504021036.17027-1-joel@jms.id.au> Subject: [Skiboot] [PATCH v2 03/11] Makefile: Disable warnings to make clang happy X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" Clang doesn't like some of the warnings we have, so silence the ones we know about in order to enable the build to succeed. These should be investigated and removed in once the code issues are resolved. Signed-off-by: Joel Stanley --- v2: Make stack frame max size larger, as clang-7 is even worse than 6 --- Makefile.main | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Makefile.main b/Makefile.main index 05222a1acc62..8cd5e2d1ed4d 100644 --- a/Makefile.main +++ b/Makefile.main @@ -163,6 +163,17 @@ CFLAGS += -mcpu=pwr8 LDFLAGS += -mcpu=pwr8 ASFLAGS += -mcpu=pwr8 +# Workarounds +# TODO: Fix the issues these hide, and remove them +CFLAGS += -Wno-cast-align \ + -Wno-unused-command-line-argument \ + -Wno-unknown-warning-option \ + -Wno-gnu-variable-sized-type-not-at-end \ + -Wno-address-of-packed-member + +# pci_add_device_nodes is the largest, at 2048 with clang-7 (smaller with older +# versions) +CFLAGS += -Wframe-larger-than=2048 endif # Special tool flags: