From patchwork Mon Jul 26 21:47:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 485876 Delivered-To: patch@linaro.org Received: by 2002:a17:907:d92:0:0:0:0 with SMTP id go18csp4019660ejc; Mon, 26 Jul 2021 14:55:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxaFMbwPmjZzMMLnlD4j1j597gbvW4a5A72vpsLFyh/wGRN7epbvkhtIYmGVani1wgzcYm X-Received: by 2002:ac8:7645:: with SMTP id i5mr16588828qtr.133.1627336534236; Mon, 26 Jul 2021 14:55:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627336534; cv=none; d=google.com; s=arc-20160816; b=0lTrKYvOI4ZHIbgJ65CmKzbK5DYYtm3QhLU+hDkZOGkRmbRZjqf4K5p7YfU72LF4L3 gY6t5UtSIRObj3bHJkj/tYY6+UqCf2igavFI8JWvsGjdUpJutYu30WXfwkSXsfIAJBrG npctPKWNgq8netWwWxyAxjbXUk5m5l031iH+8YIOD6bOAXfI6xbfnXGVS7s+pZ4gUvxA BXs9oi8TV8OYz29yoQplhU69MMFw0GLgBBQf2dl6+nKeAHun/9A14c/8nBITpSwvkPF6 YuH3ysTsA5qZcJGBlbjRujXNluLksDboQ/6xMJf6Ld28Ag1nfnwqIGsrQ7QeAmv+HSay rbRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=zE5MTjUi9y133mTU7/pQadmSuW4/bah/7+NERAt/57k=; b=FOqBjbkBRsBjZIeBy1ROMdBu5Vj1KZOsyUT1TmAYZegLFLgZ8D8OrlWz9Oq/XGU/0R APqsM4TNX0Xuvw5+jiMnWg3ecHsn3iMwfLHbTW22mgrPNVqyz1BTb1UDC33500E3I/kK +PWUrL1jT3XwfetUJJo8qoYaLjyoEcxCQJgUbUNhjZqU3Mpu0mr8Cvi0Ju8d0+0dcaag 1kSiY1vBpXkZVQDLRvjsytPkRiO7qfEdld5R2DrCGhnckEfUH14vnxOZHMDRdtsEdMIX PvpzbJXSBIMqQPQRLmQ2wJCqv3o2bpRY+PsVCsdMkzvFLGXF9QsNQKtcSO6Zcd0A14J7 dE0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BRRjiv7p; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id a22si671341qtm.382.2021.07.26.14.55.34 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 26 Jul 2021 14:55:34 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BRRjiv7p; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:41554 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m88ZR-0003fe-JZ for patch@linaro.org; Mon, 26 Jul 2021 17:55:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39048) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m88Rz-000352-2s for qemu-devel@nongnu.org; Mon, 26 Jul 2021 17:47:51 -0400 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]:42527) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m88Rx-0006Eq-JV for qemu-devel@nongnu.org; Mon, 26 Jul 2021 17:47:50 -0400 Received: by mail-pl1-x635.google.com with SMTP id i1so13316999plr.9 for ; Mon, 26 Jul 2021 14:47:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zE5MTjUi9y133mTU7/pQadmSuW4/bah/7+NERAt/57k=; b=BRRjiv7pk7GPWjHrAyE3DXGpIvhv79wj255B2Msl9Z7SIFulCboKlgSrjpQiEparrn 8HL/S/yUkls5N7W7QeGZAvgKMHD7GEaQu99X3tHRV4WVQj5ZY5vMnnOlt3UkTl5Db4KZ VVWj6I+6EBrK1cErN9/3qyiNYQG6td4jk6wYuaTtRvmUImiAjBJLdKPWjvXTgPuWAbet WJMXkAVOn2Nvzz0ZzNHGQeSs0V9YYLJP0r2Gi4FjIfoT0gz4ubdgdOPF/JlU8sQMyoVC KNsDceCwKUxi5ySMBzWnsEFiUthvH8II+eitTaVZ7vMYu8eaKCqWHkenwiDGit1ZIszC X4Rw== 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=zE5MTjUi9y133mTU7/pQadmSuW4/bah/7+NERAt/57k=; b=D90fxqcrhB+jvgTUCMlGDlSsdbm/Wl5yVs/9Qnwy/O+rkaFIO4LetRjgpdtOv38Xqr W5b/cGLHLzR9GcNuRneIJtO97Nn6buchc/TcPWLvo8L0JovqPYqyA3leZeb+vZEZETAa Se0M1aaAtMJZRsfTseIn8Mm41F9K8+PRm3QhjmBYIipFyxilEQKY6kf1eDOGhtFHCvb3 rLDiC8yf94HnYoXtn1Zd1+rqr8iY1l5NJRb8zZooL9Twj1ozhW4gjqwwBmC8WWU9R2wP nYn2cOEvK1t/0hyV5YZs3cUE/0MXpMB1DY3mhXn1AyqcDv5Dcz/6JuPhleKP0MPPWxaG IYUQ== X-Gm-Message-State: AOAM530S6d5GvEU3DniLteZSgCkqj0aYQR+QXGcytqVRUlcWE/IsNQ5H 9YgmqkkUjB6lPPXw3djo6Z7XnfsGavQGcQ== X-Received: by 2002:a17:902:cec7:b029:12a:ece5:6abf with SMTP id d7-20020a170902cec7b029012aece56abfmr15973690plg.50.1627336068237; Mon, 26 Jul 2021 14:47:48 -0700 (PDT) Received: from cloudburst.home (2603-800c-3202-ffa7-497b-6ae4-953c-7ad1.res6.spectrum.com. [2603:800c:3202:ffa7:497b:6ae4:953c:7ad1]) by smtp.gmail.com with ESMTPSA id e8sm997679pfm.218.2021.07.26.14.47.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jul 2021 14:47:47 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL for-6.1 11/12] linux-user/syscall: Remove unused variable from execve Date: Mon, 26 Jul 2021 11:47:28 -1000 Message-Id: <20210726214729.2062862-12-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210726214729.2062862-1-richard.henderson@linaro.org> References: <20210726214729.2062862-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::635; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x635.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, Laurent Vivier Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" >From clang-13: linux-user/syscall.c:8503:17: error: variable 'total_size' set but not used \ [-Werror,-Wunused-but-set-variable] Acked-by: Laurent Vivier Signed-off-by: Richard Henderson --- linux-user/syscall.c | 3 --- 1 file changed, 3 deletions(-) -- 2.25.1 diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 376629c689..ccd3892b2d 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -8364,7 +8364,6 @@ static abi_long do_syscall1(void *cpu_env, int num, abi_long arg1, abi_ulong guest_envp; abi_ulong addr; char **q; - int total_size = 0; argc = 0; guest_argp = arg2; @@ -8396,7 +8395,6 @@ static abi_long do_syscall1(void *cpu_env, int num, abi_long arg1, break; if (!(*q = lock_user_string(addr))) goto execve_efault; - total_size += strlen(*q) + 1; } *q = NULL; @@ -8408,7 +8406,6 @@ static abi_long do_syscall1(void *cpu_env, int num, abi_long arg1, break; if (!(*q = lock_user_string(addr))) goto execve_efault; - total_size += strlen(*q) + 1; } *q = NULL;