Message ID | 20241105224727.53059-22-philmd@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:6307:0:b0:381:e71e:8f7b with SMTP id i7csp241145wru; Tue, 5 Nov 2024 14:54:04 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUMfxWBaQm6DBfYOPHA2vw6MrGtDmzDtg1FWlvHzymRUSVNKmy/IW7weYF3ros3U3XhMUfULw==@linaro.org X-Google-Smtp-Source: AGHT+IGv7GB5AR+ALO042q/l9Tdf/zyBbyaKcbELjzWwv7apz0YZEKUb826VL75H3uVq6y/3Fz3E X-Received: by 2002:a05:6214:498a:b0:6d1:8ae0:4b45 with SMTP id 6a1803df08f44-6d35c0a24f8mr276234566d6.8.1730847244036; Tue, 05 Nov 2024 14:54:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1730847244; cv=none; d=google.com; s=arc-20240605; b=R8ueOeU/Orrct+FH7ORDwCwW77Ysvc2Mdyt2MIJXTyocAdLde94m8gpa3kK3bV3LG0 e0OQOdk/FBN1hnDbsa3tjF07XRUZswlH1x3UkazOibflM8JmQQmoRcWnjsJuEmcSWtDZ /Azs9OxjtOJhMbnonUoZ5X0eETv46bAUShRyXaKa0dO3X273ddYcXb28qwEt8UHG68vV xJGXCGZQOm7FTqd0kh5eBBQ8DSRXtNH1LeifoHJdisompr3Yuj+k0dXIma+lPNm1aCO9 szdyQpCJyrRo6bo9iCluP/YM81KtpHbu9HC02OEEmCU2fzK+J1opYr6Og72amgj9Cuvc vmrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=aEfnTilVurA0fFYJxE8yf9x0TGhAiI0Ndz7fmD4ll1I=; fh=AUbIe/x05OB54MpDx0J1ZtOu3YJ9qKm4HFGYPvj71BQ=; b=kHtz31WuNHsFoeK15sGTlfv1ZU+8OLwaY4u4+5vmYy2WoJVBI5FltzdpVyzN1wcpmg VZuZalgSnJvS9tQbIFs/iXbyPMlX0CpS7ugvjg6RAkfmAeCuo5CD9J9Cn9+8n7evUjPt FEShoCqeFefdvgR+FiXX4LgQ/3up2CGU581v9UztsxF2ELFyKQIKU2ufpfgTz4RuwkJE EeOCu21mgxW4HATU9224OB55HF60k6fNHRf2wvyHCZVDC7CSlJ1D4DJeG4Pu4cblutw1 r4NTNSJEfjjgZ/gF1PzH7iHNwX5h9wGsRarqQgkx8lCJzkGR7gD7tDJ/C9bZ3szLF5dB G+5A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ADWKX29W; 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; dara=neutral header.i=@linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6d35417e0b9si143861426d6.335.2024.11.05.14.54.03 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 05 Nov 2024 14:54:04 -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=ADWKX29W; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1t8SMg-0008Ke-6u; Tue, 05 Nov 2024 17:49:34 -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 <philmd@linaro.org>) id 1t8SMX-0007RO-TD for qemu-devel@nongnu.org; Tue, 05 Nov 2024 17:49:26 -0500 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <philmd@linaro.org>) id 1t8SMW-0004Ov-AT for qemu-devel@nongnu.org; Tue, 05 Nov 2024 17:49:25 -0500 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-43155abaf0bso53246935e9.0 for <qemu-devel@nongnu.org>; Tue, 05 Nov 2024 14:49:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1730846963; x=1731451763; 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=aEfnTilVurA0fFYJxE8yf9x0TGhAiI0Ndz7fmD4ll1I=; b=ADWKX29WiXKWf1Hwg5l+q5lkmqq6uVvaMuiyUEBMTnYgaQDG16dMhRL7NiU54q544U CWuKne+HKW4l1YrhQ4S4v3hlvK6XEVvIzjvDNEqRlnYYViMQEOJIU6hTuMQOL6tHOO2J 8xXLYx+GdhxvnZZ9xephqvfFaWZ4XQOOmtPyzJft4OVpWxO2K79Zrc17tn+3pXa4N9yi gOSg0Bl/qXt80DRVU0Sj99MG26mRQMzec+uPro1lduqdSjX6SV+ibYCpn0NsxkJ1gXl3 YcrkTqgA/4lUF98x0evMKkHIOPjHoDkMoP16NQcRSVhRe8haqEySFPEz1F1Nfe5rjb+e ziPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730846963; x=1731451763; 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=aEfnTilVurA0fFYJxE8yf9x0TGhAiI0Ndz7fmD4ll1I=; b=eLnoarm08tDKlrkSk2suMt96spoVHfJxLV4n0UCGTI52Dl4mNW6pwzlbgSWExOqEBm 1kilPHwlOvJoLz5w0cIcp1FWhxthSpqFEK/kgVQ25SjeZ6zBL6pAynWizCiBR4nh7pmZ MCHjo0wRZp808RIbDoqY9SKgQngvu+PuNmpIea9/9pYZeCgKJ8mQPmQF9ykD3mDpqGFZ IXYczd35+Gv60q2BkjC31mvb+lc0RMV5oO6ay0BXZ80dqyPKPF256OJMEAJPiIeKJGgk QkU/vSgiGB/tw0qNEtfnerHIqPTwHachALY5hPH161gzN4T11QcKYH1U4VAm7ZhcMZKU XIrw== X-Gm-Message-State: AOJu0YyhfU1JBu+jjwKUvvC5wJEKwKkKgeCfJYH4DyXTX1asKHxrr0Hx sZoKXF8hMJOYOeFLTrL1JSO/oBzBSq1WWgVsKr2Ln9PJlPnxToIGqdTcO9lRX7dIqWkA2x5kk+k iuYnmww== X-Received: by 2002:a05:600c:3b8d:b0:426:6edf:6597 with SMTP id 5b1f17b1804b1-43283255a89mr139364135e9.19.1730846962660; Tue, 05 Nov 2024 14:49:22 -0800 (PST) Received: from localhost.localdomain ([89.101.241.141]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-432aa523a0esm1358135e9.0.2024.11.05.14.49.21 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 05 Nov 2024 14:49:21 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> To: qemu-devel@nongnu.org Cc: Bernhard Beschow <shentey@gmail.com>, =?utf-8?q?C=C3=A9dric_Le_Goater?= <clg@redhat.com>, =?utf-8?q?Philippe_Math?= =?utf-8?q?ieu-Daud=C3=A9?= <philmd@linaro.org> Subject: [PULL 21/29] hw/net/fsl_etsec/etsec: Prefer DEFINE_TYPES() macro Date: Tue, 5 Nov 2024 22:47:19 +0000 Message-ID: <20241105224727.53059-22-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241105224727.53059-1-philmd@linaro.org> References: <20241105224727.53059-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=philmd@linaro.org; helo=mail-wm1-x334.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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
[PULL,01/29] target/microblaze: Rename CPU endianness property as 'little-endian'
|
expand
|
diff --git a/hw/net/fsl_etsec/etsec.c b/hw/net/fsl_etsec/etsec.c index 3fdd16ef2ee..d8076e7be48 100644 --- a/hw/net/fsl_etsec/etsec.c +++ b/hw/net/fsl_etsec/etsec.c @@ -36,7 +36,6 @@ #include "registers.h" #include "qapi/error.h" #include "qemu/log.h" -#include "qemu/module.h" /* #define HEX_DUMP */ /* #define DEBUG_REGISTER */ @@ -431,17 +430,14 @@ static void etsec_class_init(ObjectClass *klass, void *data) dc->user_creatable = true; } -static const TypeInfo etsec_info = { - .name = TYPE_ETSEC_COMMON, - .parent = TYPE_SYS_BUS_DEVICE, - .instance_size = sizeof(eTSEC), - .class_init = etsec_class_init, - .instance_init = etsec_instance_init, +static const TypeInfo etsec_types[] = { + { + .name = TYPE_ETSEC_COMMON, + .parent = TYPE_SYS_BUS_DEVICE, + .instance_size = sizeof(eTSEC), + .class_init = etsec_class_init, + .instance_init = etsec_instance_init, + }, }; -static void etsec_register_types(void) -{ - type_register_static(&etsec_info); -} - -type_init(etsec_register_types) +DEFINE_TYPES(etsec_types)