From patchwork Fri Feb 12 16:06:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102789 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp912702lbl; Fri, 12 Feb 2016 08:07:51 -0800 (PST) X-Received: by 10.98.34.209 with SMTP id p78mr3310247pfj.154.1455293270265; Fri, 12 Feb 2016 08:07:50 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r79si20768576pfb.75.2016.02.12.08.07.49; Fri, 12 Feb 2016 08:07:50 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751737AbcBLQHo (ORCPT + 30 others); Fri, 12 Feb 2016 11:07:44 -0500 Received: from mout.kundenserver.de ([212.227.126.134]:53244 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750771AbcBLQHl (ORCPT ); Fri, 12 Feb 2016 11:07:41 -0500 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue001) with ESMTPA (Nemesis) id 0LeUuc-1ZeDMp3FVO-00qQpW; Fri, 12 Feb 2016 17:07:17 +0100 From: Arnd Bergmann To: Michal Marek Cc: linux-arm-kernel@lists.infradead.org, Peter Oberparleiter , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann Subject: [PATCH 5/5] gcov: disable -Wmaybe-uninitialized warning Date: Fri, 12 Feb 2016 17:06:22 +0100 Message-Id: <1455293187-179811-6-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1455293187-179811-1-git-send-email-arnd@arndb.de> References: <1455293187-179811-1-git-send-email-arnd@arndb.de> X-Provags-ID: V03:K0:du479uTw3+4oRo3fn8qoXIuHeL4DxfimU6tI1bxRzEi4kH/4Gta /DRcc8unmjelrrVH85dx4MKGTRLfn8iuH5NyIwm7MNvmLf+JLc2hZ7MOoS8fzhIiad3x70p S08MPvCAXEHra//9lAkzsiqyIt0fO25gjFhpNaUlBNynWY+MIODAy9A+6xn7JVDw2s6YDir Q9y3h90B45mzPWv4bOzGQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:Pz6rD4liuto=:OyL7zTcmlbAfqBJ5E6pEk/ 5O+u6NtUYhM1X8IKUOPBz+dJdl7X3/prd0OnlN2MRrWqAusSAQcz5QXXGliZFSaEM4m+kb6Rs BdDGsaE4Qe3emUeNfNxorFtz6lwvIItJFVhX9Q7ixbb70MS6x0csEFHFAZpH4JnVdi+1efvx7 PQ0mooUApgrtXhzF4AMkpIIVmZFzWsXYizqpNhwaatpv3XQ2zAiFPVlLKlsbDRNNbSWpA/WvK 5mNiaSLsMfOIVE90iezlk+qMehnmfbp4cdzle0pS8ZZijwpSrfyvP9ymDnMU86H8DMdnnB/uW LxNsqISV4Jyads8V7WoYm3VTHnY3ZQigKxZDQlDd2pxtD9kyHfaKrqLpJTZz6QjBBXnN3rJTg C0nQJZy6vg4OBhgwN5l0m1OC8pE9Z0fUe+cWTOcSX95l09igGZZQ/DA/R/5sznX9oiBavlrvK yelEbQUwSqxQ4jWngCPKnEvLOKhv2s3wlz0EPyFwkIhUJ8t5FEXDusZ3g3rX+Bn16Z5unaEHI m9+zzzC5ADgdKvOK6iQWNvP4IiBuCD33SbwTnDEpTx/QzI0Splt11OCcTUfLMve7kQKTpmO5f Q+eyZugd0MquCKPXn4Ensy5YY9WgvhW1vWClg+Naf5HixEZHlKWsI0S3DWfz9g70xvyOCnIkX qQH/3ITlYt/huUnsGrt+2p/dST90StgOh8iet0xZIOhuJmOrvh4Hx8eM+M/+v36G0k9I= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When gcov profiling is enabled, we see a lot of spurious warnings about possibly uninitialized variables being used: arch/arm/mm/dma-mapping.c: In function 'arm_coherent_iommu_map_page': arch/arm/mm/dma-mapping.c:1085:16: warning: 'start' may be used uninitialized in this function [-Wmaybe-uninitialized] drivers/clk/st/clk-flexgen.c: In function 'st_of_flexgen_setup': drivers/clk/st/clk-flexgen.c:323:9: warning: 'num_parents' may be used uninitialized in this function [-Wmaybe-uninitialized] kernel/cgroup.c: In function 'cgroup_mount': kernel/cgroup.c:2119:11: warning: 'root' may be used uninitialized in this function [-Wmaybe-uninitialized] All of these are false positives, so it seems better to just disable the warnings whenever GCOV is enabled. Most users don't enable GCOV, and based on a prior patch, it is now also disabled for 'allmodconfig' builds, so there should be no downsides of doing this. Signed-off-by: Arnd Bergmann --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.0 diff --git a/Makefile b/Makefile index 6bb89728a9d1..7b6900931a47 100644 --- a/Makefile +++ b/Makefile @@ -364,7 +364,7 @@ AFLAGS_MODULE = LDFLAGS_MODULE = CFLAGS_KERNEL = AFLAGS_KERNEL = -CFLAGS_GCOV = -fprofile-arcs -ftest-coverage -fno-tree-loop-im +CFLAGS_GCOV = -fprofile-arcs -ftest-coverage -fno-tree-loop-im -Wno-maybe-uninitialized CFLAGS_KCOV = -fsanitize-coverage=trace-pc