From patchwork Sat Mar 22 06:38:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Behan Webster X-Patchwork-Id: 26892 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f70.google.com (mail-oa0-f70.google.com [209.85.219.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EEBB1203AB for ; Sat, 22 Mar 2014 06:39:55 +0000 (UTC) Received: by mail-oa0-f70.google.com with SMTP id n16sf13111386oag.9 for ; Fri, 21 Mar 2014 23:39:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=wF/z0Ah3HV/VkmCLUwjjaQEu2CSDNW/zDwJo681ipNg=; b=ZKjXIiJVO5frU18PZzpXAm9/HOtg+8/pdDhJvHjyqyfOb2OzhNZvcarzg01CgJlyrs p6CsRAbLMs23bMPjdJMlaqehcroebUpDMIeSz6HDTOtu+i+jpak1v6viRIfKy/dfdyRA m8FYeGD6awpthsiuduEU+lQeLQeEip+OZabf2wU+t2ynjmHx3ZgZ/voPfNqbmAmf9jbg nGywdJJ1D8dB3/Q+mNej+ZubK5SSp5psnkm0dqTzStSJr/aeY9Za8LM2d6GF1ePXgUEg LmnQz37WpMgGTK9UdvWAs9v8LzUj+v3cETZ9pbRl64LhBzpiTMPFBMh5yVCESPlSWF5Q iOJA== X-Gm-Message-State: ALoCoQnSW2pXOLIRCBGY8gooi3zywvytVOIchDyroblB8Uet9A1bYijNCSSznG1pzXsPkzXgQRnr X-Received: by 10.182.66.193 with SMTP id h1mr7809905obt.47.1395470395235; Fri, 21 Mar 2014 23:39:55 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.40.200 with SMTP id x66ls421436qgx.46.gmail; Fri, 21 Mar 2014 23:39:55 -0700 (PDT) X-Received: by 10.220.159.4 with SMTP id h4mr29825614vcx.1.1395470395148; Fri, 21 Mar 2014 23:39:55 -0700 (PDT) Received: from mail-ve0-x235.google.com (mail-ve0-x235.google.com [2607:f8b0:400c:c01::235]) by mx.google.com with ESMTPS id gs7si1711976vdc.38.2014.03.21.23.39.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 21 Mar 2014 23:39:55 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::235 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c01::235; Received: by mail-ve0-f181.google.com with SMTP id oy12so3526689veb.40 for ; Fri, 21 Mar 2014 23:39:55 -0700 (PDT) X-Received: by 10.58.200.168 with SMTP id jt8mr238377vec.30.1395470395029; Fri, 21 Mar 2014 23:39:55 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.78.9 with SMTP id i9csp81363vck; Fri, 21 Mar 2014 23:39:54 -0700 (PDT) X-Received: by 10.68.135.195 with SMTP id pu3mr59243601pbb.70.1395470394008; Fri, 21 Mar 2014 23:39:54 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e2si5016148pba.259.2014.03.21.23.39.53; Fri, 21 Mar 2014 23:39:53 -0700 (PDT) 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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751192AbaCVGjB (ORCPT + 26 others); Sat, 22 Mar 2014 02:39:01 -0400 Received: from mail-pd0-f172.google.com ([209.85.192.172]:35898 "EHLO mail-pd0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750842AbaCVGi5 (ORCPT ); Sat, 22 Mar 2014 02:38:57 -0400 Received: by mail-pd0-f172.google.com with SMTP id p10so3215643pdj.17 for ; Fri, 21 Mar 2014 23:38:57 -0700 (PDT) X-Received: by 10.68.66.1 with SMTP id b1mr58499947pbt.43.1395470337406; Fri, 21 Mar 2014 23:38:57 -0700 (PDT) Received: from localhost.localdomain ([75.148.49.89]) by mx.google.com with ESMTPSA id qx11sm37192781pab.35.2014.03.21.23.38.54 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 21 Mar 2014 23:38:55 -0700 (PDT) From: behanw@converseincode.com To: arnd@arndb.de Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, dwmw2@infradead.org, pageexec@freemail.hu, Behan Webster , Mark Charlebois Subject: [PATCH] LLVMLinux: Remove warning about returning an uninitialized variable Date: Fri, 21 Mar 2014 23:38:49 -0700 Message-Id: <1395470329-15065-1-git-send-email-behanw@converseincode.com> X-Mailer: git-send-email 1.8.3.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Original-Sender: behanw@converseincode.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::235 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=neutral (no key for signature) header.i=@converseincode.com Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Behan Webster Fix uninitialized return code in default case in cmpxchg-local.h This patch fixes the code to prevent an uninitialized return value that is detected when compiling with clang. The bug produces numerous warnings when compiling the Linux kernel with clang. Signed-off-by: Behan Webster Signed-off-by: Mark Charlebois --- include/asm-generic/cmpxchg-local.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/asm-generic/cmpxchg-local.h b/include/asm-generic/cmpxchg-local.h index d8d4c89..4c41bb8 100644 --- a/include/asm-generic/cmpxchg-local.h +++ b/include/asm-generic/cmpxchg-local.h @@ -41,6 +41,7 @@ static inline unsigned long __cmpxchg_local_generic(volatile void *ptr, break; default: wrong_size_cmpxchg(ptr); + prev = 0; } raw_local_irq_restore(flags); return prev;