From patchwork Tue Jan 27 21:07:16 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 43859 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 860F123FFF for ; Tue, 27 Jan 2015 21:38:32 +0000 (UTC) Received: by mail-la0-f69.google.com with SMTP id gm9sf9070868lab.0 for ; Tue, 27 Jan 2015 13:38:31 -0800 (PST) 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:date :message-id:in-reply-to:references:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=m/gDUF0CcGG7cqIB9TLBGC+ZjwxQSWqy6JgXQ2/toEw=; b=SoF7Y5r3OCkWqdmXUusmgHo6viOSN1SKCp4ZNNZOr/7lUAQQO3+oAUGiJm+STYHXyR MJ2QHX5A5vQ0y/3uVA2Ins1BeHJuLxih/ZUC5fwlwOfKTIAoREeIWpWWQql8Nl2OlyyR X4jtj8PD3oQiqBBCzbFXtTeDHaw6x3hYcytIF77Lg0GGzUeS9eczuxHqmOP6/F5XTuKd cSQUbiAhLJmRbrtcZzF+LuLXh+i1Th7Himau/fOOLMeTy5HyfgHXIarGxqVz8eKh4EST pMlOtjNRNqaUvk2w0HVdeIOZNpc4PuztWUDgGY+5Q13J1CLK8EOzlgx2QrY0kZhJnMgg 9Bow== X-Gm-Message-State: ALoCoQnnizFybrBbjZ9BM2rUDaXik0RmKuftH5I3tvuh+aR8VsEm60nEf+/1FOS5qGNrt6KRuYTE X-Received: by 10.194.142.174 with SMTP id rx14mr26123wjb.4.1422394711279; Tue, 27 Jan 2015 13:38:31 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.179.67 with SMTP id de3ls91472lac.60.gmail; Tue, 27 Jan 2015 13:38:31 -0800 (PST) X-Received: by 10.152.23.73 with SMTP id k9mr4340666laf.54.1422394711051; Tue, 27 Jan 2015 13:38:31 -0800 (PST) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com. [209.85.217.182]) by mx.google.com with ESMTPS id vp9si2389040lbb.134.2015.01.27.13.38.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 27 Jan 2015 13:38:30 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.182 as permitted sender) client-ip=209.85.217.182; Received: by mail-lb0-f182.google.com with SMTP id l4so15396544lbv.13 for ; Tue, 27 Jan 2015 13:38:30 -0800 (PST) X-Received: by 10.112.170.36 with SMTP id aj4mr4228635lbc.3.1422394710652; Tue, 27 Jan 2015 13:38:30 -0800 (PST) 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.112.35.133 with SMTP id h5csp1233137lbj; Tue, 27 Jan 2015 13:38:28 -0800 (PST) X-Received: by 10.140.91.201 with SMTP id z67mr5979564qgd.27.1422394708115; Tue, 27 Jan 2015 13:38:28 -0800 (PST) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id m64si3194704qge.85.2015.01.27.13.38.27 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 27 Jan 2015 13:38:28 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:49973 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGDOy-00079S-0y for patch@linaro.org; Tue, 27 Jan 2015 16:10:24 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57068) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGDMA-00047N-C4 for qemu-devel@nongnu.org; Tue, 27 Jan 2015 16:07:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YGDM5-0005m4-0d for qemu-devel@nongnu.org; Tue, 27 Jan 2015 16:07:30 -0500 Received: from afflict.kos.to ([92.243.29.197]:35440) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGDM4-0005lb-Rp for qemu-devel@nongnu.org; Tue, 27 Jan 2015 16:07:24 -0500 Received: from afflict.kos.to (afflict [92.243.29.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by afflict.kos.to (Postfix) with ESMTPSA id 29252264D8; Tue, 27 Jan 2015 22:07:23 +0100 (CET) From: riku.voipio@linaro.org To: qemu-devel@nongnu.org Date: Tue, 27 Jan 2015 23:07:16 +0200 Message-Id: X-Mailer: git-send-email 1.7.10.4 In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 92.243.29.197 Cc: peter.maydell@linaro.org Subject: [Qemu-devel] [PULL 05/11] linux-user/main.c: Mark end_exclusive() as possibly unused X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: riku.voipio@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.182 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Peter Maydell The function end_exclusive() isn't used on all targets; mark it as such to avoid a clang warning. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/main.c b/linux-user/main.c index 95e8a51..cfa7d07 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -169,7 +169,7 @@ static inline void start_exclusive(void) } /* Finish an exclusive operation. */ -static inline void end_exclusive(void) +static inline void __attribute__((unused)) end_exclusive(void) { pending_cpus = 0; pthread_cond_broadcast(&exclusive_resume);