From patchwork Wed Aug 8 21:27:56 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10605 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id D804023E57 for ; Wed, 8 Aug 2012 21:28:17 +0000 (UTC) Received: from mail-yw0-f52.google.com (mail-yw0-f52.google.com [209.85.213.52]) by fiordland.canonical.com (Postfix) with ESMTP id A6A64A1891B for ; Wed, 8 Aug 2012 21:28:17 +0000 (UTC) Received: by mail-yw0-f52.google.com with SMTP id p61so1326862yhp.11 for ; Wed, 08 Aug 2012 14:28:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-provags-id:x-gm-message-state; bh=ex+UZPt0u6wIHi9InLkOgSetO/0nPJu1wZyZc8yW01A=; b=b5wsruBUS+ukIhDBQBiuckdWrJthf1KY1qhWptvRPoWcZA5if6xs51ENndGIvMujtf uGvNZrteBU8T8ml0sF/gTw5baGeu85cdL6ZJkEU5wlYJywLdFZx3oB00ZCd1gWbJfnG+ 7ygVeTbd/jTewCiP8ETfuvuvE8Nfs+FoU7+SxogTh9e9XjsHdHmzrTXx5pp+4YqjtSiN MJHQaRiy8EA0yNQLFascDqT45pefTOVzBFfyOMe1E4UcF5VrquTqAiNWoLWxbTdZO1MB YT/RqfdOvuJgaeddrwfjJM05Do4cKrON7YaP5nzr0oqX598Whx2W+ROkE6+emHOxjx1S jDJQ== Received: by 10.50.6.229 with SMTP id e5mr391781iga.9.1344461297107; Wed, 08 Aug 2012 14:28:17 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.200 with SMTP id ew8csp628841igc; Wed, 8 Aug 2012 14:28:16 -0700 (PDT) Received: by 10.180.107.103 with SMTP id hb7mr992737wib.3.1344461295882; Wed, 08 Aug 2012 14:28:15 -0700 (PDT) Received: from moutng.kundenserver.de (moutng.kundenserver.de. [212.227.126.186]) by mx.google.com with ESMTP id cs8si9309513wib.23.2012.08.08.14.28.15; Wed, 08 Aug 2012 14:28:15 -0700 (PDT) Received-SPF: neutral (google.com: 212.227.126.186 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) client-ip=212.227.126.186; Authentication-Results: mx.google.com; spf=neutral (google.com: 212.227.126.186 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) smtp.mail=arnd@arndb.de Received: from localhost.localdomain (HSI-KBW-149-172-5-253.hsi13.kabel-badenwuerttemberg.de [149.172.5.253]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0LfWo9-1TWMcM2TM1-00onIa; Wed, 08 Aug 2012 23:28:11 +0200 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: arm@kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Kukjin Kim , Ben Dooks Subject: [PATCH 08/10] ARM: s3c24xx: enable CONFIG_BUG for tct_hammer Date: Wed, 8 Aug 2012 23:27:56 +0200 Message-Id: <1344461278-28245-9-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1344461278-28245-1-git-send-email-arnd@arndb.de> References: <1344461278-28245-1-git-send-email-arnd@arndb.de> X-Provags-ID: V02:K0:Vat1lTL8eeQVlmJ752ZGk7961s+zsGSpKrtJ1Mxcwy+ lFvl128Dkx9VqrBTxgsmBI/ORBUeK4iR5I6BuneJWPxymghHk3 5PJeTaYgkdce8jiI6crANGaey0YzmOVXhsGiNCzPakqry7DM2x IFoKyFyfsSigkMGpjR0UML2IYPpOpzsJQrCaJi9uHf3bxROwEX /pmIGZtZheGe2l+j6bVR3gfbEdR6JMwt1w0VGJk/0GJUbmdUqa AL15fpMFH1VJwrJL/nmu4Pruw5O3o57kiugTvrFPVd3VpNYBha W4jD+LSzyYE0P2BTJ6ei28e5H6AoRQfEchv31l20ggVoL4p3rR FK3TYmSPcOQPOuJqoGhO2fgnSzhpWSIVsVrI0P6Ngv+1gCgmgA IK5VlEyY9vHjQ== X-Gm-Message-State: ALoCoQmr09j/+SsOXe4JeW3D1E4LuCUdl/yemZjymFzGJT6vBRRehguyhuQu2LRiKuR3j9p4XTLW Disabling CONFIG_BUG creates an insane amount of build warnings, which makes it useless to check for building defconfigs to see if new warnings show up. Without this patch, building tct_hammer_defconfig results in: net/packet/af_packet.c: In function 'tpacket_rcv': net/packet/af_packet.c:1889:30: warning: 'hdrlen' may be used uninitialized in this function [-Wuninitialized] net/core/ethtool.c: In function 'ethtool_get_feature_mask': net/core/ethtool.c:213:1: warning: control reaches end of non-void function [-Wreturn-type] block/cfq-iosched.c: In function 'cfq_async_queue_prio': block/cfq-iosched.c:2914:1: warning: control reaches end of non-void function [-Wreturn-type] mm/bootmem.c: In function 'mark_bootmem': mm/bootmem.c:352:1: warning: control reaches end of non-void function [-Wreturn-type] net/core/dev.c: In function 'skb_warn_bad_offload': net/core/dev.c:1904:33: warning: unused variable 'null_features' [-Wunused-variable] drivers/mtd/chips/cfi_probe.c: In function 'cfi_chip_setup': include/linux/mtd/cfi.h:489:3: warning: 'r.x[0]' may be used uninitialized in this function [-Wuninitialized] include/linux/mtd/map.h:394:11: note: 'r.x[0]' was declared here include/linux/mtd/cfi.h:489:3: warning: 'r.x[0]' may be used uninitialized in this function [-Wuninitialized] (and many more) The size of vmlinux increases by 1.78% because of this: size obj-arm/vmlinux.nobug text data bss dec hex filename 2108474 116916 55352 2280742 22cd26 obj-arm/vmlinux size obj-arm/vmlinux.bug text data bss dec hex filename 2150804 116916 53696 2321416 236c08 obj-arm/vmlinux Signed-off-by: Arnd Bergmann Cc: Kukjin Kim Cc: Ben Dooks --- arch/arm/configs/tct_hammer_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/configs/tct_hammer_defconfig b/arch/arm/configs/tct_hammer_defconfig index 1d24f84..71277a1 100644 --- a/arch/arm/configs/tct_hammer_defconfig +++ b/arch/arm/configs/tct_hammer_defconfig @@ -7,7 +7,7 @@ CONFIG_SYSFS_DEPRECATED_V2=y CONFIG_BLK_DEV_INITRD=y CONFIG_EXPERT=y # CONFIG_KALLSYMS is not set -# CONFIG_BUG is not set +# CONFIG_BUGVERBOSE is not set # CONFIG_ELF_CORE is not set # CONFIG_SHMEM is not set CONFIG_SLOB=y