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) {