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: 59620 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp2740198lbb; Tue, 12 Jan 2016 05:34:20 -0800 (PST) X-Received: by 10.98.70.17 with SMTP id t17mr33754639pfa.107.1452605660040; Tue, 12 Jan 2016 05:34:20 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d5si36318892pfj.146.2016.01.12.05.34.19; Tue, 12 Jan 2016 05:34:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dkim=pass header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934770AbcALNeR (ORCPT + 29 others); Tue, 12 Jan 2016 08:34:17 -0500 Received: from mail-wm0-f54.google.com ([74.125.82.54]:32985 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752897AbcALNeQ (ORCPT ); Tue, 12 Jan 2016 08:34:16 -0500 Received: by mail-wm0-f54.google.com with SMTP id f206so254153099wmf.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=NW6o0ehS7Gpr1l0M3sw2MqZ5fa6G4nUAHeof35Eia31o7b3deopVFDRld98VP8qvWz vy2WRlDworQqEPjO3vM7CeQgZc++NA9S6YAmiMjHcrCQrECVfX0OvkxfSn7HCWmS6ti9 EO28PcnwJOrKK/BL9uBUwUZ4JHbmNUlxVwzxIikbQ2JPqgtcS9RSx8xdSGsOfn3UC0Xg /uiq9HFAlA5CNuihhWCmVCPMc8tWbmhKdwQtsFc5vkctEH6gCkc3on1ZItlYCEpDFATG UiTGePhYRBpkDhpI6Bdiq3Uk7w3p43+2m/ujqxlJkFa/eoJR8J240qvtq3k6wP3YvmQN BibQ== X-Gm-Message-State: ALoCoQnAMwdei7NdL3IVI8fEoAI9Y7KhDoH6kxQjaOxNwLE5/b837LG3MzrCVb0USbR89BI9fOQ91L4VUpPtrktN5ReoED66zw== 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- scripts/Makefile.extrawarn | 2 ++ 1 file changed, 2 insertions(+) -- 1.9.1 Acked-by: Arnd Bergmann 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