From patchwork Thu Jan 11 12:02:19 2024 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: 761840 Delivered-To: patch@linaro.org Received: by 2002:a5d:6e02:0:b0:337:62d3:c6d5 with SMTP id h2csp2357372wrz; Thu, 11 Jan 2024 04:05:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IH7W9TXbalfBD85DyRZpyWXMUSxxwX+saxpY3ueT1b2w5TrhTgzV1aaNGz9Qf2sH2fedtIL X-Received: by 2002:ac8:5c0e:0:b0:429:bbe6:450b with SMTP id i14-20020ac85c0e000000b00429bbe6450bmr582303qti.32.1704974709389; Thu, 11 Jan 2024 04:05:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704974709; cv=none; d=google.com; s=arc-20160816; b=rVkxVPbzuP/o7SjEkEZozfpezTrB3qmTGex8tFT7CeHKfXG4kl792ec7bVB1bc0Vha 0p0Q9jJjHsLabTnSPWm6VJv7cjjygRVwjaXa5Rc6zMFkcz0TurnT3w2V5IM40NQaSrU5 X/EN7QGtLz050fqvf78ph/wR0ZwB5N0g3WEZJ87F8iwHAD/+h79KIQhUkEfSKbV4OBzf 7G5e3orCTgrvmxAcHIsiwjig2zemcaerA8fiOyOdMYUA33rKA434rT+xS06zDDrkOE50 MnhqNRdBPsAVfOYN+uq5CL1LzWa2i2nEPKyoJaY7fdsbapm8QcjiDYuTJAmmx1mzW5Oc EDpA== 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:cc:to :from:dkim-signature; bh=9oDADZ7OQkBJhilNI7y3OkwoRjc/uWOL4l0/5ZjzT+c=; fh=y6r03noUWfICwPfR8EsTiKAurGXRKk6addDWsOQRxKo=; b=Wvqh/Z/PnqqmJdWgr2WAwq1Tra0DCwSnx9mhMhw673PTkS/nsggHqrkE/pkPwFiv/f 9sh2VkxN08xfrKjjIa8WvwAF676/Ec7qRjDfqDVzE8ogtVpMB0TroC2wNCqP8tv8Fxj1 9NY/UMlvilsJlz88vPqRW8Q7a++6J5+sk5os2bi3yRrs9/Ep879YT92gnadV37R6l/z5 RAVUy76d8J8LJK75OA5cfuYw9LK3/2eWl9+4kVqTorZx4aU+2gKWfT09HFks8He0KeFg a0zRKXmr3Daj8FNGlxGdB0jgj+d7VqvNfJcqa3a7qSW11NhQbOWUvQMXLK3jCFLeRy60 Z+MQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hrWEwSN3; 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 gd19-20020a05622a5c1300b00429c0f1870asi801188qtb.804.2024.01.11.04.05.09 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 11 Jan 2024 04:05:09 -0800 (PST) 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=hrWEwSN3; 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 1rNtmx-0003Lp-Vz; Thu, 11 Jan 2024 07:04:00 -0500 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 1rNtm3-0002pv-RF for qemu-devel@nongnu.org; Thu, 11 Jan 2024 07:03:05 -0500 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rNtly-0007Kn-1V for qemu-devel@nongnu.org; Thu, 11 Jan 2024 07:03:00 -0500 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-40e60e135a7so3524545e9.0 for ; Thu, 11 Jan 2024 04:02:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704974565; x=1705579365; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=9oDADZ7OQkBJhilNI7y3OkwoRjc/uWOL4l0/5ZjzT+c=; b=hrWEwSN3xaVIO1pzvQBlZOIGNyMX3cNp84yVaTPgWuGgKyvub81M0dfT2XTFZFiLTM xOULxOekq0fMLb7tH/PWhIORjYvF2DMq9qP6sPRN2Nmi9jXbCjR6t9VgGx6thsrO5y/z Hm0wjb8zk77zSfDsA3XySu47BeVAxJn6oIDT31byEVpL0c8PItuAewqX1byTV//SsVb0 lpjePB27K9f2SbR50ukwvTff/febyarvDyPfNAnfYM0nqsgnDcKsE8OndKNSzO8wIS3U 6DmwgkrqmahsQ9ON7B0gekuXBMMy/IVU+mScBZLELlz+XVS60Z4tPfqAQUwlO+qE3q35 Hv7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704974565; x=1705579365; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9oDADZ7OQkBJhilNI7y3OkwoRjc/uWOL4l0/5ZjzT+c=; b=Uva+OPSocfb8tbxPfPvbY3vA592N4fjwRuz56z2BfPX9OZxLmCfikXBY4WoAzxOhCw ZVUx5BiTAdV9hlit/vIq0NtH6AHuEDbMuADUcICxc/qGkMqoetH8GYvongg69o9xgSWN hqyGFLClx0R0EWX5pMuB1iRIcqGv12HXZkDcwHweDB1sbRInLn/ix+6DywysNT4SAQ06 naF8Cq5UVMNQdHeg6NCPMS/FytB3DryfFFkmdOP8fQIm692gcxrdJjppZip5FMg7il/Q OfPEiVEpqo3Y/oteHJTMKuUhVUPg+7j3jHIbteWMlucSGRU2sTX5mnFqBPMVi70xcmlx 0Lxw== X-Gm-Message-State: AOJu0YzdRsAnO9ldcGbozHa33eq3RIkEhe/EYm+1FhhpK9pDXKxaVCAd ODctDnLeau67d3cF0wuYQFbdDvyIVitD3SdqL3iZpCKBKH4uAA== X-Received: by 2002:a05:600c:3515:b0:40e:4e48:513b with SMTP id h21-20020a05600c351500b0040e4e48513bmr359496wmq.12.1704974565669; Thu, 11 Jan 2024 04:02:45 -0800 (PST) Received: from m1x-phil.lan (vau06-h02-176-184-43-236.dsl.sta.abo.bbox.fr. [176.184.43.236]) by smtp.gmail.com with ESMTPSA id t6-20020a05600c198600b0040e48abec33sm5550904wmq.45.2024.01.11.04.02.43 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 11 Jan 2024 04:02:45 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Richard Henderson , Weiwei Li , Alistair Francis , qemu-s390x@nongnu.org, Michael Tokarev , David Hildenbrand , Christian Borntraeger , qemu-riscv@nongnu.org, Palmer Dabbelt , Bin Meng , qemu-trivial@nongnu.org, Halil Pasic , Paolo Bonzini , Ilya Leoshkevich , Eduardo Habkost , Laurent Vivier , Liu Zhiwei , Eric Farman , Thomas Huth , Daniel Henrique Barboza , =?utf-8?q?Philippe_Mat?= =?utf-8?q?hieu-Daud=C3=A9?= Subject: [PATCH 3/5] hw/s390x: Rename cpu_class_init() to include 'sclp' Date: Thu, 11 Jan 2024 13:02:19 +0100 Message-ID: <20240111120221.35072-4-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240111120221.35072-1-philmd@linaro.org> References: <20240111120221.35072-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=philmd@linaro.org; helo=mail-wm1-x32f.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable 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 cpu_class_init() is specific to s390x SCLP, so rename it as sclp_cpu_class_init() (as other names in this file) to ease navigating the code. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Eric Farman Reviewed-by: Thomas Huth --- hw/s390x/sclpcpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/s390x/sclpcpu.c b/hw/s390x/sclpcpu.c index f2b1a4b037..fa79891f5a 100644 --- a/hw/s390x/sclpcpu.c +++ b/hw/s390x/sclpcpu.c @@ -73,7 +73,7 @@ static int read_event_data(SCLPEvent *event, EventBufferHeader *evt_buf_hdr, return 1; } -static void cpu_class_init(ObjectClass *oc, void *data) +static void sclp_cpu_class_init(ObjectClass *oc, void *data) { SCLPEventClass *k = SCLP_EVENT_CLASS(oc); DeviceClass *dc = DEVICE_CLASS(oc); @@ -94,7 +94,7 @@ static const TypeInfo sclp_cpu_info = { .name = TYPE_SCLP_CPU_HOTPLUG, .parent = TYPE_SCLP_EVENT, .instance_size = sizeof(SCLPEvent), - .class_init = cpu_class_init, + .class_init = sclp_cpu_class_init, .class_size = sizeof(SCLPEventClass), };