From patchwork Mon Oct 9 09:47:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 730971 Delivered-To: patch@linaro.org Received: by 2002:a5d:574c:0:b0:31d:da82:a3b4 with SMTP id q12csp1116208wrw; Mon, 9 Oct 2023 02:51:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEdDtUTPIzuUtRQqRFLENjbOue2AlBj27qKOMysp1PMP1877kRVFH19sjcli3JwJFeU8l95 X-Received: by 2002:a05:620a:2add:b0:775:c0e4:aea4 with SMTP id bn29-20020a05620a2add00b00775c0e4aea4mr15149681qkb.66.1696845063497; Mon, 09 Oct 2023 02:51:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696845063; cv=none; d=google.com; s=arc-20160816; b=uuiyca8MiLLUAgpTcuN8Ai2zt/2s7YbXN3/YlEEumULySAeGX5R2nHnsq+mfuxurOj ehzVhUnlMSjY6t53RJR2wJaVNWRmFbzEw/SMRSzAcBoRWNYDKFXyXG9gxKSmHRANduRt eveuvVjod3TbbyWz1RVWQlLDCJtTcq/MTnqAnR1sRXPkh+rfUlgC3XQyfzd2ruGD7Ed+ hluGn4GS4wVCrOd8FeIWzZW1kiyCeMsvRyFHu40A8z/nM62fkq0EfslqPIrsGsR3cTki 7k8qN6M/4huDCMul1DFibuY5bY6LkdAXvQDHTyOa67IWQ3WaNWEsOPujqwgs0Z2aYfh6 BE6w== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=T4fpU9odqLdziVyYcEoCfkSrQnPbcJJ4w0phvrCeBiE=; fh=n4SzPhYKXn8xRxTgdSQ5YZq0XW28GvXJqV224ul7a6o=; b=T7k+cfv7Ev+Vlg/rGTRBw7cloVLsutAXN7FleWOIx1zat5kgR/RNen6COSAI3qXG8T Wre7tniboKlPZzJlOrpAVARZCmW7+GwnsYvYPKDP/zSfp1z/3TzJTjwilbq7kqT0AhTI 6bP1QjeU2aqRrkf3+wewqsEalB1nAy5ZjssMf7vrn5iG4nDwGiwzGp5MRl+PNsrlDvAq jZGl+jNZi3ETvKhwWqXrpgW679E5xc+jC0gAiZLOoK/WF8h7JHaRvXfqouZl8whdIvbs ZhLjG+bczlC+5DXgUdfmnkav4JaAa+7+9E0gDCnQn+14/tGny6R5EkmpsWog1dU7yR9C lIog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mVxc8mNX; 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 v2-20020a05620a440200b00773c0de5682si6132542qkp.677.2023.10.09.02.51.03 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Oct 2023 02:51:03 -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=mVxc8mNX; 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] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qpms4-0001mS-Lb; Mon, 09 Oct 2023 05:48:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qpmrh-00019W-VE for qemu-devel@nongnu.org; Mon, 09 Oct 2023 05:47:58 -0400 Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qpmrg-0005un-Au for qemu-devel@nongnu.org; Mon, 09 Oct 2023 05:47:53 -0400 Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-5334f9a56f6so7408925a12.3 for ; Mon, 09 Oct 2023 02:47:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696844870; x=1697449670; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=T4fpU9odqLdziVyYcEoCfkSrQnPbcJJ4w0phvrCeBiE=; b=mVxc8mNXtx99yIXZfZs/RlxZN8smhFRvsQ0y2Rhs8mRHeFIEiz5+4iSilEyKo4Vi7Z M9uQ10KWcBcrMA3T7G+8x2kEjHIn8FY2Sbtawh0COq3P33VX8WeZHtZoAhE0o6EuAAC1 hQLlW7XlXETE+/EIpbWnDdmcqp97srb2pNcCv3IqmigwctQfa4/k4u7NGxxm+uHEWroy Daw9K/cerIGcL613ySYMSMC19z/5NziNhtfkkhgzBAeOFp4JDcvsdUcuDyABmS1mckB8 tFlDauNST72MN9eWAmUGP5+al62h2r35hhW42F/cRzz7frL4Uyjsgu2lKuq/hLQBpwsU J7kQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696844870; x=1697449670; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=T4fpU9odqLdziVyYcEoCfkSrQnPbcJJ4w0phvrCeBiE=; b=uHnjYT6k/uMlpNjsJpnttSBqMW200NJzsYKajrXIEFGSF7a+Ms3aBdfbKiwfpXNRM7 2EYkZFF7yWvymQWGi5ttzxy/S1vef5r64Qt+MqO5zB7mBvslIGewggxQGomUQEwsveu0 ypibHZwDtA/yTAON1H9ShXnMAn8hLNdCz8lKfIHrOUyRVGfEiFdl01uCaiqCPXD5d+pJ COKGPzRQ1C7yuOQfWjxDQmqF31+uYSszFBVn/oTfXzNrzgvafb5orRksCSr/IdBFHR7M /Uk25IgFflkuY8ph4RCl6ZFrlmyU/vIPUKOPpE0wiMz1zCgcPdSDI8vQFKHHdZS7wZuW OHDQ== X-Gm-Message-State: AOJu0YxN6OmgdthzW8wk/4FgZ5ig153ll/WYTLbNb5EUfJpUKKr6lWW9 1ugIpygLov5PuVjJfga4T7vaj/7QynWiLd9EkKY= X-Received: by 2002:a17:906:10a:b0:9ae:3e2f:4d00 with SMTP id 10-20020a170906010a00b009ae3e2f4d00mr16393095eje.70.1696844870374; Mon, 09 Oct 2023 02:47:50 -0700 (PDT) Received: from m1x-phil.lan (thr44-h01-176-170-217-185.dsl.sta.abo.bbox.fr. [176.170.217.185]) by smtp.gmail.com with ESMTPSA id g20-20020a17090613d400b009b96e88759bsm6730417ejc.13.2023.10.09.02.47.48 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 09 Oct 2023 02:47:50 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Eduardo Habkost , Christian Borntraeger , qemu-s390x@nongnu.org, Paolo Bonzini , Ani Sinha , "Michael S. Tsirkin" , Igor Mammedov , Yanan Wang , David Hildenbrand , Eric Farman , Richard Henderson , Markus Armbruster , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , Marcel Apfelbaum , Thomas Huth , Halil Pasic , Gerd Hoffmann , Ilya Leoshkevich Subject: [PATCH 0/6] hw: Clean up global variables shadowing Date: Mon, 9 Oct 2023 11:47:40 +0200 Message-ID: <20231009094747.54240-1-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::52d; envelope-from=philmd@linaro.org; helo=mail-ed1-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.29 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-bounces+patch=linaro.org@nongnu.org Clean up global variables shadowing in hw/ in order to be able to use -Wshadow with Clang. Philippe Mathieu-Daudé (6): hw/core/cpu: Clean up global variable shadowing hw/loader: Clean up global variable shadowing in rom_add_file() hw/display/vga: Clean up global variable shadowing hw/acpi/pcihp: Clean up global variable shadowing in acpi_pcihp_init() hw/pci: Clean up global variable shadowing of address_space_io variable hw/s390x: Clean up global variable shadowing in quiesce_powerdown_req() hw/display/vga_int.h | 2 +- include/hw/acpi/pcihp.h | 2 +- include/hw/core/cpu.h | 8 ++++---- include/hw/loader.h | 2 +- include/hw/pci/pci.h | 9 +++------ cpu-common.c | 6 +++--- hw/acpi/pcihp.c | 5 ++--- hw/core/loader.c | 4 ++-- hw/display/vga.c | 6 +++--- hw/pci/pci.c | 25 +++++++++---------------- hw/s390x/sclpquiesce.c | 8 ++++---- target/s390x/cpu_models.c | 2 +- 12 files changed, 34 insertions(+), 45 deletions(-)