From patchwork Fri Jan 19 11:34:55 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: 763937 Delivered-To: patch@linaro.org Received: by 2002:a5d:4a08:0:b0:337:62d3:c6d5 with SMTP id m8csp399691wrq; Fri, 19 Jan 2024 03:44:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IEVbC46QB200sSgLMukusK4Biacga5sXjHjECyVUs/9F7ilfDC55Zpt5u7+Fl4Dw+8tufjC X-Received: by 2002:a05:6214:1c8b:b0:681:14ff:3e82 with SMTP id ib11-20020a0562141c8b00b0068114ff3e82mr2406790qvb.41.1705664643977; Fri, 19 Jan 2024 03:44:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705664643; cv=none; d=google.com; s=arc-20160816; b=PoBso8YojlVUhuLbpVA+OAgh+523Y/GHR1g/P4Xx4Y0wkwc7KjteVlvK4EwO44o98f dPIPUa4PPI1+J6DT+Fmpczx7AloL2r2bXumpYKlxuotDYwxzfAM4zADnhu90cPO6cptR xPq6dFeQ/dYP9VXaRa399y8/qEdlgueEu45zKmtUDph1feHfNMDc9vrrr7O+DRBN7oGl TtSzINMtmeVmzHOrnN/REbVjQUY9GjXLtaHOKeQiJXXWsEkyUm+G5/p0ZOBCxDxUYhzg 3OP9bV4zBdNCGOmUErY3t7k05CI5/GvCiuzwag9SVrQGrfB2gQpIPHI08TQUIIyB2Bd1 AzNw== 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=A62n8Zh8RpmMErwo1MEyf8UlsAdx9GAivnN08aL/XMQ=; fh=XLakvtB6oC5IMcaqtPCkqGbS478DvU9x3LtFcAk/a0g=; b=Y3AvQlJaVBUKbztjVXsVKIPqdPc/p+6+Ivr0JEf/AnKvncGGj5kd89L6bHp8vdz+3V nhpEHoMoZlpSeI0AngphrxL/T1vbe1+HHTehKlRrSLQVTUJ2N4tZ9wuLW7FQl912hYL3 3/MY8ftC1NtWcEBhG8ZYa4ypXouErMcaFHt9MUJpgW8ptqgoI6RjSyMKKQGOwFG7lwF4 BV/EgWrl1GkhJpLi8/AWPKS8gaWDOMvaa/0IcagNNkxsm419Xt5MX2ZGyRwXiX9F6bc/ EbXRjQVpLNE4SQ1TbVlSkOvJnNlYmJyZcwBwNlyNHxxURfBqrCdGspjWbbsQpcLk6qiH kwXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eiUOTzRx; 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 f20-20020a0caa94000000b00683be6701dbsi811990qvb.76.2024.01.19.03.44.03 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 19 Jan 2024 03:44:03 -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=eiUOTzRx; 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 1rQnBW-0005St-Lw; Fri, 19 Jan 2024 06:37:18 -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 1rQnBN-00055G-Qk for qemu-devel@nongnu.org; Fri, 19 Jan 2024 06:37:11 -0500 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rQnBL-0002wm-9q for qemu-devel@nongnu.org; Fri, 19 Jan 2024 06:37:09 -0500 Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-337d99f9cdfso466033f8f.0 for ; Fri, 19 Jan 2024 03:37:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705664225; x=1706269025; 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=A62n8Zh8RpmMErwo1MEyf8UlsAdx9GAivnN08aL/XMQ=; b=eiUOTzRxxJhCL0AtVbS+3pkyib0S8oN3qJuJU9cAOpzky0vokNRM4MF4JkghJ5CM+1 sOWQMBjr1jHAOtOG9yP4K/T6NIfIukxVieXTtusZG3svU2YvafRSzayMxqcyKMvSD4SK FxALO+Dn8OFGlAXmAK5DvIlPewQWT0y7auz1qCJB20L6Kolqz0tiV6nemk3SuVJxdMLm OjRR7MaGcrjC/Dp1ys/FdiVbc1SMudzuRwUu9ZEpKTUmIgM3EcfSKJMxYuZofsPHM26l SbmnzrWV7i0a8oEauHLmUp7e3ODHmVecmWEufNQpkcHZVUdYzKjPuNym7oItk8GRua5W uINw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705664225; x=1706269025; 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=A62n8Zh8RpmMErwo1MEyf8UlsAdx9GAivnN08aL/XMQ=; b=Fbjd9ejGvOAUt0nDM5igg1ljmWr0tdpW93J6Dmh885rTzsaU06EqNcdrYoa2sOFh0j IaSmwGGSQxw3rGQXXBeGQjpKA+tMQ741LmPH41R3bclkE8FWriOOIuFTyI1MqICDEwby ADWbgVqFjNtXIMJgS6JwDsua4mu8iEAJWW/P1MWRrCOeB6CLiRT8aYHXSZOA9RKtCCND wdSQrmd2QkodVlC3LyGXjep5iRwGBcwNIdM31TpY0HlyCfIE9eJMqjHX4c+phkcfJ8Ej Cw9PNtHEu0EUTVlW5VWGTWqwt16EIgL/0heY7YRHpVP8puDMp/m82bWVTSumEAVYbq/m 0hTw== X-Gm-Message-State: AOJu0YwnsQHrySmejIi0pNEK2xZQHIXFyPKJyh0snlfubHGK8e83HVVD 24kg8upc+bkGbZIh52i6uKsRpOgbzANMFSfljSM7d/MFhp7up0AyloWVAAN/ZVNQD0htIsYYPvA mniq8iQ== X-Received: by 2002:adf:e610:0:b0:337:aeee:4bae with SMTP id p16-20020adfe610000000b00337aeee4baemr1442716wrm.47.1705664225789; Fri, 19 Jan 2024 03:37:05 -0800 (PST) Received: from localhost.localdomain (91-163-26-170.subs.proxad.net. [91.163.26.170]) by smtp.gmail.com with ESMTPSA id x16-20020adfdd90000000b00337d6539d52sm2974212wrl.18.2024.01.19.03.37.05 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 19 Jan 2024 03:37:05 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-riscv@nongnu.org, qemu-s390x@nongnu.org, qemu-block@nongnu.org, qemu-arm@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Thomas Huth , Eric Farman , Halil Pasic , Christian Borntraeger , Richard Henderson , David Hildenbrand , Ilya Leoshkevich Subject: [PULL 26/36] hw/s390x: Rename cpu_class_init() to include 'sclp' Date: Fri, 19 Jan 2024 12:34:55 +0100 Message-ID: <20240119113507.31951-27-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240119113507.31951-1-philmd@linaro.org> References: <20240119113507.31951-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=philmd@linaro.org; helo=mail-wr1-x430.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: Thomas Huth Reviewed-by: Eric Farman Message-ID: <20240111120221.35072-4-philmd@linaro.org> --- 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), };