From patchwork Tue Jan 12 14:24:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 8017901 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 96D43BEEE5 for ; Tue, 12 Jan 2016 14:26:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5FDB4202E9 for ; Tue, 12 Jan 2016 14:26:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6132820145 for ; Tue, 12 Jan 2016 14:26:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762191AbcALO0c (ORCPT ); Tue, 12 Jan 2016 09:26:32 -0500 Received: from mail-wm0-f41.google.com ([74.125.82.41]:36598 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753093AbcALO0c (ORCPT ); Tue, 12 Jan 2016 09:26:32 -0500 Received: by mail-wm0-f41.google.com with SMTP id l65so254183440wmf.1 for ; Tue, 12 Jan 2016 06:26:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=wswmnIhjgqdoDgmrZAYSsykhAu8yUz6wrwVrF9ZINEU=; b=kDZN8ooRTJeEEqlYPX7ULtM45BtY3LTGKgY5HGob1hrLR9tboKd0x91NYmrcIigF0D kXeEKOuFpOMoODA/npTVBSsNbqRcOfZRgzZYxrxFRw+Xofzxs3hgK+cwruuvvDYRUKGJ KeMXVL0Mmyl3sDpDDXi9VYDKBSg610WSmF1eg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=wswmnIhjgqdoDgmrZAYSsykhAu8yUz6wrwVrF9ZINEU=; b=VgyttGS6ywHNhJRW0A26wccK2Kaq3bHaRiPO/iFEt0prlku1hAXG/xF4dCEBhJbqpF E0Yb07AR+GDosbj/tKzUbsTbXKmF50wpBMOqxeoSqULH39co1Psp6HHJfbXbdMXTnh31 6v1E7uPdDUqM0u8qwcL+G7RubztjdZOjdHYKndQpALBeA/K13Beb4rSgRKlYmi1zTVRu Y8V11UcLi5+oFehxLhZfwEJS59je1mwNBEwVK3SQsaUYqCoCJHJt4RqM+BAwugZ7b7Gd 6pUC73CVRRj3pMZeIokLiDymKMKDVYyrfHUK1DuQpW2PT0j+vCywRyYczs47rigAaZvc IFeg== X-Gm-Message-State: ALoCoQk+4Pfyi5bTf8nR/zxvvVB7pVTYOm+rzZfPEpYKU2l9SasDM6oJDN0Qj3S7PhNBNgv+wWFFhZTLRF00Jf4nRtDwRJiwQQ== X-Received: by 10.28.145.204 with SMTP id t195mr20623609wmd.91.1452608790843; Tue, 12 Jan 2016 06:26:30 -0800 (PST) Received: from localhost.localdomain ([217.46.108.250]) by smtp.gmail.com with ESMTPSA id lh1sm2492606wjb.20.2016.01.12.06.26.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 12 Jan 2016 06:26:30 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: kernel@stlinux.com, maxime.coquelin@st.com, mmarek@suse.com, linux-kbuild@vger.kernel.org, arnd@arndb.de, Lee Jones Subject: [PATCH] kbuild: Demote 'sign-compare' warning to W=2 Date: Tue, 12 Jan 2016 14:24:18 +0000 Message-Id: <1452608658-28190-1-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Ideally, a kernel compile with W=1 enabled should complete cleanly; however, when we run one currently we are presented with ~25k warnings. 'sign-compare' accounts for ~22k of those ~25k. In this patch we're demoting 'sign-compare' warnings to W=2, with a view to fixing the remaining 3k W=1 warnings required for a clean build. Arnd adds: "As per our discussion, I'd add that this was inadvertedly introduced by Behan when he moved the clang specific warnings into an ifdef block and did not notice that -Wsign-compare was interpreted by both gcc and clang. Earlier, it was introduced in just the same way by Jan-Simon as part of 3d3d6b847420 ("kbuild: LLVMLinux: Adapt warnings for compilation with clang")." Acked-by: Arnd Bergmann Fixes: 26ea6bb1fef0 ("kbuild, LLVMLinux: Supress warnings unless W=1-3") Signed-off-by: Lee Jones --- scripts/Makefile.extrawarn | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn index 4efedcb..f9e47a7 100644 --- a/scripts/Makefile.extrawarn +++ b/scripts/Makefile.extrawarn @@ -25,6 +25,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-disable-warning, missing-field-initializers) +warning-1 += $(call cc-disable-warning, sign-compare) warning-2 := -Waggregate-return warning-2 += -Wcast-align @@ -33,6 +34,7 @@ warning-2 += -Wnested-externs warning-2 += -Wshadow warning-2 += $(call cc-option, -Wlogical-op) warning-2 += $(call cc-option, -Wmissing-field-initializers) +warning-2 += $(call cc-option, -Wsign-compare) warning-3 := -Wbad-function-cast warning-3 += -Wcast-qual