From patchwork Mon Mar 24 05:53:24 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Behan Webster X-Patchwork-Id: 26915 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f198.google.com (mail-vc0-f198.google.com [209.85.220.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B1EDB206A6 for ; Mon, 24 Mar 2014 05:53:43 +0000 (UTC) Received: by mail-vc0-f198.google.com with SMTP id il7sf12854906vcb.5 for ; Sun, 23 Mar 2014 22:53:43 -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=dOiF6FttIB/JoL3POQe8+3tjr3NfW5AFdhwZmbUpp7E=; b=XIcdemQkVYkEsXUJSjvqUU9wyvstVXybfHmDTvQeN5jbW6vq1S4IZ0uhB6QccHoS2Q AOJ3FDuWLRaizjJNfoCepyJriVLUPQQE2BqmPwOY4fZ705krE3iOJoNIHGiZqbwJq216 O4OOoCtC9ZDnHMnjqRdPKQ1seMsfebI42hqfs1jyw6qM54jGStfR9PO7K8oT+jpnHTOt 7uui3g65oquPOkpbtnE5ctR2TpeQVtnLwVx3IJgeDN4jSGpCODSnBsn67X8Q/TPhFpjH HudcyTu489m6yFOhmsBJE1giv9LNKhFKlvfnIhpB/Z01UutOvGwKU42FvJv2JXuyRbMr GMNQ== X-Gm-Message-State: ALoCoQk0zDPicWFssMaCMpuRUBCOGxFqOKmCptXPIF9jTzrzvBmPl+hy9wVi6t+c7j6F2ubomt9P X-Received: by 10.236.86.67 with SMTP id v43mr16988080yhe.41.1395640423209; Sun, 23 Mar 2014 22:53:43 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.51.241 with SMTP id u104ls126312qga.81.gmail; Sun, 23 Mar 2014 22:53:43 -0700 (PDT) X-Received: by 10.220.88.204 with SMTP id b12mr48498026vcm.3.1395640423075; Sun, 23 Mar 2014 22:53:43 -0700 (PDT) Received: from mail-vc0-x233.google.com (mail-vc0-x233.google.com [2607:f8b0:400c:c03::233]) by mx.google.com with ESMTPS id sv2si2889554vdc.75.2014.03.23.22.53.43 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 23 Mar 2014 22:53:43 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c03::233 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::233; Received: by mail-vc0-f179.google.com with SMTP id ij19so5336892vcb.10 for ; Sun, 23 Mar 2014 22:53:43 -0700 (PDT) X-Received: by 10.220.96.70 with SMTP id g6mr3884832vcn.19.1395640422999; Sun, 23 Mar 2014 22:53:42 -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 i9csp198579vck; Sun, 23 Mar 2014 22:53:42 -0700 (PDT) X-Received: by 10.68.164.229 with SMTP id yt5mr68731196pbb.28.1395640421920; Sun, 23 Mar 2014 22:53:41 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id yo5si8498418pab.251.2014.03.23.22.53.41; Sun, 23 Mar 2014 22:53:41 -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 S1751824AbaCXFxe (ORCPT + 26 others); Mon, 24 Mar 2014 01:53:34 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:65060 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750970AbaCXFxc (ORCPT ); Mon, 24 Mar 2014 01:53:32 -0400 Received: by mail-pa0-f47.google.com with SMTP id lj1so4978663pab.20 for ; Sun, 23 Mar 2014 22:53:31 -0700 (PDT) X-Received: by 10.68.202.194 with SMTP id kk2mr1303644pbc.156.1395640411477; Sun, 23 Mar 2014 22:53:31 -0700 (PDT) Received: from localhost.localdomain ([75.148.49.89]) by mx.google.com with ESMTPSA id yo9sm54112981pab.16.2014.03.23.22.53.28 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 23 Mar 2014 22:53:30 -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 v4] LLVMLinux: Remove warning about returning an uninitialized variable Date: Sun, 23 Mar 2014 22:53:24 -0700 Message-Id: <1395640404-27958-1-git-send-email-behanw@converseincode.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1395506558.2143.18.camel@dabdike.int.hansenpartnership.com> References: <1395506558.2143.18.camel@dabdike.int.hansenpartnership.com> 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::233 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 Acked-by: David Howells Acked-by: Arnd Bergmann --- include/asm-generic/cmpxchg-local.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/asm-generic/cmpxchg-local.h b/include/asm-generic/cmpxchg-local.h index d8d4c89..70bef78 100644 --- a/include/asm-generic/cmpxchg-local.h +++ b/include/asm-generic/cmpxchg-local.h @@ -4,7 +4,8 @@ #include #include -extern unsigned long wrong_size_cmpxchg(volatile void *ptr); +extern unsigned long wrong_size_cmpxchg(volatile void *ptr) + __noreturn; /* * Generic version of __cmpxchg_local (disables interrupts). Takes an unsigned