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) { From patchwork Mon Jul 12 21:55:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 473141 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp3342910jao; Mon, 12 Jul 2021 14:56:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvuaemxbgkktTcQYR2RiV0dvfYRGYHPmhbGvz+v23MfO19zJR6UAf3X/bkQ8wFD0xMld1z X-Received: by 2002:a05:620a:8db:: with SMTP id z27mr817142qkz.435.1626126989216; Mon, 12 Jul 2021 14:56:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626126989; cv=none; d=google.com; s=arc-20160816; b=v5p0jjQKWQA1K8VwtAn+LDLZy+d7YBHsv+kjnw+a80GRgzNk4GqjDeOyLenw1SHwya KSKgUXDR5isG+idUNHB/lNpTDwDvBoCGxhv7Kjt9u3ENOyprUzcYWwY8YBz8aVmNR6sD NQfHZiY9lHHaIABke41I0/nRE/Z5ajrKIZULhZhgFq3344JvTUQqLglvSbOT1LQvZcjy yreF7MlVBSEqXHD9f6DH+1sybRBsL/m8/uC6haOwztlELCcd2Zg2fG+03nNsmaJ8IEWS XKcIBQRHdw62RylI5bECvir69+VguheQW5hpeSTWolk7L5/3Wh7y+bwjNVziTYBhEd7z 89aA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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=n7azBHG1Zdt3CLAZ/Yfkcusz8F8rGG4wxLGpc9H30Hs=; b=hglk+4lQKl8uqBwPeUaNMUZVwE5Uq3ZSyqgDWuw4uaepdj4O3O/M8RAFk9v30OJwYt O5e86rh63rYcl6zu1+SITIEF35YKF9AbxVkker1OUNzDsTcLRkvIMlmq/PkW9GjaVUkH Kha9GncxxoVCGKDjPUMxlDiCklVF+0l4ZKLT+Je+njfv0iMhwgzhUBwKaqBYHVhopcgL pFXs9MKHSpyoFZw6UdXkTRJq4H5I9NkCwf6H4D50M9CEKNqNJp87KpuKuUzd+3lepqjs YaSW6ZJ6eoHfOnXQUF99uuYjioOGADGW7SxPt5GH5Db9wVlDjcQSpHv5PC3rX0Dw3N8M PMWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bHdT5Pyu; 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 59si14312709qte.40.2021.07.12.14.56.29 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 Jul 2021 14:56:29 -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=bHdT5Pyu; 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]:57484 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m33ue-0000nW-K9 for patch@linaro.org; Mon, 12 Jul 2021 17:56:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50724) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m33tx-0000ef-5o for qemu-devel@nongnu.org; Mon, 12 Jul 2021 17:55:45 -0400 Received: from mail-pg1-x52d.google.com ([2607:f8b0:4864:20::52d]:40863) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m33ts-0006rR-17 for qemu-devel@nongnu.org; Mon, 12 Jul 2021 17:55:44 -0400 Received: by mail-pg1-x52d.google.com with SMTP id k20so12753076pgg.7 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:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=n7azBHG1Zdt3CLAZ/Yfkcusz8F8rGG4wxLGpc9H30Hs=; b=bHdT5PyuJuFouAn1ILNmqVFroA5wUfabYvvtb9QZM0WCe4mG87PAeBEPbIXA1NqSoB ySmjAMQeVmqsFYkaE9XMTr7GyaSfI1gU6li11+Wczt0Hnx7HkXo8STFtImlNWsECNLyn 07lPK/EWlMXy7rKlcG6VHlj7tyo/qnSW2tKA4bD0ZP5xG5E6pgA0ph9o1ZI5uHMNtgmA c+/W3rp6sO7meTI9JzRUlZX6ydW4kkc/f84fsUHU7YVyawFvqYHWil/vbC+q7BB5g4Dw IBNDfLZEoQjOW9Skj0juOa9OVt2PvF6vorQJyaX+xaMJpfwFb8ldOiPlQyasVQuXSWws eD1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=n7azBHG1Zdt3CLAZ/Yfkcusz8F8rGG4wxLGpc9H30Hs=; b=rnGQwoviVU+0oKXlCq/IF3s8Czea9JFu1BBFpcT+r08LnzIhEdwAlLdJw2YhDfIT1O +YtMOoDJB6WnLkuCYG2lRSGIv63v7WrHOIcCF3O8fS69LydPHN7XUbEy0pjCzjZFj6in w4N/thZ/4hSYgmAYRIqFmQJ3CJs6S0A7/F2qiOJGNg8KSnBrP8pjlm0R96ZbLLaxhtZ9 moagMM4O/BO6x7v7GNXSuwGmHllF6gLPNWjeFBFbT/4gaCfByzFsVj41+gUMEbsxYH7f 0sAeMgtfpLUZ3TctS2M9EThO4bY4FqBy/B6CQ8W4szCVQWkeYfJyRiv+WHMApcJJGTEm zEtw== X-Gm-Message-State: AOAM533aS2RxaKDoEW//tUaXtG6NxMF0cPooEeuoE/ceDYp/UD/1h2it DKT0v+e4TG+/cGDWvhgXaW8lJtRK6gBLxw== X-Received: by 2002:a62:3344:0:b029:28c:6f0f:cb90 with SMTP id z65-20020a6233440000b029028c6f0fcb90mr1294429pfz.58.1626126938562; Mon, 12 Jul 2021 14:55:38 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id d2sm376932pjo.50.2021.07.12.14.55.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jul 2021 14:55:38 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 02/11] accel/tcg: Remove unused variable in cpu_exec Date: Mon, 12 Jul 2021 14:55:26 -0700 Message-Id: <20210712215535.1471256-3-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::52d; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x52d.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: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" >From clang-13: accel/tcg/cpu-exec.c:783:15: error: variable 'cc' set but not used \ [-Werror,-Wunused-but-set-variable] Signed-off-by: Richard Henderson --- accel/tcg/cpu-exec.c | 3 --- 1 file changed, 3 deletions(-) -- 2.25.1 Reviewed-by: Philippe Mathieu-Daudé diff --git a/accel/tcg/cpu-exec.c b/accel/tcg/cpu-exec.c index e22bcb99f7..a8d8cea586 100644 --- a/accel/tcg/cpu-exec.c +++ b/accel/tcg/cpu-exec.c @@ -780,7 +780,6 @@ static inline void cpu_loop_exec_tb(CPUState *cpu, TranslationBlock *tb, int cpu_exec(CPUState *cpu) { - CPUClass *cc = CPU_GET_CLASS(cpu); int ret; SyncClocks sc = { 0 }; @@ -819,14 +818,12 @@ int cpu_exec(CPUState *cpu) * so we only perform the workaround for clang. */ cpu = current_cpu; - cc = CPU_GET_CLASS(cpu); #else /* * Non-buggy compilers preserve these locals; assert that * they have the correct value. */ g_assert(cpu == current_cpu); - g_assert(cc == CPU_GET_CLASS(cpu)); #endif #ifndef CONFIG_SOFTMMU From patchwork Mon Jul 12 21:55:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 473147 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp3347895jao; Mon, 12 Jul 2021 15:02:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuqGi41bdhqV9xzJGwsIeuF9/tgDl3rz8BAVtOyBa54K8YtVayIA4Ft/MXPW5af3dBUUWa X-Received: by 2002:a67:f854:: with SMTP id b20mr1898233vsp.32.1626127373769; Mon, 12 Jul 2021 15:02:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626127373; cv=none; d=google.com; s=arc-20160816; b=00u9G9C0L49ZusXs5z/7isD4eu2/+2b8IdK7xeX8qWd5MDWc5/4NYvt5rAa/G4UC2w FPFt1x0S2mgl6Wa7MWvkjKNFW4nNPeqB4WSC+lEs/Rk7LiNgfV8gqc4de4t4JwwY405I wRAgkc8u32UVXiedxzRRT/i2HwPRLhdfJI464dxeXJ9f6UPcVYs7bZLKwYffYCYVdltD 3qLF7G0FU1kkWrup58mmw7oGpjn2O6HfIcwQmNnioORS8l0PdXwrxilfwTZ/aLJJvkk/ MGqCUETBdd0Ilv8t0ZGDA0VkRhP0x+LkJMT/zRWl8BQ36U1RyB8Nj1GZe9gvzHJbz85+ 2Plw== 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=V4NDEP6+OPN3RZuxFlIMW6dNi+3smAct890DuJEN23o=; b=m3yT7QhfH4O4QL1Ux4ZvBe1t9PbaTtL55/6v2mHhZtpA/7Kv6FqzQfhQ1PYc6IuTZo br3fyTrhybDj4RV8RXUsqv0vFTlKsSNGKsuqEWHPwLaMlK7PoeXScNOzwTVkXSS5ySjs nkzmtk11Wbkf2r9W7jiA0MHQIvqjD/9gtu5cIiMxr7zx72pm5r4RdpzvATntqaNd4xqF HGBkYbpi++yWp4xTrCJ9QBhjsfxWT/6nEDQlwDkwn+YFR4i8+emg3CQXCabXPqJbkSkA MVWlkDskjwVx52TMdjcrDlEGHt4LaZ4AxiO3kxk3rl1Xx9OmFy4q496jgAWQrP3RbTTj UMWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QPmfAvba; 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 i26si4191543vsj.180.2021.07.12.15.02.53 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 Jul 2021 15:02:53 -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=QPmfAvba; 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]:45340 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m340r-0003Ip-51 for patch@linaro.org; Mon, 12 Jul 2021 18:02:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50668) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m33tv-0000ac-PN for qemu-devel@nongnu.org; Mon, 12 Jul 2021 17:55:43 -0400 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]:52956) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m33ts-0006rY-RI for qemu-devel@nongnu.org; Mon, 12 Jul 2021 17:55:43 -0400 Received: by mail-pj1-x102a.google.com with SMTP id bt15so5844225pjb.2 for ; Mon, 12 Jul 2021 14:55:40 -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=V4NDEP6+OPN3RZuxFlIMW6dNi+3smAct890DuJEN23o=; b=QPmfAvbabUtgs8i44opkL8TVTPxkjd+6w/WNlclRMTNopwLELhWfrIQnTh1nYeJObF V4R7GLhDRbBpA72gjlYNen8xeSV0TN+u0s9mD6PIAbBbwYqMxf5Zb2vs25DcBqmteK+a FxWM1XzLrJ4Lo1zesZO3YuRbRn16BEveJQ0IHstqgc3V+lLhBT6KgOL8HTQeG0TeLSUO iZbrtW7AonexFnLAjAhmzhDdxNjVidDBnIE30Y6cmCBSDXC4n2d41ijoBR8Jz7TR4MBT xVUYOh9OL6/PAZE0gcflVozCc30fOY9OUUcUReXYOsjT7cGHzdMJRlPpQIy6Uu8jb22P ZCeg== 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=V4NDEP6+OPN3RZuxFlIMW6dNi+3smAct890DuJEN23o=; b=D2GjO8FayQ/7956L1rgmmeigzvPnaPPYoPP6j4sXQPwjfPyy+FxZ4JZkkLy36tGAwH uo4L+3ZuWeJFMEGngeF3X0D+0Xw8+zEXEROM12i242JQUcytlukDk7oyeFwvoU8GPJk4 pNhWBu9gFEWzT+i2ufkxBvLPUew8ipWu4C1FYYb/tCqrITKHGIiJfAJsr8hm5tlOsfYt BvYHuzSFRqsnnjxOQ3fMVvfzuLnbhcsmBZwz5eWEwRgXQkq9dJFkjONWj+29rWRlZdbh 2cQO7V7+VnddDys04ujp3+xRFkOZa0JHdNbs3EUQsPAIL5eer/e0IVXtxCDdpqDfyIxH 0I8w== X-Gm-Message-State: AOAM531vVTQQWrC6ByhPIibXqwP1YznNK+9vGPNkGtoj9AcWMHyQUZBw YUWD9KOpKY+rad9V3aGFT7+SGKL2tWdLvw== X-Received: by 2002:a17:90a:a087:: with SMTP id r7mr16124415pjp.84.1626126939211; Mon, 12 Jul 2021 14:55:39 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id d2sm376932pjo.50.2021.07.12.14.55.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jul 2021 14:55:38 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 03/11] util/selfmap: Discard mapping on error Date: Mon, 12 Jul 2021 14:55:27 -0700 Message-Id: <20210712215535.1471256-4-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::102a; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102a.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=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: =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" >From clang-13: util/selfmap.c:26:21: error: variable 'errors' set but not used \ [-Werror,-Wunused-but-set-variable] Quite right of course, but there's no reason not to check errors. First, incrementing errors is incorrect, because qemu_strtoul returns an errno not a count -- just or them together so that we have a non-zero value at the end. Second, if we have an error, do not add the struct to the list, but free it instead. Cc: Alex Bennée Signed-off-by: Richard Henderson --- util/selfmap.c | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) -- 2.25.1 diff --git a/util/selfmap.c b/util/selfmap.c index 2ec99dfdda..0178c2ff8b 100644 --- a/util/selfmap.c +++ b/util/selfmap.c @@ -23,29 +23,33 @@ GSList *read_self_maps(void) gchar **fields = g_strsplit(lines[i], " ", 6); if (g_strv_length(fields) > 4) { MapInfo *e = g_new0(MapInfo, 1); - int errors; + int errors = 0; const char *end; - errors = qemu_strtoul(fields[0], &end, 16, &e->start); - errors += qemu_strtoul(end + 1, NULL, 16, &e->end); + errors |= qemu_strtoul(fields[0], &end, 16, &e->start); + errors |= qemu_strtoul(end + 1, NULL, 16, &e->end); e->is_read = fields[1][0] == 'r'; e->is_write = fields[1][1] == 'w'; e->is_exec = fields[1][2] == 'x'; e->is_priv = fields[1][3] == 'p'; - errors += qemu_strtoul(fields[2], NULL, 16, &e->offset); + errors |= qemu_strtoul(fields[2], NULL, 16, &e->offset); e->dev = g_strdup(fields[3]); - errors += qemu_strtou64(fields[4], NULL, 10, &e->inode); + errors |= qemu_strtou64(fields[4], NULL, 10, &e->inode); - /* - * The last field may have leading spaces which we - * need to strip. - */ - if (g_strv_length(fields) == 6) { - e->path = g_strdup(g_strchug(fields[5])); + if (!errors) { + /* + * The last field may have leading spaces which we + * need to strip. + */ + if (g_strv_length(fields) == 6) { + e->path = g_strdup(g_strchug(fields[5])); + } + map_info = g_slist_prepend(map_info, e); + } else { + g_free(e); } - map_info = g_slist_prepend(map_info, e); } g_strfreev(fields); From patchwork Mon Jul 12 21:55: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: 473142 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp3342946jao; Mon, 12 Jul 2021 14:56:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynR1V8Rbo5I20G04VV3K7Hd/Wr77tziAdehp7LgOUC+mzqdZ+NLSvBnovm0wHTnBe8YOeN X-Received: by 2002:a05:620a:4146:: with SMTP id k6mr852635qko.219.1626126992491; Mon, 12 Jul 2021 14:56:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626126992; cv=none; d=google.com; s=arc-20160816; b=J2YRaAix5wHF+x8x1n3z6ja5Hy1PCJDxksA2Ma7fMTNOj7I6wmBHA8tuizuiXBBbTk y+OtEkz/665WHm2EP4RItkpzWKDuybOwRr9m+Po8vm3PfWr58AUb8z/KhkegghoQiuHY XvJbHiDCWq5AJKG83D+WW0ZHQOjJHdeQpib6CB3c/yblSjObtRpjeT/wDkN31BXIaS7z DSLVJnvMoU28W66Nn0c/bou2gEJ4j1by8AS8m8pLtRfBob6/jGAwoGhHrpNugroMj3oA 0AtvOjnHMXwAdbYoy/8B0FbNN4cjut2vQj7lZPgOtH2fvUsPXWRoeZolrtpskF+T8b2F vLvg== 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=h4VDfQcFJ7YgMKSWd754t3G1Gz4yG0zsxrrNOOR5Dw8=; b=Tun1UWz+kLn+Nw+7aAUlvlc7/QAsPgQ1NirUEwgTMwTjh+xgtSONWhvQvgckaRN4al B4O+YR/kItDajA0swod2Hqc9/dWTCfq+Bs73mAd/KWBdW2tt/uDmEptIc9aaGcB2/gEj 3CtxYsO/3nyh3/iGXhfZV933GOfweso9+oH0b1oyhWZHWcywz/vleJhHX4DuTrdD42N0 4xRo1wolvL7LjKv62BGgbfHT8pPbnwThT64QER55Q8AQi8xIa00ZC/EZfAfUs6rzuRPO NuyBOn1SQ+jZxeDNyCadOhHriFBcaBcFXjg4ECFQovdvISnPf0rDCCmhrcF9jEvDly4H UbeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fb793n8m; 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 c20si14031645qtd.246.2021.07.12.14.56.32 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 Jul 2021 14:56:32 -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=fb793n8m; 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]:57810 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m33uh-00013J-OC for patch@linaro.org; Mon, 12 Jul 2021 17:56:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50664) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m33tv-0000aA-Jn for qemu-devel@nongnu.org; Mon, 12 Jul 2021 17:55:43 -0400 Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]:38791) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m33tt-0006rv-Df for qemu-devel@nongnu.org; Mon, 12 Jul 2021 17:55:43 -0400 Received: by mail-pg1-x532.google.com with SMTP id h4so19728607pgp.5 for ; Mon, 12 Jul 2021 14:55:40 -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=h4VDfQcFJ7YgMKSWd754t3G1Gz4yG0zsxrrNOOR5Dw8=; b=fb793n8maWYopelOndZlhmLQd6fdjBsVcayxajgZEqV/r11fnTNExQgx58eFQGrs7Q X+zL8fEpvuJa5SuVZ2Y+34GpG/XHtSXbze5LqP171zdkT+wTwQY6XpnDi8nMu8QFTHpf wOJeQ8QmAsJHIEMqN2DkkWmeowgZeaJuEF2Z78mszDjaCa49P1uV8EgnlwjlEghXdKBM zf2B/tOBkEaLUY9zUE5t3etRHHytV5UJtA/KddHgM914ccTVVce5mBDn+kO9l/FyC5xC CItf3tOlzW5UfoXA3OvgANJkqRDJTLMteLaB1wc0QLZtMctWv6Ue7qB3OBLltasOM/eL /XOA== 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=h4VDfQcFJ7YgMKSWd754t3G1Gz4yG0zsxrrNOOR5Dw8=; b=ZTrF0GTtMKyjMuWR2QC66gvFw1dsUmC1IRd0bgrPxWlWY6TXKEalItUqooabGs/pFH Tsmgc6ozilZ+lsaOBJoFp+fVNuie4npz0eO3TVio1icc2SoroM4N1OHzqh3Mi9rAFoIG 4Eug7T1XtjDffo1wl62jiik8pPUmoU/4iSebvEDuDV7UCkokgvdBCdWEiubRHKoXDiWf 5NMbUqxxkmskxvBAr5MPv04AjyDMHHKSsYjqd6Q3SepEWeQ1gALpfO1o0dLoSLxyeUGS 58ABO6O5DKVkZhmjD7cs4kFgWts+k5fw41+iyYfC0DOq3lIYExxbjqdK/dke6QzSqpQd Qo2g== X-Gm-Message-State: AOAM530FEcU0bT3BkpBkOe3329wOmSD7Zu8SAV92OLqRXeHPGPxj+tTf jrWZRo2sdRbuMu5DPUzyVOukWUwW1apa8g== X-Received: by 2002:a05:6a00:1411:b029:302:d9d6:651d with SMTP id l17-20020a056a001411b0290302d9d6651dmr1294472pfu.56.1626126939806; Mon, 12 Jul 2021 14:55:39 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id d2sm376932pjo.50.2021.07.12.14.55.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jul 2021 14:55:39 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 04/11] net/checksum: Remove unused variable in net_checksum_add_iov Date: Mon, 12 Jul 2021 14:55:28 -0700 Message-Id: <20210712215535.1471256-5-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::532; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x532.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: Jason Wang Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" >From clang-13: ../qemu/net/checksum.c:189:23: error: variable 'buf_off' set but not used \ [-Werror,-Wunused-but-set-variable] Cc: Jason Wang Signed-off-by: Richard Henderson --- net/checksum.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) -- 2.25.1 diff --git a/net/checksum.c b/net/checksum.c index 70f4eaeb3a..68245fd748 100644 --- a/net/checksum.c +++ b/net/checksum.c @@ -186,12 +186,11 @@ uint32_t net_checksum_add_iov(const struct iovec *iov, const unsigned int iov_cnt, uint32_t iov_off, uint32_t size, uint32_t csum_offset) { - size_t iovec_off, buf_off; + size_t iovec_off; unsigned int i; uint32_t res = 0; iovec_off = 0; - buf_off = 0; for (i = 0; i < iov_cnt && size; i++) { if (iov_off < (iovec_off + iov[i].iov_len)) { size_t len = MIN((iovec_off + iov[i].iov_len) - iov_off , size); @@ -200,7 +199,6 @@ net_checksum_add_iov(const struct iovec *iov, const unsigned int iov_cnt, res += net_checksum_add_cont(len, chunk_buf, csum_offset); csum_offset += len; - buf_off += len; iov_off += len; size -= len; } From patchwork Mon Jul 12 21:55:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 473140 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp3342839jao; Mon, 12 Jul 2021 14:56:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJ7BAKsVklpZBB5ECTuflCBqSaR/jRusoIGxNBwI6UWAYbd4HVgxXX7XMFn1izyf6T5ezG X-Received: by 2002:a05:622a:1444:: with SMTP id v4mr966084qtx.143.1626126982677; Mon, 12 Jul 2021 14:56:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626126982; cv=none; d=google.com; s=arc-20160816; b=d1MJ2k6rXqPb80rKt0JBkOmvZBV44wfKyBDFzhq43dgzQC6VCIKWhYCbKlwUCgmh8T CGNWK3VOOCsUOEwVxaxT/rcC8s4Q6VtgwwCo75IWsdPZyoRuJjEesLtVJhQ3Rqm3oWzr idt/0U8R3OfY9rKAP5s0YlVRlnbpKf19bPikRv6epPHcae82hQuGpau9RBuOQfb9vEe8 KYsQDWmMIK1plNJlbNez5nKo5HFNMoWno0uN3kXSlbEzDEHmffkExsWH2yz5I8ELNX7w nI+QKW9+Yx4PVAh8zzJH0nkwqFPg+aA1u4mXn8lnkHtt55ChurgKzTsLCF9aXkTDWCaN yQfQ== 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=Za/XDlquE+Ox0yxp6XpECa7y8aOcWlCnk1g4JpHt+1M=; b=eQCPpxzcpO4GaGdSXH+DiDoO4vNQhMrJvKFSfjbCCClSegEeTa0KRVxOeh9WtC6ymT WOveva0+9hE8Y6Bvr0BpL6pfbbGr7NhuxHfLSwIpQpwf8qFp/t8CulQil1vtsgnlg90j FDYbj0ygNLXKM4jfxRq3JZvSzoouXb3t/YzJE6Bgk06IorLAzQ4VZbc4WcWp+j7MWA0+ JNR7YbbHk8AkX032UK90IZxH/FO+EBCOxKTfzevj9JuBt1kaAADM6fvnCTYXfuaVu1ij EXtbiFMzxMSTM78vrN/wXXu72jjtrBL8anytn7ZBmLy2a/GRw7a2Hy2tEGpGm3joV1P1 F8aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MsF0nG47; 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 w4si15279237qvw.53.2021.07.12.14.56.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 Jul 2021 14:56:22 -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=MsF0nG47; 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]:57282 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m33uX-0000fC-30 for patch@linaro.org; Mon, 12 Jul 2021 17:56:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50704) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m33tw-0000dI-GI for qemu-devel@nongnu.org; Mon, 12 Jul 2021 17:55:44 -0400 Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]:35452) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m33tt-0006sO-Qs for qemu-devel@nongnu.org; Mon, 12 Jul 2021 17:55:44 -0400 Received: by mail-pf1-x42f.google.com with SMTP id d12so17722599pfj.2 for ; Mon, 12 Jul 2021 14:55:41 -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=Za/XDlquE+Ox0yxp6XpECa7y8aOcWlCnk1g4JpHt+1M=; b=MsF0nG47M5aqYhAXnwIfjTxh2smNxksulcQ9aWTt7JACmfc/bKi1KqxujZceocHgJx i9XItTJbPehDzLilUM6OiP7S4VUu2agC9Eyd4GpFv+YIwwen/LkU5uxXNz2Mw0903vSA JOaqpkaTapG+hDJSMr+r9CbNCxsxoN7Frt8FF3p3Ik5lP9kKCbgTuUOSi1zlsxqQZ7RA vNc1/VhGrSYlgn08z1c56zKf8/aKjZzmXu0ZF94TtwJNOcfOhNmPhB4A1LsNN3GR6TjS RUOtBsJDvulmYZPrnrLhqZuoqonkr79ysGXIBZ0TF5hQkSmZ9YWFuLwyJViFI5b8uJvN T/Lw== 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=Za/XDlquE+Ox0yxp6XpECa7y8aOcWlCnk1g4JpHt+1M=; b=c2EW7QiLMhBUoUkcwIOi3Uu99jCKQRk4PaQOscTxbU5en4kNTU/9OwLZHzp0FjufUO 3qx1+Rsvt+KmnWJ4/4NMVrv22fWiM3BXshnfZtZjigcJISkQfXa5mwweSgV/paFdNxgv 6octU4PmA1fhkhGPNDWz7WfCagsSWJG1ux46v6CapxOsaRqrpBOwVcF9cNOywsBX8Ehh l8wi0LZxd91V/sYIsisA0kt/SN+p2C6adFHGSU9vZSEOj/cSDCQS0GsgU0/LW9MKOEjR DiY9aFLiJaCND3mK6BeHiW+DrdS/YWiw2yuYSQYtvY6pJwSFyl9OU3eItH5Um+ZMVa+9 ZTog== X-Gm-Message-State: AOAM5304lOHzX859ncY+/EW7xs8mswh/EUuKTPJeBYa0wgeoLMTO34+3 fIGei9aEeOqibVSYXXUJ+pDvUcUUEMBUlg== X-Received: by 2002:a62:1d8b:0:b029:329:ff4a:91f with SMTP id d133-20020a621d8b0000b0290329ff4a091fmr1288786pfd.9.1626126940412; Mon, 12 Jul 2021 14:55:40 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id d2sm376932pjo.50.2021.07.12.14.55.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jul 2021 14:55:40 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 05/11] hw/audio/adlib: Remove unused variable in adlib_callback Date: Mon, 12 Jul 2021 14:55:29 -0700 Message-Id: <20210712215535.1471256-6-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::42f; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42f.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: Gerd Hoffmann Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" >From clang-13: hw/audio/adlib.c:189:18: error: variable 'net' set but not used \ [-Werror,-Wunused-but-set-variable] Cc: Gerd Hoffmann Signed-off-by: Richard Henderson --- hw/audio/adlib.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.25.1 Reviewed-by: Philippe Mathieu-Daudé diff --git a/hw/audio/adlib.c b/hw/audio/adlib.c index 42d50d2fdc..5f979b1487 100644 --- a/hw/audio/adlib.c +++ b/hw/audio/adlib.c @@ -186,7 +186,7 @@ static int write_audio (AdlibState *s, int samples) static void adlib_callback (void *opaque, int free) { AdlibState *s = opaque; - int samples, net = 0, to_play, written; + int samples, to_play, written; samples = free >> SHIFT; if (!(s->active && s->enabled) || !samples) { @@ -219,7 +219,6 @@ static void adlib_callback (void *opaque, int free) written = write_audio (s, samples); if (written) { - net += written; samples -= written; s->pos = (s->pos + written) % s->samples; } From patchwork Mon Jul 12 21:55:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 473148 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp3349017jao; Mon, 12 Jul 2021 15:04:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjQ6ynugB9+UbAUsV/iKUpddxGuodgEVFCvqlp5xVOi4bSjFtiHKFkRuxPOrZ3sAKLsolj X-Received: by 2002:aa7:dbc3:: with SMTP id v3mr1269790edt.63.1626127459434; Mon, 12 Jul 2021 15:04:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626127459; cv=none; d=google.com; s=arc-20160816; b=cJdm9Rxif2WWrfg8S19kE60W9QqTQni1Cy1CUu+ZgtimzT+JvSTSw3uRoNCsWCaDJC y6zjz7ysijeW8grqiAaKu9syfSa87UDdVtAQ43pDrrey/65wauDYKM+Wa0ejt7Uelktl PncbNACGzxfCZlMMq4db2s3Gz7KhhVrdXfwEnBf78Ajn5IdimhP8XnKNs9jyMRof1fAK AnsXSnzSCd2xzKheOhwVfJOT1lmAsqPWMsjxDgmMOkfyqCO/xZ/2WuOqb/vpymTO10YI +iFqBGNlbzGTA+IfJIXSi0Hr6QcTqJRg+j4KFdesa0ZTj/6lJiaw65yOINvZTrZFt+ZA Mm5g== 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=7XETLGHbzSx1DKTz4qiEULjf7r49YPKh/uFQ3WSm96o=; b=djiOVa3Qt8SvfTxHg6FuHF8u5wxx+9EzWXDa9523cwI2TZDb1/5mtEo9fzgkLPPzxK tpPPymjYgjf5AAK5q0SfKDQw9FJmSdYLjwiGOcS1JRkmsv60hSpIBmwQ95lIFjrVc43r wSSDYoTmSTCC0bMXcrXey80BEpagpQFJr7ucMji/voj5bjAdIdl77P1l8AXhS0wdfhau x//31C9ItdcmISt91vkDFKDOzzV99PgaDj9gxJPdL50KFxvNNcHtudX/uBgUwtiAohrP leUvTLPeMvcFOmZfw1/cqrgZ2CTgHrtY//c6PfFlqovkSpKOgyv5c1C0LI9CRNGNEHpq Ecew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aFRau+l+; 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 lt3si3845977ejb.169.2021.07.12.15.04.19 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 Jul 2021 15:04:19 -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=aFRau+l+; 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]:49644 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m342E-0006CD-Gj for patch@linaro.org; Mon, 12 Jul 2021 18:04:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50722) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m33tx-0000ea-1l for qemu-devel@nongnu.org; Mon, 12 Jul 2021 17:55:45 -0400 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]:42649) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m33tu-0006t3-96 for qemu-devel@nongnu.org; Mon, 12 Jul 2021 17:55:44 -0400 Received: by mail-pj1-x102a.google.com with SMTP id i16-20020a17090acf90b02901736d9d2218so842279pju.1 for ; Mon, 12 Jul 2021 14:55:41 -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=7XETLGHbzSx1DKTz4qiEULjf7r49YPKh/uFQ3WSm96o=; b=aFRau+l+IQuB//pmHt5hO7GeCYO3oqJ1azjwDPsr8FPMP+lVeBZ9uoBFC3R49eEuEo BJOsqCxd7vWf3aYAdzO9e4qEeAAKCHBeUWdOZsa8rjO6sKtSpj4b6W4ZU6Tv8fWETbHA +DX9Gt7D9iRt0+QpeFL5m+7i5v7d54WzSEGXLPYzw1RfciGTjRkQtdnoqZYK1q3vrQfq eszGcng4eq9N8ilep9OOjedlRwQcun2Q4SfGoaSMEafJALeEvllwF6Js62NR3n/pzAgV /L0C+fV2PuGvzWQEIfLBY/QwSg4XljxM3z3SqfkQO6MJVxNgkGNX38oAeboB4r3WSrHm wmkQ== 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=7XETLGHbzSx1DKTz4qiEULjf7r49YPKh/uFQ3WSm96o=; b=ABiSHkF+aaIsXcJzJ1d+PP+U5x+M2G14wa6Re5zRvgvj8VWVe1YBqkiH/dcnb7LrWF ov2pBz3dAki4qfIZr65nSJPNoZeK/pgZioLNY29oYmwhJDQPlPnlrSuT2b3gEfezXr7U VrLhQv917EpDnBakxdEAbO/SIBrF0iHuJOghHXai3UEbX+h/koQutqOmvtMKcm2tSvsc ugHnk9KL6bWTAOoqrVJAgfX98qvVb4/TKREArgiIFaKA60VGbmJ2ksBoHnnmKLSV5FE6 JrUu1pXDLT/W690sM+Ze+XE4Mv0mLhPJWnqcEaIdLdc/QrrCiww31hGDCvn+ws4GDxTz vLfQ== X-Gm-Message-State: AOAM530Q5+pO5mq27/5NszukvTMc4LkLH4Xp1QWnr+EBVssN38t70SaQ Lt0rnAZCX4svLBm3EZBGXLdQPKLiQQlIIg== X-Received: by 2002:a17:90a:e2c5:: with SMTP id fr5mr1042981pjb.34.1626126941048; Mon, 12 Jul 2021 14:55:41 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id d2sm376932pjo.50.2021.07.12.14.55.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jul 2021 14:55:40 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 06/11] hw/ppc/spapr_events: Remove unused variable from check_exception Date: Mon, 12 Jul 2021 14:55:30 -0700 Message-Id: <20210712215535.1471256-7-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::102a; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102a.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: qemu-ppc@nongnu.org, Greg Kurz , David Gibson Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" >From clang-13: hw/ppc/spapr_events.c:937:14: error: variable 'xinfo' set but not used \ [-Werror,-Wunused-but-set-variable] Cc: qemu-ppc@nongnu.org Cc: Greg Kurz Cc: David Gibson Signed-off-by: Richard Henderson --- hw/ppc/spapr_events.c | 5 ----- 1 file changed, 5 deletions(-) -- 2.25.1 Acked-by: David Gibson diff --git a/hw/ppc/spapr_events.c b/hw/ppc/spapr_events.c index 0cfc19be19..23e2e2fff1 100644 --- a/hw/ppc/spapr_events.c +++ b/hw/ppc/spapr_events.c @@ -934,7 +934,6 @@ static void check_exception(PowerPCCPU *cpu, SpaprMachineState *spapr, uint32_t nret, target_ulong rets) { uint32_t mask, buf, len, event_len; - uint64_t xinfo; SpaprEventLogEntry *event; struct rtas_error_log header; int i; @@ -944,13 +943,9 @@ static void check_exception(PowerPCCPU *cpu, SpaprMachineState *spapr, return; } - xinfo = rtas_ld(args, 1); mask = rtas_ld(args, 2); buf = rtas_ld(args, 4); len = rtas_ld(args, 5); - if (nargs == 7) { - xinfo |= (uint64_t)rtas_ld(args, 6) << 32; - } event = rtas_event_log_dequeue(spapr, mask); if (!event) { From patchwork Mon Jul 12 21:55:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 473144 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp3345022jao; Mon, 12 Jul 2021 15:00:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8ZRqakxIyHlGDLn6uDFaRLoLCuOKVD9tNtEO6XbLUYkjRHnRVgQNh/IU7OfflzNPEgsjc X-Received: by 2002:ad4:576b:: with SMTP id r11mr1334173qvx.28.1626127201165; Mon, 12 Jul 2021 15:00:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626127201; cv=none; d=google.com; s=arc-20160816; b=gOtN6gt05WA+yUWKjT7wtRCRcO6d3uQLwOir5S+HhCSN9dDPHMBEo5oUJjkn0URdTa 8dhx5ZNRhcW85DHHkQd7ZQ4t2UNZuqS8kuGV/6UIFZxipHoECOAlVBfB4ZrK4X/nHS4V Jq644sN1BvZ4OiAdwIiook4CRuofDvERhWLH9857iX/EAkAR23J3c59TbLITnfFh5pmv OJpUe365E14urA4L4ArycBfjW/FSbcHcgMHETTT/uxgReA1vjcLwF9Y8fT5oiAhqaQW8 qSs5YgnrQ6bptwIUbp9BfHnr19sMUEcppud/QSGhMPqqZTAbZkET/eKjGmSG3IKxa+EO +6lw== 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=JMPNzuHLuXcksvxhjV6/BruPnEZ2eQfGcDwFCQcmMW8=; b=m7FcLXCL8qDOZDjfvEeb1Q92yfFLOLp38RVpioSpWH+IYJz1Wm+uwIog1rP/RverB3 RHXXnnXvxpTGBf+VKn0j+89HYGbks4VZqTuP5I44YzDnlKEiZyAfzIuUm4B6IfDQETIE V+L12leNJfI6uYVxa7iI+si3Cg7fi1jqtmNsGblLhD6GOdPsTjQyHd1pI/bdzidDqO+0 tQtSjje6YLkv5AtPo0/PXaWr+dg/xtCN+tZW4DM9t4y2t2Ak+ujCLwiAB6qCN4yh2wI5 VdW/D8t32QxBgD+/LN6rYFeZVZFeQJM0OaR96Z1GeXj7etU8l1SFjgz6Ly+w4OX2sJk3 sVPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qmGdI2Jv; 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 d11si14681469qvh.207.2021.07.12.15.00.01 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 Jul 2021 15:00:01 -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=qmGdI2Jv; 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]:37632 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m33y4-0006Sa-Hn for patch@linaro.org; Mon, 12 Jul 2021 18:00:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50748) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m33tx-0000g7-Lf for qemu-devel@nongnu.org; Mon, 12 Jul 2021 17:55:45 -0400 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]:44661) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m33tu-0006tp-Uk for qemu-devel@nongnu.org; Mon, 12 Jul 2021 17:55:45 -0400 Received: by mail-pf1-x42b.google.com with SMTP id p36so7974291pfw.11 for ; Mon, 12 Jul 2021 14:55:42 -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=JMPNzuHLuXcksvxhjV6/BruPnEZ2eQfGcDwFCQcmMW8=; b=qmGdI2JvjRNQABt/JaYFsMbGSbqvuksNULSBLhOTpvBUSgMZTXqXw4sP3slWMCV8vY 7VUIc6ZQSWQk2NZmDorboJ/QaukJ9VO5jmbb4t7Skgyb7PJYtN5N62NjjSEJuFWg7Kni DliauPpCIoAKyhK8o+Enu/Is36zefE+Rx9jU12tP/5VO1KTMQmzXU8ep4CBt+aFkNVnF kSfjbmPB8uRMi2cB/Li5qt0zHUSSgmL+vipWfqbwRxtjnkj2BP2f3Na+UdNYmbCrbs9o D4ATAS5SE6XJ2CW1ETLRsqslb+SdoTXMHIob6XeA+5RYXSwQd+wVEnS4md2rlwFOCYsk FTpQ== 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=JMPNzuHLuXcksvxhjV6/BruPnEZ2eQfGcDwFCQcmMW8=; b=IWa/yflhGDQI0J7eK/BctxrKltaAgfUkEHBnoJysLs4EgDkFRNCYHzTBHqttpuXmqc EO8jJvh468QfveXf9WpyFIEdKHcBKmWlf7ReYJkXhLKReTcM7TTHDMrznyW4uZKlXcGl /e8SaxvPCBd5Sn4/TV/bBDnunfdkBKCIEZ8mCem+X/zajfcO+g46AZGWOfVPb3L8z/NE nAnjXwqTNqSo9Sa7TSBLEdy7Qa309t+OqNvRbo53euR8DGXUDbtYHpCej8HXNyNKtSxr bwvPEfzEOZvvLGxO3/YXo7QzI2MEhfhahS7m+YlJru0WnnEu7ccWF+/DYz+RS64sQmke KrQA== X-Gm-Message-State: AOAM5339B/iOe6fmta24epaqmhv6oB6i+g7d0gkdyApwdTaHjJ91z1Vf /x51u5wB3mvBcenGmkZdn8nrPVhogOWWfA== X-Received: by 2002:a62:e90f:0:b029:307:8154:9ff7 with SMTP id j15-20020a62e90f0000b029030781549ff7mr1079842pfh.79.1626126941647; Mon, 12 Jul 2021 14:55:41 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id d2sm376932pjo.50.2021.07.12.14.55.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jul 2021 14:55:41 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 07/11] hw/pci-hist/pnv_phb4: Fix typo in pnv_phb4_ioda_write Date: Mon, 12 Jul 2021 14:55:31 -0700 Message-Id: <20210712215535.1471256-8-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::42b; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42b.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=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: qemu-ppc@nongnu.org, Greg Kurz , David Gibson Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" >From clang-13: hw/pci-host/pnv_phb4.c:375:18: error: variable 'v' set but not used \ [-Werror,-Wunused-but-set-variable] It's pretty clear that we meant to write back 'v' after all that computation and not 'val'. Cc: qemu-ppc@nongnu.org Cc: Greg Kurz Cc: David Gibson Signed-off-by: Richard Henderson --- hw/pci-host/pnv_phb4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.25.1 Acked-by: David Gibson diff --git a/hw/pci-host/pnv_phb4.c b/hw/pci-host/pnv_phb4.c index 54f57c660a..5c375a9f28 100644 --- a/hw/pci-host/pnv_phb4.c +++ b/hw/pci-host/pnv_phb4.c @@ -392,7 +392,7 @@ static void pnv_phb4_ioda_write(PnvPHB4 *phb, uint64_t val) v &= 0xffffffffffff0000ull; v |= 0x000000000000cfffull & val; } - *tptr = val; + *tptr = v; break; } case IODA3_TBL_MBT: From patchwork Mon Jul 12 21:55:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 473146 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp3346846jao; Mon, 12 Jul 2021 15:01:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybxPZDvZzabioKhM1xi8SlKksDXp0urIW/VFNESMH7ahaWdtRsrHC52XBj+akLBeheosH9 X-Received: by 2002:a67:7d06:: with SMTP id y6mr2006207vsc.1.1626127310747; Mon, 12 Jul 2021 15:01:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626127310; cv=none; d=google.com; s=arc-20160816; b=or1KyQ9ClUbCwcbUqoboyyS7mCIfHwIyLz26FtvrvSr4Gyj7GL+rClesJ1pLYdYkD1 3fWLJDMYWJSmNwzdc0dNCBTt60vykGugyg6eSJXenBniuIVRv2nzP/sNn8dDDMpAtTE8 ybaQFl+2tHSe9NukFjKT5NW70hMdvM0AI4nM0UYZ0p0xHlI/OTFl7GjAyjE/POljws+t 2LDsELK5Qo9sGpoP3eU2kHNq9MCXPa7WdSk61YUimV72Ta2iLSplxz1Ht3nOz4d1+lqy 4UO2xBrybftTDGaiVxkG46Ilc1slZfVS/F4XVzvUh57KRnNdVepcfOjqa/1SKx5veu0a yePA== 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=98hXjA4uSUkP3B9/WqgmYEJVY206bbsiqYmueSYFIP8=; b=SpkdzbXDJ9IB990L0l4382ETPN5Giha4+e8cW27g2B5J0miNDGYQCKslbLhkFXnYXG +Ui+n6iD303yEv85kCFvuKWSO8NRcSRS7hEynh5OhduNm231UCVX71mVakJmVoSmvQJw wyVmokgIQ5zf20wzcoPpposi4m4th3WB/S472UhWHzHlL6x204jHmdEphwub3nx6JZtc miWiIFI1RFkc20o1Va1jplVKTmpOwyMK6kTUSnQwAvM3FMQtXwSGuluzsuR91LgX71uc Xyj+50HMastRjgj2toPbI++I5chm4mXRvqG4Aql7hNze4uBWJCquGmkVy6HXx3vAK9oy 8isw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=A5XxD2Zl; 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 m2si15856184uae.148.2021.07.12.15.01.50 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 Jul 2021 15:01:50 -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=A5XxD2Zl; 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]:44400 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m33zq-0002gX-5Y for patch@linaro.org; Mon, 12 Jul 2021 18:01:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50772) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m33ty-0000hb-BN for qemu-devel@nongnu.org; Mon, 12 Jul 2021 17:55:46 -0400 Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]:43773) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m33tv-0006u7-D2 for qemu-devel@nongnu.org; Mon, 12 Jul 2021 17:55:46 -0400 Received: by mail-pf1-x42f.google.com with SMTP id a127so17679288pfa.10 for ; Mon, 12 Jul 2021 14:55:42 -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=98hXjA4uSUkP3B9/WqgmYEJVY206bbsiqYmueSYFIP8=; b=A5XxD2ZlTroVbml+CU5XK4A8VhlUBbeMGrH1M3bFs2BBQ16nsA/0PzI7KsIUBgdiy+ 7zBW98ZemlXuEvpaTWZXpv/zx1KsS+xt+N7xTOKo79YOy/KWfkKPUGWDQHzrdg6j3zsI /C9MXey4d7zJGsBs+qMWmCcKYGt6pk2FiPt9faPHlz+I69AeNPZhYDauHPs4NLRK/UoZ GxA6YuBtwQk4AuaTEzJFBoojJvn220UN+8tYfdet5ll24iqpyQxbxH4Rh9IPIMp+MkP7 Eibgt6eOXgZ6mOU9Hgz5LVamFs2wmdQAfSVXg6llWzsE7UUIUf6WswOeFlCS4HNhK70w S6Yg== 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=98hXjA4uSUkP3B9/WqgmYEJVY206bbsiqYmueSYFIP8=; b=e2xFhb6CEIP5U60za4TN81TUrPH08ES9/8grIwIh87J4t8rOXUe/cMBimmhcazxVvo c1qOcyvJrE8QmIXHSBIHLhTngfCL2/zrqLtaBSb2zc+NHej/26S/B5gp6JgIIlpr+5jK lSyRCJa4wV5jZEIFB8o6omqOiIL0QVxkuLNoFWvF9P0yBKqv2ytQHea5v0wxsGvRszB0 oV3FO8DO/8koG1r0pcg5/CEHlV/5NouWKuAZm/m+5kblUu13I0LYjSQrjlA11bBvRoBV QF6zCpu6so8sv1I03lPVWOyRYg4vMso2ypjVLvK+S6uNgMIWJO/Sl5fMGKVV0+I9YaVM CWpw== X-Gm-Message-State: AOAM531GCboyfE2EpBAjh2xQwvK/OscL7ipQ8LUC9Zly/JXfyRDRzK23 ikGzaYV39h8/MvtxmZaPCTmRFshj5o0IOA== X-Received: by 2002:aa7:828f:0:b029:200:6e27:8c8f with SMTP id s15-20020aa7828f0000b02902006e278c8fmr1318855pfm.44.1626126942220; Mon, 12 Jul 2021 14:55:42 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id d2sm376932pjo.50.2021.07.12.14.55.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jul 2021 14:55:41 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 08/11] linux-user/syscall: Remove unused variable from execve Date: Mon, 12 Jul 2021 14:55:32 -0700 Message-Id: <20210712215535.1471256-9-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::42f; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42f.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: 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] Cc: Laurent Vivier Signed-off-by: Richard Henderson --- linux-user/syscall.c | 3 --- 1 file changed, 3 deletions(-) -- 2.25.1 Acked-by: Laurent Vivier diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 2e826206d2..c27debba8c 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -8500,7 +8500,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; @@ -8532,7 +8531,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; @@ -8544,7 +8542,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; From patchwork Mon Jul 12 21:55:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 473143 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp3344292jao; Mon, 12 Jul 2021 14:58:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwV0hmTwoFzibemJAHN/kTJrdpQiMc5wY0f3LvWzBiRIvt5w37zJtonr3mQXsY2coF2V+Et X-Received: by 2002:ac8:4d11:: with SMTP id w17mr983239qtv.126.1626127138060; Mon, 12 Jul 2021 14:58:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626127138; cv=none; d=google.com; s=arc-20160816; b=bR5F8dYpiHM2Wr0DhI+F0y+ZcmyOIwnmUYZtssJDKAmBCc1iscV8DXoa18rbPMqZLe RHjbRWQ1l042Y4x0GI2yODihkm/mcGOsr9Enypo7lU8hcOLyoHuKtK3ZYxBFyEI19kJj u4g2r10uBBinvAm+d6oVA8nj/A769qRDkNmjeEtThV/sR2K+/1KVMR+xojwxFaaCa6Q9 eLdQkfM691JaGar+ojX0hT7kPdZuAVBaGcTmsq/ZSBRq32IXDN423rUt9gB9kcRqQGgr lqQAWMQbR6BsHjtC/oF4GJz0eO21TpELiu1i70kr2inNmmibXfxhy+N7deLzy8uTK8kE UPEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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=/XbZAZAFUZutJ4SOP5C+rLYYfepTHI4gi5UAVTl5lRY=; b=xJ+8CqNvluldnwdcUjTdVTF5ze4oUO+Kni51w5yx+zG+4nWKRQCtXXM8v7RpMPvvoG VYP5jGuCpvuGRbTPljtwSoBUuSWsIuoZuhjZYHeDodz+nHPUNs3v+5yd3i4Xz3G8ReRd IiuGi97Ph2UphTMxoy5NYDD5YvIV+BwagVUqadQF7BJeaZQ2puC6YZVkj93EdFQTbeet j9bYmh/hn1R7rXV2lW8+Dojwjfh0HVdd/sNs6n6tLEeYy9MJW3ucCLsK9XCoZAgfWNqH PxW8ttfsULAw8lDkg8cYzq9XWdBMHCl9r6AuNdpykXxXi336mEdJJu6G9RsT67sOryqU l+Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=raCqmEuS; 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 j3si14697636qkg.120.2021.07.12.14.58.57 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 Jul 2021 14:58:58 -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=raCqmEuS; 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]:38220 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m33x3-0006py-Gr for patch@linaro.org; Mon, 12 Jul 2021 17:58:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50776) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m33ty-0000i1-Ff for qemu-devel@nongnu.org; Mon, 12 Jul 2021 17:55:46 -0400 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]:41960) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m33tw-0006uL-8j for qemu-devel@nongnu.org; Mon, 12 Jul 2021 17:55:46 -0400 Received: by mail-pl1-x62d.google.com with SMTP id z2so7086358plg.8 for ; Mon, 12 Jul 2021 14:55:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=/XbZAZAFUZutJ4SOP5C+rLYYfepTHI4gi5UAVTl5lRY=; b=raCqmEuSHTRoBEv3+JgQg9ZfYYg5oj4Fd8guID8cmYXV25P9/Im+VLjX6J4UfULWoY 3tCiqNy5h6fGV0rGVddRsUbt2XFzMqhtmOHVH64YCvL4x9lsXCPqD0/MvRmLIHfs7tIL zEecQjZBml8jx+5B2EeDoxQXrjXgNHHsT9KAwcy0SS/Uh22lRr5bx5pVJeC94amK/bnm CIg8rWYH+tGu08qyrHIWmADP8z8wBP7u7pAW+OS7EJLCZP3AiUvJ4SqyJYdBDc73/qRs 38Bd14mvr956X8Lypts5MLR6mqh1J0stHvWZiztbSQIcC8e2riC52Si4Sw44XMslTdGD tAoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/XbZAZAFUZutJ4SOP5C+rLYYfepTHI4gi5UAVTl5lRY=; b=XN3fEaefra2tdPIrXPAUeD+Y8NIfxcIsyp22+kJqoXWz1/lLWszuUwW+vVhraFMvs4 MrFvv7j1fbkVUk9Lt4Jugm9Ayv41boUR+8TnCEzjcKtJ9DDO3MUE5GfpfEzhSvsSAtLw RwQ/gEYTqUggcZvajztTQ9KORpVrOFM/F4dtIB898AO5PORncvYK2Xbzuvyr+gtkgZKx ZYdbsL5tHPoA0V2dcc0RhiSdVnrJMsazC3F0hcgHI9VlIV9PVulEmsczUrrTtB2Ec4Tk 67nzVbp+KvSVzxijYTL7II9HI8Xk+aEviV/eHbQ3pIeI0F/NW8pbVCoT9Nd/EpFNWbz1 UmKA== X-Gm-Message-State: AOAM532u3veS7zcfcU0KVAtAvbWCOQFG8RJDu+FvuSQZo6LmZZ8mTGvT /tOWlceQEnTOge3hjOFkRL6mFuhw5sORrg== X-Received: by 2002:a17:90a:5889:: with SMTP id j9mr979309pji.234.1626126942828; Mon, 12 Jul 2021 14:55:42 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id d2sm376932pjo.50.2021.07.12.14.55.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jul 2021 14:55:42 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 09/11] tests/unit: Remove unused variable from test_io Date: Mon, 12 Jul 2021 14:55:33 -0700 Message-Id: <20210712215535.1471256-10-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::62d; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62d.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=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: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" >From clang-13: tests/unit/test-iov.c:161:26: error: variable 't' set but not used \ [-Werror,-Wunused-but-set-variable] Signed-off-by: Richard Henderson --- tests/unit/test-iov.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) -- 2.25.1 Reviewed-by: Philippe Mathieu-Daudé diff --git a/tests/unit/test-iov.c b/tests/unit/test-iov.c index 9c415e2f1f..5371066fb6 100644 --- a/tests/unit/test-iov.c +++ b/tests/unit/test-iov.c @@ -158,7 +158,7 @@ static void test_io(void) int sv[2]; int r; - unsigned i, j, k, s, t; + unsigned i, j, k, s; fd_set fds; unsigned niov; struct iovec *iov, *siov; @@ -182,7 +182,6 @@ static void test_io(void) FD_ZERO(&fds); - t = 0; if (fork() == 0) { /* writer */ @@ -201,7 +200,6 @@ static void test_io(void) g_assert(memcmp(iov, siov, sizeof(*iov)*niov) == 0); if (r >= 0) { k += r; - t += r; usleep(g_test_rand_int_range(0, 30)); } else if (errno == EAGAIN) { select(sv[1]+1, NULL, &fds, NULL, NULL); @@ -238,7 +236,6 @@ static void test_io(void) g_assert(memcmp(iov, siov, sizeof(*iov)*niov) == 0); if (r > 0) { k += r; - t += r; } else if (!r) { if (s) { break; From patchwork Mon Jul 12 21:55:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 473149 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp3349323jao; Mon, 12 Jul 2021 15:04:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylANMcJxoxtltTBvj2PzvoqAtfcO3kLx2/HLtvWPCP6yYY/zL216OZfx05Dgp/2jTSVprt X-Received: by 2002:a17:906:1b16:: with SMTP id o22mr1390460ejg.293.1626127485578; Mon, 12 Jul 2021 15:04:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626127485; cv=none; d=google.com; s=arc-20160816; b=wBzbBrbQXDB3qtG8aGE1OVMAM7UByy5zPYLZKES/ILxXASXZaGpn7i5cnPs/5KZ9op iMMkMM0StBDTnWfpMVkX4WUIHtPLs2JzEcyti47j3ajDjcKtzEjdbS6vFIhgW1dFBRya syNxO+7Te9NeKjuTQ1ZjDRi+9FODYxhNUGST8vZgs00TD4WAxF8EOFtAB8N78bnYAtcE ADRTE6/bjRWYTzfEKu9QW5dviH/ORG536E+JhLHQQRZo/U2OLrI1BnhEmoz8dMagBPqv IVCggOyXdruSb341yA5ozrjFzy7wIitLv6S6XLNbsBHqdxTfPtSuSB7utAT9dXx6UrGi 7YHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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=m7emFn9ZXxGGMcBZFosB1EnmF9R96t2zGLMZbzq44mc=; b=gcw0NgCulR9Vj0+SMtfXGemJm540r7AlK/Q8dtwhye5pWfl/sNnWpEbWl7UsyQwDif geBvdMpbBjoizBbrW1ZRBm6vbwDBKxna1oaCOoQokYvaBMvDyuUfmHS5XI6XDsyHxhK/ /iwsD2lxX7pxYjuajhtwrqiPgfLCZFbj5Y5m8sA6NM7uU85wMOl7KN7v4Q9qXcUT7CkL ShP6CoM/rPzLOHlMTui4Fzi5asEAUzcjOysa4tGP1I8+FNvauHBdbQWkujH4tfr6/PDg WkGfZLmhJ7VABPaeIy1u9/kQEzodRwW+t9Eo+pefn+0q5nJvJZemlvP76iF64e72NsAO mGxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="rxNTD/co"; 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 j22si6353193edr.518.2021.07.12.15.04.45 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 Jul 2021 15:04:45 -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="rxNTD/co"; 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]:48902 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m342e-0005ig-K5 for patch@linaro.org; Mon, 12 Jul 2021 18:04:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50788) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m33tz-0000kv-7U for qemu-devel@nongnu.org; Mon, 12 Jul 2021 17:55:47 -0400 Received: from mail-pj1-x102e.google.com ([2607:f8b0:4864:20::102e]:38750) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m33tw-0006vA-OE for qemu-devel@nongnu.org; Mon, 12 Jul 2021 17:55:46 -0400 Received: by mail-pj1-x102e.google.com with SMTP id me13-20020a17090b17cdb0290173bac8b9c9so143788pjb.3 for ; Mon, 12 Jul 2021 14:55:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=m7emFn9ZXxGGMcBZFosB1EnmF9R96t2zGLMZbzq44mc=; b=rxNTD/co5NHhu5YAUrO/4/3Q6zmq5wj1krlkzCno+nne0/ipSHG0K/ycuc0vCcEg22 /yvZwjVZQo36lgaJiYiuy7opmBQMwI9a/2KK43qbqVsiehBLNdseNKpSoC3neWC6vErJ bFGB+sb2l30hqigiXYBHpnAya6yWoQwsejs2EFNb5Cj3npC32sE5n4+xu7MCx+ol4h1c boNSoY31FvdpeWY/YJXvNUhUuUDowrIE+EDsOUFrt/xJOalgaheaVBXWggRRK820oH1B eWa84HO8OC7vdMUtAq89eZzkc77iuu3l7Ake8hYt6VF5V2kt2FtEgiXslbfL4qgXAZ9d 8bOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=m7emFn9ZXxGGMcBZFosB1EnmF9R96t2zGLMZbzq44mc=; b=g0e1QodO9uK6Ifrw5Rc+derBFLScwWg58xn537BhRjGRjsUs7JzVt/1VfUwFHk1HJ6 Gj6YHOLsNv7cmldpyZyW49m2ujDEzOVHEiEnPtJG145YWxswgG7ULNjpqkO5dGsCFKXl k0HOPsfie2EJ10DfIUuqVL7b+rrbj5DCuAVzaQjQ+cKjVHVl1dCCwVx6C04oQ6CsIXWp zo6/rqEpP1sHHfX9TZtAG/+2H8rN9DKJI6sLi/47ERWMBCn7uLm4HYIrTSHAsGIKkq6s mvbl/1EEspISz1kcWMITOvlomzISM2d4JX1/1+y0MR1fO4u1vcKoQGmhNy3kbBz44NWZ 7AOQ== X-Gm-Message-State: AOAM530XLwESUKNpqI4YXhFVBsSNYzIeCiF29CiU+mxFRDhQ454qj4ov eRSTQuSZlLJioKUGpjC/z9RNpcf/38xrPQ== X-Received: by 2002:a17:90a:1de3:: with SMTP id v90mr934918pjv.219.1626126943457; Mon, 12 Jul 2021 14:55:43 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id d2sm376932pjo.50.2021.07.12.14.55.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jul 2021 14:55:43 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 10/11] tcg/ppc: Replace TCG_TARGET_CALL_DARWIN with _CALL_DARWIN Date: Mon, 12 Jul 2021 14:55:34 -0700 Message-Id: <20210712215535.1471256-11-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::102e; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102e.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: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" If __APPLE__, ensure that _CALL_DARWIN is set, then remove our local TCG_TARGET_CALL_DARWIN. Signed-off-by: Richard Henderson --- tcg/ppc/tcg-target.c.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.25.1 diff --git a/tcg/ppc/tcg-target.c.inc b/tcg/ppc/tcg-target.c.inc index e0f4665213..2202ce017e 100644 --- a/tcg/ppc/tcg-target.c.inc +++ b/tcg/ppc/tcg-target.c.inc @@ -25,8 +25,8 @@ #include "elf.h" #include "../tcg-pool.c.inc" -#if defined _CALL_DARWIN || defined __APPLE__ -#define TCG_TARGET_CALL_DARWIN +#if !defined _CALL_DARWIN && defined __APPLE__ +#define _CALL_DARWIN 1 #endif #ifdef _CALL_SYSV # define TCG_TARGET_CALL_ALIGN_ARGS 1 @@ -169,7 +169,7 @@ static const int tcg_target_call_oarg_regs[] = { }; static const int tcg_target_callee_save_regs[] = { -#ifdef TCG_TARGET_CALL_DARWIN +#ifdef _CALL_DARWIN TCG_REG_R11, #endif TCG_REG_R14, @@ -2372,7 +2372,7 @@ static void tcg_out_nop_fill(tcg_insn_unit *p, int count) # define LINK_AREA_SIZE (6 * SZR) # define LR_OFFSET (1 * SZR) # define TCG_TARGET_CALL_STACK_OFFSET (LINK_AREA_SIZE + 8 * SZR) -#elif defined(TCG_TARGET_CALL_DARWIN) +#elif defined(_CALL_DARWIN) # define LINK_AREA_SIZE (6 * SZR) # define LR_OFFSET (2 * SZR) #elif TCG_TARGET_REG_BITS == 64 From patchwork Mon Jul 12 21:55:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 473150 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp3351220jao; Mon, 12 Jul 2021 15:07:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxB4EDVL1MfE6D8B5C/i3cHDtpGyRK+R3gcKOnT9cYLzPJpu49TEfNvIu+6eHWMW+DlgBv/ X-Received: by 2002:a1f:3a55:: with SMTP id h82mr1307243vka.16.1626127637158; Mon, 12 Jul 2021 15:07:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626127637; cv=none; d=google.com; s=arc-20160816; b=wp08XN4683YFJSocIgBPWM697YS8Gom6UJw+ZrhnnZ/wwgh5b3zz45ivrl8r61FxpF Pm5cuxvdftk2t7E2HTdIpHXXZExjmWUqVpmlz4C08YWbQVfiGp5oiEVBuxkRE2l2BljY 0CTDqSeT7nUEHLhHuZDclv/xyxjZE+zMhxM0YUpc1aQyWB1A84DolX/bfzVgK/UpUHmQ oKXh5Cp/Q2MV+dU6beJFwi+j8H/cpkFjgezmANeZzEf57YW6+4SiRMjuteWF8W5btNJR G9dVXQrTakB6K4dZ4ytM9nvcksLq9HTUvQuyIpJsG5Xhx8q/cBGU3pKvnQDR60fat3ZU aDDw== 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=0lgwAN4JLa+eJyUWPeSpGCyCJ0/V+S2YWU/Kqpi1gBQ=; b=qAoM++Ct67nkm1DSLptTrhEKhQE3cNCErbsR4RnewLzvMLYEt9gv9j2Jc5MsZln6J1 tj7OHhmrQKbtkeBv0JoiBML1z5jpncdkSFG7kKHZxRxKj4froDqGvrS/RRnQ9HipjI5Z 8ciJ6g9NPvHr7VVynjXlDE56Mfq6lY6cjj2n2tsidQfT+gd00xYBdYucriy3gpXjhcmJ 5/FBpEb8QsOOGnI+LtrvPSy/FOSfN0ZE4xjvCsL0pFUyEEITqPslJ2icxB396UIUjOpg 0PqRr6MKf4oGxhOIEUsQoeAmxdnUDU0bbbqNaPxluT2JykxhfzQF5P0TsPDYvJe8mHGq v4Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jSeeyBOO; 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 ba29si3635422vkb.55.2021.07.12.15.07.17 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 Jul 2021 15:07:17 -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=jSeeyBOO; 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]:54062 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m3456-0000kP-Ix for patch@linaro.org; Mon, 12 Jul 2021 18:07:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50790) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m33u0-0000pt-Uy for qemu-devel@nongnu.org; Mon, 12 Jul 2021 17:55:49 -0400 Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]:39908) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m33tx-0006vO-E7 for qemu-devel@nongnu.org; Mon, 12 Jul 2021 17:55:48 -0400 Received: by mail-pg1-x52b.google.com with SMTP id a2so19733511pgi.6 for ; Mon, 12 Jul 2021 14:55:44 -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=0lgwAN4JLa+eJyUWPeSpGCyCJ0/V+S2YWU/Kqpi1gBQ=; b=jSeeyBOO6E1wn6rLvdqyssZgCsyTAk6ZQMxdqWqJmQteU98MAxr5t9kgWkDGqPuza/ 9llyvUrs/Zp2s3pBP++0Sc5qqt77w3qo5Gfk7AAYD/MY2ma39xeHjLbBP7E7vf+69g31 nFYgY3Xpxh/eOWIGezyiKcQ8NxDr/me7cssZxyYSFI92VPF6XxNdoW4LPVepxi0JJcWa +c7ffaYBvJm0InMl2Qo5PAnuyBUXv+6I8A6VolEiwXH28MZW30GW4zeSdOVPWCaGUNjd UMUNs0iPGPy7MKSwYDiQnYkiBCjyGqsI+XtjWqGwI6WX6P6IYIKkXKCjsIAdIwRqeCzx 6qqQ== 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=0lgwAN4JLa+eJyUWPeSpGCyCJ0/V+S2YWU/Kqpi1gBQ=; b=rZ113owFtb4pUjv+tpj5QeKMUO0maiGVzD5sws52e1QLMrWyMF698VzWRckyXDJWEt fcTeeZoZdUipjy+sjfRaHDlBlWg9jVgUhyjFx0FXXvvl+XfH3WQVjJDRYBqX69Ae9DKI LsMp+2ce5SqMRmFQGXtXG/A7zHe0OXaDLMi0J5Bssi3Vo7UYjdTVKZ/ksFK2CswBvXtw dWpX0DfZ3ZfTcisOCxY26xzei10ZU4aQa9dWuE6Ujf7E0FbTUXJ99H5VPH57E9A33YMY vtF6E0SY5GGgPdYe4TrcgOvn98z0i6VIq1s+osaVilcrdTeVfzpYmUXeX5tL/VwX9cYg V7jw== X-Gm-Message-State: AOAM532J+5Q0yH5TB9Ima5hBgWT8ctlwwER4gDMFK7vWc0ZV0yMrOzLd SsjfqNCS0ljEWDgIpUb7MNlaUhRpEwOVpA== X-Received: by 2002:a05:6a00:1805:b029:328:4602:4dbb with SMTP id y5-20020a056a001805b029032846024dbbmr1074161pfa.45.1626126944025; Mon, 12 Jul 2021 14:55:44 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id d2sm376932pjo.50.2021.07.12.14.55.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jul 2021 14:55:43 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 11/11] tcg/ppc: Ensure _CALL_SYSV is set for 32-bit ELF Date: Mon, 12 Jul 2021 14:55:35 -0700 Message-Id: <20210712215535.1471256-12-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::52b; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x52b.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: Brad Smith Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Clang only sets _CALL_ELF for ppc64, and nothing at all to specify the ABI for ppc32. Make a good guess based on other symbols. Reported-by: Brad Smith Signed-off-by: Richard Henderson --- tcg/ppc/tcg-target.c.inc | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) -- 2.25.1 diff --git a/tcg/ppc/tcg-target.c.inc b/tcg/ppc/tcg-target.c.inc index 2202ce017e..5e1fac914a 100644 --- a/tcg/ppc/tcg-target.c.inc +++ b/tcg/ppc/tcg-target.c.inc @@ -25,9 +25,24 @@ #include "elf.h" #include "../tcg-pool.c.inc" -#if !defined _CALL_DARWIN && defined __APPLE__ -#define _CALL_DARWIN 1 -#endif +/* + * Standardize on the _CALL_FOO symbols used by GCC: + * Apple XCode does not define _CALL_DARWIN. + * Clang defines _CALL_ELF (64-bit) but not _CALL_SYSV (32-bit). + */ +#if !defined(_CALL_SYSV) && \ + !defined(_CALL_DARWIN) && \ + !defined(_CALL_AIX) && \ + !defined(_CALL_ELF) +# if defined(__APPLE__) +# define _CALL_DARWIN +# elif defined(__ELF__) && TCG_TARGET_REG_BITS == 32 +# define _CALL_SYSV +# else +# error "Unknown ABI" +# endif +#endif + #ifdef _CALL_SYSV # define TCG_TARGET_CALL_ALIGN_ARGS 1 #endif