Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756508AbaAGC4B (ORCPT ); Mon, 6 Jan 2014 21:56:01 -0500 Received: from mail-ea0-f171.google.com ([209.85.215.171]:61217 "EHLO mail-ea0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754752AbaAGCz7 (ORCPT ); Mon, 6 Jan 2014 21:55:59 -0500 MIME-Version: 1.0 In-Reply-To: <1388972316.4918.5.camel@buesod1.americas.hpqcorp.net> References: <1388675120-8017-1-git-send-email-davidlohr@hp.com> <1388972316.4918.5.camel@buesod1.americas.hpqcorp.net> Date: Tue, 7 Jan 2014 10:55:57 +0800 X-Google-Sender-Auth: 8W5a5U-zXE9A7SuH6U8BYebV6Bs Message-ID: Subject: Re: [PATCH 5/4] futex: silence uninitialized warnings From: Linus Torvalds To: Davidlohr Bueso Cc: Linux Kernel Mailing List , Ingo Molnar , Darren Hart , Peter Zijlstra , Thomas Gleixner , Paul McKenney , Mike Galbraith , Jeff Mahoney , Jason Low , Waiman Long , Tom Vaden , "Norton, Scott J" , "Chandramouleeswaran, Aswin" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 6, 2014 at 9:38 AM, Davidlohr Bueso wrote: > { > int lock_taken, ret, force_take = 0; > - u32 uval, newval, curval, vpid = task_pid_vnr(task); > + u32 uval, newval, uninitialized_var(curval), vpid = task_pid_vnr(task); Do you have some broken compiler? I really tend to hate this kind of workarounds, because as mentioned, they can actually hide valid warnings, and it seems to be due to just stupid compilers. Are we perhaps better off trying to get people off the broken compiler versions instead? Linus -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/