From patchwork Tue Jan 12 13:31:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 8017221 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5BC119F1CC for ; Tue, 12 Jan 2016 13:34:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D0DF520328 for ; Tue, 12 Jan 2016 13:34:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D3BCA201F5 for ; Tue, 12 Jan 2016 13:34:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934210AbcALNeQ (ORCPT ); Tue, 12 Jan 2016 08:34:16 -0500 Received: from mail-wm0-f51.google.com ([74.125.82.51]:37826 "EHLO mail-wm0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759840AbcALNeQ (ORCPT ); Tue, 12 Jan 2016 08:34:16 -0500 Received: by mail-wm0-f51.google.com with SMTP id f206so320457355wmf.0 for ; Tue, 12 Jan 2016 05:34:15 -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=yc5bSAJ+d4ubmlMO/pOahxYqEghfJKI04mSsmVou6sU=; b=gB+0L+HUxrDJnW0XimI3w/uKiXma225ccW+hdtuOCZFvvm8EMV644xxlNhIVI+Il8T 8GpREySq9XoJQmDEwKqCi8B4Uj3FwQ7sJ8a1nV55FqOFcEbl6huIj6rpOXOJod3D0B39 uesm8M9xxEXWOD39Z4yMub9gqP+896CIW+Rz4= 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=yc5bSAJ+d4ubmlMO/pOahxYqEghfJKI04mSsmVou6sU=; b=HvDiCsrfLIJgkAIY6lbFVYcuIyQOgryxHADjBdqqv6XNbaW5ewLg3ZLXPg2fkFma2X mKEipYfDqz2u7ByXCvNFZ8/dQxnnY1IzclJShYCa4BMfKMljepy3GmiSBkfUY9QonGzU wmDfcovkA/3VVM8diS6pb4G2GdBsQdroCqlLPmIzXgg7usqeqZnZUUf6WgJtnEEVmE6g Ti0f+8pVyfhJwyClCz0xYNuln0P3wlci/MhihYzyqEWP/8W7g11pu4nJn48hUAmkGGlA e8oIR7fLhHxr2N+gGxQlxL+pXVlBdvDQDCASR1XKjiyHUrKwFsufsyUow4oAsZH7oAvw H9SA== X-Gm-Message-State: ALoCoQkfdK21RYu8lTQc8qpI69FSWHdhfuxxe0rC7McvghUADZ5k4O89sRCeHpdSPh5Wx1TEqW9bKR6pbbqxHB3+jyde+1LRhQ== X-Received: by 10.194.63.40 with SMTP id d8mr74910773wjs.127.1452605654726; Tue, 12 Jan 2016 05:34:14 -0800 (PST) Received: from localhost.localdomain ([217.46.108.250]) by smtp.gmail.com with ESMTPSA id x10sm90002652wjx.8.2016.01.12.05.34.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 12 Jan 2016 05:34:14 -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, Lee Jones , Arnd Bergmann Subject: [PATCH] kbuild: Demote 'sign-compare' warning to W=2 Date: Tue, 12 Jan 2016 13:31:59 +0000 Message-Id: <1452605519-26797-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. Cc: Arnd Bergmann Signed-off-by: Lee Jones Acked-by: Arnd Bergmann --- 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