From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3326BA04F0 for ; Thu, 19 Dec 2019 15:40:18 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 286621BFCD; Thu, 19 Dec 2019 15:40:18 +0100 (CET) Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) by dpdk.org (Postfix) with ESMTP id 6EF5B1BFD7 for ; Thu, 19 Dec 2019 15:40:16 +0100 (CET) Received: by mail-wr1-f41.google.com with SMTP id q10so6208519wrm.11 for ; Thu, 19 Dec 2019 06:40:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=icpfI0VN4V9YoBvB3oviI5lymjpQCgESKf/kj/a19OY=; b=GLX1rZtayN2qP8b/nBOfHZwnA41wGHM8Ru9gGD9hv7oPb+nZbXDLRx3zOni4KyieZN PXRZWzX2GqekwoOIRfBFYCFgya3CdNxECmNLieiyHcHsX79dd/xzuMO9QVncpsBWObTm l5eHMdUFBOLGkymgOAzxKKd04Jlo+6+9YUa6BP2ChqdE6/CjCYw22+8R6+oy5uEgkq8D +59gC4i11oUaOPk6D8PihikeulQRUf2IDpWGQ7ezPGGW4Ci3Q+7IMSZcRhD9HhaN3uJy kv4v8WD9B22zc4pace2wHQ1kdW91vyg5YwFWzPm1T7SrMoKcTDB0eZseqOgauZjjfFtQ 3UBQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=icpfI0VN4V9YoBvB3oviI5lymjpQCgESKf/kj/a19OY=; b=DTAAdi0rLFLvneXrG3Z2EljQr2qrgD1/qknv0zHAlXjXP/WbIrVrr5nG3Qz4E29wuV uF2c1Q+r1ybTOFZycb5Zkd0tOkf+zioMMGWQwlupwFYLUwItV/SlV+gpQDVdRCqYnisw hVKmi6oQjAPXfNVS+edAiG+kwemO2aXLg6MN8RuSTleeJYW4Z3PNfr2yIWgUHOpq2SFG x9Od8AmakgvCg2tsmnhcLTz3E96zYhkZ5Y5J0SOC0vQ1WaKtPSFqpi65Kd1aLbv8E6Cx JAtRDr3CHBnZIKWO+oB5Sdpef7blpkaikEw4OfHCROHWux0qr+pjAGHI5qqHIJTfvNiz weNA== X-Gm-Message-State: APjAAAX5oKESQ9XjcNSI9i8fNBy+/sGIizyBL6t56x2nmUacoA29fj3n UmHP8aUZvfia6ayb+YYrYudpGR2v5NI= X-Google-Smtp-Source: APXvYqxCtOe9ca8niVgI0MutMcooejDIJkyf6m/jQ7K284KVv39DqOClBHQoXdZK2yQpjvtTq1Lq0w== X-Received: by 2002:a5d:438c:: with SMTP id i12mr10072894wrq.196.1576766416064; Thu, 19 Dec 2019 06:40:16 -0800 (PST) Received: from localhost ([88.98.246.218]) by smtp.gmail.com with ESMTPSA id o129sm6609469wmb.1.2019.12.19.06.40.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Dec 2019 06:40:15 -0800 (PST) From: luca.boccassi@gmail.com To: Bruce Richardson Cc: David Hunt , dpdk stable Date: Thu, 19 Dec 2019 14:34:00 +0000 Message-Id: <20191219143447.21506-93-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191219143447.21506-1-luca.boccassi@gmail.com> References: <20191219143447.21506-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'examples/vm_power: fix type of cmdline token in cli' has been queued to LTS release 17.11.10 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Hi, FYI, your patch has been queued to LTS release 17.11.10 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 12/21/19. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Thanks. Luca Boccassi --- >From 289e2019fe9d50d133b1e296ee8c05f305281c44 Mon Sep 17 00:00:00 2001 From: Bruce Richardson Date: Tue, 22 Oct 2019 16:43:09 +0100 Subject: [PATCH] examples/vm_power: fix type of cmdline token in cli [ upstream commit 99dc01446e62361d8d0046c2e007bba86cb8ec30 ] Building the example with clang gives the error: error: expression which evaluates to zero treated as a null pointer constant of type 'const char *' [-Werror,-Wnon-literal-null-conversion] lcore_id, UINT8); ^~~~~ This error is due to the wrong data type being given for the cmd_set_cpu_freq_core_num value - it was specified as string rather than numeric type. Fixes: f5e5c3347ae3 ("examples/vm_power: cli in guest") Signed-off-by: Bruce Richardson Acked-by: David Hunt --- examples/vm_power_manager/guest_cli/vm_power_cli_guest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c b/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c index 63f711e08f..61a3dd6630 100644 --- a/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c +++ b/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c @@ -121,7 +121,7 @@ cmd_set_cpu_freq_parsed(void *parsed_result, struct cmdline *cl, cmdline_parse_token_string_t cmd_set_cpu_freq = TOKEN_STRING_INITIALIZER(struct cmd_set_cpu_freq_result, set_cpu_freq, "set_cpu_freq"); -cmdline_parse_token_string_t cmd_set_cpu_freq_core_num = +cmdline_parse_token_num_t cmd_set_cpu_freq_core_num = TOKEN_NUM_INITIALIZER(struct cmd_set_cpu_freq_result, lcore_id, UINT8); cmdline_parse_token_string_t cmd_set_cpu_freq_cmd_cmd = -- 2.20.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2019-12-19 14:32:30.047694257 +0000 +++ 0093-examples-vm_power-fix-type-of-cmdline-token-in-cli.patch 2019-12-19 14:32:26.221300126 +0000 @@ -1,8 +1,10 @@ -From 99dc01446e62361d8d0046c2e007bba86cb8ec30 Mon Sep 17 00:00:00 2001 +From 289e2019fe9d50d133b1e296ee8c05f305281c44 Mon Sep 17 00:00:00 2001 From: Bruce Richardson Date: Tue, 22 Oct 2019 16:43:09 +0100 Subject: [PATCH] examples/vm_power: fix type of cmdline token in cli +[ upstream commit 99dc01446e62361d8d0046c2e007bba86cb8ec30 ] + Building the example with clang gives the error: error: expression which evaluates to zero treated as a null pointer @@ -15,7 +17,6 @@ numeric type. Fixes: f5e5c3347ae3 ("examples/vm_power: cli in guest") -Cc: stable@dpdk.org Signed-off-by: Bruce Richardson Acked-by: David Hunt @@ -24,10 +25,10 @@ 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c b/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c -index fe09b0778a..610d9aeac5 100644 +index 63f711e08f..61a3dd6630 100644 --- a/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c +++ b/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c -@@ -171,7 +171,7 @@ cmd_set_cpu_freq_parsed(void *parsed_result, struct cmdline *cl, +@@ -121,7 +121,7 @@ cmd_set_cpu_freq_parsed(void *parsed_result, struct cmdline *cl, cmdline_parse_token_string_t cmd_set_cpu_freq = TOKEN_STRING_INITIALIZER(struct cmd_set_cpu_freq_result, set_cpu_freq, "set_cpu_freq");