From patchwork Thu Mar 12 20:24:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 11435449 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E302090 for ; Thu, 12 Mar 2020 20:25:34 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C8F9D206E9 for ; Thu, 12 Mar 2020 20:25:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C8F9D206E9 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=xen.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1jCUNN-0000UL-VG; Thu, 12 Mar 2020 20:24:17 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1jCUNM-0000UG-1R for xen-devel@lists.xenproject.org; Thu, 12 Mar 2020 20:24:16 +0000 X-Inumbo-ID: 70ebbf13-649f-11ea-b21f-12813bfff9fa Received: from mail-ed1-f66.google.com (unknown [209.85.208.66]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 70ebbf13-649f-11ea-b21f-12813bfff9fa; Thu, 12 Mar 2020 20:24:15 +0000 (UTC) Received: by mail-ed1-f66.google.com with SMTP id m25so9117293edq.8 for ; Thu, 12 Mar 2020 13:24:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Xw6QgFWKdCqZZf/x6qZD9uafUzz7v1orx5Mlam9cZ6c=; b=RACDPYaJ4zf75fmDjlZT+pCMNzPSds3fEug8ZdM2PvcFXTRPnP3kTdjdNaE4Rfapw+ FaYeZOFqfpTNKBPx+hXb939DgezsOXCZg4qApciVzqs89oQs+Cblv5a7OMauTv+xj+kq /GFEvnoQlTgFu1McZV33MZTYnxoDkzs0mPOEjxZezxrdZh92jsN9rlIykqd2xo5rd+7v yoOOzVhITzKP31S/+7t5AnvxIWPaQNl/nlOxXQhj+ZSSiU2/a1MYJGzUB0opmTGkvJ6v AbogA4yumib8IOwo31TLvH3/IrV//dFl1i6Z2hUnB0mIweRG1y8iJ427ZRs1O/4PJq5O rxSg== X-Gm-Message-State: ANhLgQ1ADHiipmQXo4YqU4y+PbbpwIXcyqtSdOhti/HpTa0GTzpAsqfn uK/DaamQ5O7bvHpwb0xKa/pN16XwjKxN7A== X-Google-Smtp-Source: ADFU+vvnLjI11TZ5eI+F13FzDb+ckEYlEWwu9IQLJmKlwvC7hQ10yTJg4giNsjj+IPMEgkqWyhdz4Q== X-Received: by 2002:a05:6402:1acf:: with SMTP id ba15mr9466723edb.279.1584044654192; Thu, 12 Mar 2020 13:24:14 -0700 (PDT) Received: from ufe34d9ed68d054.ant.amazon.com (54-240-197-235.amazon.com. [54.240.197.235]) by smtp.gmail.com with ESMTPSA id p34sm280815edb.63.2020.03.12.13.24.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Mar 2020 13:24:13 -0700 (PDT) From: julien@xen.org To: xen-devel@lists.xenproject.org Date: Thu, 12 Mar 2020 20:24:07 +0000 Message-Id: <20200312202407.1154-1-julien@xen.org> X-Mailer: git-send-email 2.17.1 Subject: [Xen-devel] [PATCH] tools/helpers: xen-init-dom0: Mark clear_domid_history() static X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Julien Grall , Ian Jackson , Wei Liu , paul@xen.org MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" From: Julien Grall xen-init-dom0 is a standalone binary, so all the functions but the main() should be static. Signed-off-by: Julien Grall Cc: paul@xen.org Acked-by: Wei Liu Reviewed-by: Paul Durrant --- tools/helpers/xen-init-dom0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/helpers/xen-init-dom0.c b/tools/helpers/xen-init-dom0.c index 56f69ab66f..c99224a4b6 100644 --- a/tools/helpers/xen-init-dom0.c +++ b/tools/helpers/xen-init-dom0.c @@ -12,7 +12,7 @@ #define DOMNAME_PATH "/local/domain/0/name" #define DOMID_PATH "/local/domain/0/domid" -int clear_domid_history(void) +static int clear_domid_history(void) { int rc = 1; xentoollog_logger_stdiostream *logger;