From patchwork Sat Mar 22 15:48:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Behan Webster X-Patchwork-Id: 26896 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f197.google.com (mail-ob0-f197.google.com [209.85.214.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CB079206A6 for ; Sat, 22 Mar 2014 15:48:55 +0000 (UTC) Received: by mail-ob0-f197.google.com with SMTP id wp18sf14299435obc.8 for ; Sat, 22 Mar 2014 08:48: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:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=Rw7r6yk0KfeUy31BbVH9XpCs9bYKtoBmA3aBeiwtJ5E=; b=gyA5KxxFyhFto/1U8GpL86+gLb6KldejsNLiCd3DESZf7Nb1inkjzIGp18JKSE/Pth lt++wD3bzdS1CnFjugh7NBXyJFSMyEBhSjgDM08WD+LuGD1bi2bPI2FQtpLl7aSWIE19 mki4dwjbhJNcctKR0J2be10UutSL8QN5Hm+w10f47AxroLq16AbM9pIX2TKVg2OliBoc RSjWeemCzeFRfUjOnTNyllBxNzDweiybhQ12C3Sr+aO9pYjGYeFcoiGMX2GIhkpTp/6h lRtwu8+r+Pm7kbjNCBBhhRJKx/nVKgRYYKruVDtbwOq8pkC1SGizURVfR3LaXyWzMBeT 4THQ== X-Gm-Message-State: ALoCoQk4Yy8ewoOJ+9o1rr9xt/4yxN9xV9pifS3iONzAN/Rtm/aJQ2DYl6QtSTCsH/wiVlTM1Qr8 X-Received: by 10.182.95.68 with SMTP id di4mr8938538obb.4.1395503335340; Sat, 22 Mar 2014 08:48:55 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.81.209 with SMTP id f75ls1173752qgd.48.gmail; Sat, 22 Mar 2014 08:48:55 -0700 (PDT) X-Received: by 10.220.133.80 with SMTP id e16mr42589887vct.13.1395503335193; Sat, 22 Mar 2014 08:48:55 -0700 (PDT) Received: from mail-vc0-x235.google.com (mail-vc0-x235.google.com [2607:f8b0:400c:c03::235]) by mx.google.com with ESMTPS id nc1si1913802vec.24.2014.03.22.08.48.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 22 Mar 2014 08:48:54 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c03::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:c03::235; Received: by mail-vc0-f181.google.com with SMTP id id10so3932874vcb.40 for ; Sat, 22 Mar 2014 08:48:54 -0700 (PDT) X-Received: by 10.52.119.197 with SMTP id kw5mr36022647vdb.5.1395503334864; Sat, 22 Mar 2014 08:48:54 -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 i9csp103993vck; Sat, 22 Mar 2014 08:48:54 -0700 (PDT) X-Received: by 10.68.240.5 with SMTP id vw5mr60329907pbc.113.1395503333949; Sat, 22 Mar 2014 08:48:53 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id uh7si5749775pbc.469.2014.03.22.08.48.53; Sat, 22 Mar 2014 08:48: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 S1751520AbaCVPss (ORCPT + 26 others); Sat, 22 Mar 2014 11:48:48 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:46157 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750921AbaCVPsm (ORCPT ); Sat, 22 Mar 2014 11:48:42 -0400 Received: by mail-pa0-f43.google.com with SMTP id bj1so3627463pad.16 for ; Sat, 22 Mar 2014 08:48:41 -0700 (PDT) X-Received: by 10.66.159.132 with SMTP id xc4mr60070495pab.27.1395503321787; Sat, 22 Mar 2014 08:48:41 -0700 (PDT) Received: from localhost.localdomain ([75.148.49.89]) by mx.google.com with ESMTPSA id aj7sm43868538pad.29.2014.03.22.08.48.23 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 22 Mar 2014 08:48:32 -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 v2] LLVMLinux: Remove warning about returning an uninitialized variable Date: Sat, 22 Mar 2014 08:48:19 -0700 Message-Id: <1395503299-15203-1-git-send-email-behanw@converseincode.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <201403221101.16961.arnd@arndb.de> References: <201403221101.16961.arnd@arndb.de> 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:c03::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..9112111 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); + __builtin_unreachable(); } raw_local_irq_restore(flags); return prev;