From patchwork Sat Mar 22 16:35:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Behan Webster X-Patchwork-Id: 26898 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f197.google.com (mail-vc0-f197.google.com [209.85.220.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E9BB420143 for ; Sat, 22 Mar 2014 16:35:55 +0000 (UTC) Received: by mail-vc0-f197.google.com with SMTP id if11sf8991589vcb.4 for ; Sat, 22 Mar 2014 09:35: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=GmTnbCLwzQx+i51nmX8hinLqnGIRgd+JD66uggNkG+U=; b=VaBNJemkyMVInEdH94oz93MJiUwsdPF7gC7u971ayY3ICNcuk++tovNEehACmvBp3V 4z0jNu/959cc328OGOap4VVh9S2uCJreCmgRFqN6X7zfwyfVcbf6FEZISsy4Fge4ZcJt STF2X9drVkVBRW2n8E79xbU9RifL5Xfk8osQNprk6NtWXkJWBPGYgMwM8anYZkaT+/EE vYbbv3gIstdm9BnnfFFe5fhQHpW8cIvKiTQK/MI52NKtS4tLZR8J550W61hhvbz57zha EqN9Rvkjykq5f/Cc48eGadaaD0yFobfOnXGe8GDhnYXMECzQOO2GGTz0VI8zEDsEbMoV RIew== X-Gm-Message-State: ALoCoQlTOV4QIGC+sP6dApi/r/iGhPrWGQTKk2tN/nigcp2lf/PnE/Kxle6oRYaP/jeoc97G6zpH X-Received: by 10.58.168.137 with SMTP id zw9mr13792572veb.15.1395506155165; Sat, 22 Mar 2014 09:35:55 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.86.233 with SMTP id p96ls1071934qgd.33.gmail; Sat, 22 Mar 2014 09:35:55 -0700 (PDT) X-Received: by 10.53.1.69 with SMTP id be5mr964148vdd.27.1395506155054; Sat, 22 Mar 2014 09:35:55 -0700 (PDT) Received: from mail-ve0-x22f.google.com (mail-ve0-x22f.google.com [2607:f8b0:400c:c01::22f]) by mx.google.com with ESMTPS id u5si1972742vdo.130.2014.03.22.09.35.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 22 Mar 2014 09:35:55 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::22f 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::22f; Received: by mail-ve0-f175.google.com with SMTP id oz11so3900241veb.20 for ; Sat, 22 Mar 2014 09:35:55 -0700 (PDT) X-Received: by 10.58.57.67 with SMTP id g3mr42108676veq.3.1395506154973; Sat, 22 Mar 2014 09:35: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 i9csp106202vck; Sat, 22 Mar 2014 09:35:54 -0700 (PDT) X-Received: by 10.68.231.196 with SMTP id ti4mr27906973pbc.48.1395506154054; Sat, 22 Mar 2014 09:35:54 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id yl4si5839350pbc.83.2014.03.22.09.35.53; Sat, 22 Mar 2014 09:35: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 S1751449AbaCVQfp (ORCPT + 26 others); Sat, 22 Mar 2014 12:35:45 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:44183 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751167AbaCVQfm (ORCPT ); Sat, 22 Mar 2014 12:35:42 -0400 Received: by mail-pa0-f53.google.com with SMTP id ld10so3651740pab.40 for ; Sat, 22 Mar 2014 09:35:41 -0700 (PDT) X-Received: by 10.66.122.201 with SMTP id lu9mr60597098pab.40.1395506141798; Sat, 22 Mar 2014 09:35:41 -0700 (PDT) Received: from localhost.localdomain ([75.148.49.89]) by mx.google.com with ESMTPSA id c7sm16529415pbt.0.2014.03.22.09.35.39 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 22 Mar 2014 09:35:40 -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 v3] LLVMLinux: Remove warning about returning an uninitialized variable Date: Sat, 22 Mar 2014 09:35:36 -0700 Message-Id: <1395506136-1621-1-git-send-email-behanw@converseincode.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <20140322162147.GA9034@ravnborg.org> References: <20140322162147.GA9034@ravnborg.org> 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::22f 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..a4f5882 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); + unreachable(); } raw_local_irq_restore(flags); return prev;