From patchwork Mon Jul 12 21:55:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 473145 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp3345517jao; Mon, 12 Jul 2021 15:00:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxETagU1gnTXJ6rl9LJ6uucL/XmWVFNKxOJVJK8kL3/0uoIygH+XX+3QW7llJrjcUAvcsqY X-Received: by 2002:ac8:5a4d:: with SMTP id o13mr935764qta.243.1626127223714; Mon, 12 Jul 2021 15:00:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626127223; cv=none; d=google.com; s=arc-20160816; b=gmFXCOciTE1uqnCLmY6KNRSe7PItYTqVkNHoCT9yVDffjT8807+t9jQe0HT9KjHaMr eLYmiiLqw5o5HIpc/l3yNP044N7L1Y4XbJLzLcHP/1H08vYQh745Dhv+VuW15TMducK6 ouuyoVScF8oEJawJCFWZkGlEgJsB8FsE5qhaUzg0MJVyrALwfbeBpw0MfbFmcq1mtL3h T5oSKFcMo+sY5xsJ8FnFmasd75ype075UUrnknYPp1dFs98V457KFB+4fmj1EyP/yepT pWPkIBQFe+c2z1Z2mKOlchp3iQXm6BSxQ2SQ5of4MO/0Lv44wA+VJyIRG8Mxax9Qbkos TbJQ== 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=iyvaGMC6h5HLiIret8Mp3ndf9xYPQ8o8+AuZQESpOgY=; b=eUMe6NnH7XjRzzGCgML1FZBunBduJjG/ql9tcQtvosERXHSmrfnvr+ggfXBkwcgNPL 9Zz1RCgU1DMXqFPFu/fl+bcqs4exNJwkG0LZNrBdCrJSZOD3A6BSoqD4G1tyaMUDGukc kG9/Q5oo5UerDVMVbsPpQgQXz56YxVzoZ9vS9UwdwnXlCXfPdviJQXybcGv7Ggppd9WN zpxwXtqvtpdD2wVPhrqpo69OTSDpUwn2Rh880RTMG9UvxN8VRf2oFnVK5PjnU0lx2SKy 9hlwpLe5qkCP0jyULnIMiffQgM37lL7krsfzbINoAzoCzfRCA0KMmtlUIJkKgLewUEZb gGng== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=DPzFqEs3; 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=fail (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 11si16710505qkm.168.2021.07.12.15.00.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 Jul 2021 15:00:23 -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=fail header.i=@linaro.org header.s=google header.b=DPzFqEs3; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:39046 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m33yR-0007Ms-2G for patch@linaro.org; Mon, 12 Jul 2021 18:00:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50666) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m33tv-0000aI-Lo for qemu-devel@nongnu.org; Mon, 12 Jul 2021 17:55:43 -0400 Received: from mail-pj1-x1036.google.com ([2607:f8b0:4864:20::1036]:33348) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m33tr-0006ql-FG for qemu-devel@nongnu.org; Mon, 12 Jul 2021 17:55:43 -0400 Received: by mail-pj1-x1036.google.com with SMTP id v18-20020a17090ac912b0290173b9578f1cso724882pjt.0 for ; Mon, 12 Jul 2021 14:55:39 -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=iyvaGMC6h5HLiIret8Mp3ndf9xYPQ8o8+AuZQESpOgY=; b=DPzFqEs3acNKDr6SkjYmqgBFsYTVS0IIUku+NMS1BmLR1ubh6PIyzP7+iRLVbaVz20 Lu7UNPOR2CDo4U4EHY5FBRzADuLJSETQGEfG0yRL/F/MrEplB/gEQIQvWNLBMhhl0X/1 cbhAvA0tohXqtl9pVu93EaOuTFiqaq2WAJHwIPBDg4ryRrYV6HI9/I0328K3dmgQsSRX 9SVFroCie0HDtvMDS3d7te5cS7ZIPu8LYLw+ECHcnAz6dx8rghLVrvfwBD6vmB3yw4UC JlGb3fepux2qdgi/COYJZRUZ/OHclzFjOK1W5C39j3ZrhLowpX1hRC4USyroBwPxpy8H D5hg== 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=iyvaGMC6h5HLiIret8Mp3ndf9xYPQ8o8+AuZQESpOgY=; b=CObi3oui0uMxseKPTTTbOLeTvh1iFkXXvW3ufZ5EAiphjxpioG7Puz79160+xWOI92 a/hEq1vIMesq04tVbDCjE/0l4yadGYPDtxbm9HpEHJ+PEkUUa2zpOIC0SIRVO2s16lyr aqKcIlcwUBA9chKAUvBq3bbnfo46505wCgArjPDHUh3h/5B9ZALDHqcUhh054Jl+lkCm VVZl4wIJC1l4+IQSjnw6Cj4Z6DgBU13YmncJ/w2Xa7Cx1DmPhY+iM6jHwRzC8sN06oNi 2pngVsVs8aB3L4pCkd1B7lQ5Qx9iuEA1b4rbP4jK58a1iC4RpC4KuNhyPQ918mQrdUou fWXw== X-Gm-Message-State: AOAM532U9arA88jP0TxKBWzpcCs6qludvwLF1qAvhqs2mRdCak1LAPzp zPixNIfhUI0E4Y9tyNDaNZ5FCbwfv9CpOA== X-Received: by 2002:a17:90a:8403:: with SMTP id j3mr1008965pjn.212.1626126937990; Mon, 12 Jul 2021 14:55:37 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id d2sm376932pjo.50.2021.07.12.14.55.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jul 2021 14:55:37 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 01/11] nbd/server: Remove unused variable Date: Mon, 12 Jul 2021 14:55:25 -0700 Message-Id: <20210712215535.1471256-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210712215535.1471256-1-richard.henderson@linaro.org> References: <20210712215535.1471256-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1036; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1036.google.com X-Spam_score_int: -1 X-Spam_score: -0.2 X-Spam_bar: / X-Spam_report: (-0.2 / 5.0 requ) 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=unavailable 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: Vladimir Sementsov-Ogievskiy , Eric Blake , qemu-block@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" >From clang-13: nbd/server.c:976:22: error: variable 'bitmaps' set but not used \ [-Werror,-Wunused-but-set-variable] Cc: qemu-block@nongnu.org Cc: Eric Blake Cc: Vladimir Sementsov-Ogievskiy Signed-off-by: Richard Henderson --- nbd/server.c | 4 ---- 1 file changed, 4 deletions(-) -- 2.25.1 diff --git a/nbd/server.c b/nbd/server.c index b60ebc3ab6..721349ec00 100644 --- a/nbd/server.c +++ b/nbd/server.c @@ -973,7 +973,6 @@ static int nbd_negotiate_meta_queries(NBDClient *client, { int ret; g_autofree char *export_name = NULL; - g_autofree bool *bitmaps = NULL; NBDExportMetaContexts local_meta = {0}; uint32_t nb_queries; size_t i; @@ -1007,9 +1006,6 @@ static int nbd_negotiate_meta_queries(NBDClient *client, "export '%s' not present", sane_name); } meta->bitmaps = g_new0(bool, meta->exp->nr_export_bitmaps); - if (client->opt == NBD_OPT_LIST_META_CONTEXT) { - bitmaps = meta->bitmaps; - } ret = nbd_opt_read(client, &nb_queries, sizeof(nb_queries), false, errp); if (ret <= 0) {