From patchwork Mon Jul 15 14:24:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 18362 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f71.google.com (mail-vb0-f71.google.com [209.85.212.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C9D8625E13 for ; Mon, 15 Jul 2013 14:24:42 +0000 (UTC) Received: by mail-vb0-f71.google.com with SMTP id f12sf5196824vbg.10 for ; Mon, 15 Jul 2013 07:24:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=Tnjd2bzgTrLe2hFGlVOg/xrI1RJtaUqlW9bWtJZ1G3Y=; b=Bka2hUFnQwDQTXks83zjiKF7ti6i0VDKoZoL8B2uW8iv8SWiQ1tiW+Kx6eccm67iUI XCMiEEO/Oh1IcgxyfoBTH58tWTDKFwipT5K/IklSVrf55gXZq/SPF77c6/oeTnoNwc5L uOjh4odtwZRpEqGXuBpwHP2DwTsLDxmk43Z7JtLft5o4qOMfwW/l+M/HjvSPu/dTSvpf xkq6FK7DLFSDgauym8s5CRPh9Sw+AwDqIVyXag2cpyP21tHgQUNHVasEv1JVzUTgrHTc sJH2AoCYWrKveJzIAOIFYh8ZEnpfxkZ5HSeIajuCaSBx9u1xis00eSSOX4iJtQ8mLV5e R8yg== X-Received: by 10.236.139.3 with SMTP id b3mr8058040yhj.3.1373898282519; Mon, 15 Jul 2013 07:24:42 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.14.71 with SMTP id n7ls4661914qec.2.gmail; Mon, 15 Jul 2013 07:24:42 -0700 (PDT) X-Received: by 10.52.35.109 with SMTP id g13mr19450632vdj.21.1373898282367; Mon, 15 Jul 2013 07:24:42 -0700 (PDT) Received: from mail-ve0-f175.google.com (mail-ve0-f175.google.com [209.85.128.175]) by mx.google.com with ESMTPS id ia10si14824666vdb.77.2013.07.15.07.24.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Jul 2013 07:24:42 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.175; Received: by mail-ve0-f175.google.com with SMTP id da11so9746361veb.6 for ; Mon, 15 Jul 2013 07:24:42 -0700 (PDT) X-Received: by 10.220.198.133 with SMTP id eo5mr28629661vcb.24.1373898282275; Mon, 15 Jul 2013 07:24:42 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.149.77 with SMTP id s13csp71943vcv; Mon, 15 Jul 2013 07:24:41 -0700 (PDT) X-Received: by 10.180.188.97 with SMTP id fz1mr9086605wic.34.1373898281226; Mon, 15 Jul 2013 07:24:41 -0700 (PDT) Received: from mail-wg0-f41.google.com (mail-wg0-f41.google.com [74.125.82.41]) by mx.google.com with ESMTPS id d8si5033899wik.20.2013.07.15.07.24.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Jul 2013 07:24:41 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.41 is neither permitted nor denied by best guess record for domain of julien.grall@linaro.org) client-ip=74.125.82.41; Received: by mail-wg0-f41.google.com with SMTP id y10so2639444wgg.0 for ; Mon, 15 Jul 2013 07:24:40 -0700 (PDT) X-Received: by 10.180.206.70 with SMTP id lm6mr9097666wic.50.1373898280654; Mon, 15 Jul 2013 07:24:40 -0700 (PDT) Received: from belegaer.uk.xensource.com. (firewall.ctxuk.citrix.com. [46.33.159.2]) by mx.google.com with ESMTPSA id b14sm21261651wic.8.2013.07.15.07.24.38 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Jul 2013 07:24:39 -0700 (PDT) From: Julien Grall To: stefano.stabellini@eu.citrix.com, konrad.wilk@oracle.com Cc: ian.campbell@citrix.com, patches@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, xen-devel@lists.xen.org, Julien Grall Subject: [PATCH] xen/control: protect functions with CONFIG_HIBERNATE_CALLBACKS to avoid warning Date: Mon, 15 Jul 2013 15:24:35 +0100 Message-Id: <1373898275-15765-1-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 X-Gm-Message-State: ALoCoQlmH/PSjrn5lcCEQ6aoM+fkqbRa4Hla8M9Jb88QjXWI3Uk3x0CTGZtkGf5ZQ426h4l2LUai X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.175 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 Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , If CONFIG_HIBERNATE_CALLBACKS is not set gcc will issue warnings: drivers/xen/manage.c:46:13: warning: 'xen_hvm_post_suspend' defined but not used [-Wunused-function] drivers/xen/manage.c:52:13: warning: 'xen_pre_suspend' defined but not used [-Wunused-function] drivers/xen/manage.c:59:13: warning: 'xen_post_suspend' defined but not used [-Wunused-function] Signed-off-by: Julien Grall --- drivers/xen/manage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/xen/manage.c b/drivers/xen/manage.c index 412b96c..7680276 100644 --- a/drivers/xen/manage.c +++ b/drivers/xen/manage.c @@ -36,6 +36,7 @@ enum shutdown_state { /* Ignore multiple shutdown requests. */ static enum shutdown_state shutting_down = SHUTDOWN_INVALID; +#ifdef CONFIG_HIBERNATE_CALLBACKS struct suspend_info { int cancelled; unsigned long arg; /* extra hypercall argument */ @@ -63,7 +64,6 @@ static void xen_post_suspend(int cancelled) xen_mm_unpin_all(); } -#ifdef CONFIG_HIBERNATE_CALLBACKS static int xen_suspend(void *data) { struct suspend_info *si = data;