From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D6BF2C61CE7 for ; Thu, 5 Jun 2025 10:28:37 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uN7oV-0001bs-E2; Thu, 05 Jun 2025 06:27:11 -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 1uN7oP-0001Zy-QN for qemu-devel@nongnu.org; Thu, 05 Jun 2025 06:27:07 -0400 Received: from mgamail.intel.com ([192.198.163.14]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uN7oN-00053M-M4 for qemu-devel@nongnu.org; Thu, 05 Jun 2025 06:27:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1749119224; x=1780655224; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=SRhFqtGWCK1GSssH5xMCM8ZE6KbAEs42kQvs+Af0Zn8=; b=YhjxRBeKwbi5/MkPrEIxvLU1oZpa0S7Yz2JXYD7lzDLn/q+R66FOg8QO txkTEVmmtT1yqe+Z91Wq8ncUoCCTHY1bKqIozofToB+W7Tk93aCtU3tLL M3H/jEOs9erDARQkGqZjFnji86iVxVeDo50lMSr62/xtyqXdeOWzLdWCH qy5I8mzYIiZj/fGLDA6Zj70vSqlehyxbZ7MFMjRY+Td/mSzJUnnrzUmPX SPyLFZT71M6yAVaC3txiZt9/rprttgirASYEnPh4QCP1WzbBVYz1bv2zu MNy+0gwtQRqL8fUEvE3E5G+WsMyKwOj68FsOqejQC5nMTRiMauT2Z/0XT w==; X-CSE-ConnectionGUID: 4SbPhJRDQheEGpDsk88wMQ== X-CSE-MsgGUID: p3c4nLOdR4qOE2/6Pr4zWg== X-IronPort-AV: E=McAfee;i="6800,10657,11454"; a="51325291" X-IronPort-AV: E=Sophos;i="6.16,211,1744095600"; d="scan'208";a="51325291" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jun 2025 03:27:00 -0700 X-CSE-ConnectionGUID: 8q/G9KVAQZuXtTeky78fkQ== X-CSE-MsgGUID: 4q5mFcZcT96dYt7KQI73qA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,211,1744095600"; d="scan'208";a="145808605" Received: from spr-s2600bt.bj.intel.com ([10.240.192.127]) by fmviesa008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jun 2025 03:26:58 -0700 From: Zhenzhong Duan To: qemu-devel@nongnu.org Cc: chao.p.peng@intel.com, david@redhat.com, Zhenzhong Duan Subject: [PATCH v3 0/5] Fix definition of classes with wrong parent Date: Thu, 5 Jun 2025 18:23:06 +0800 Message-Id: <20250605102311.148171-1-zhenzhong.duan@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=192.198.163.14; envelope-from=zhenzhong.duan@intel.com; helo=mgamail.intel.com X-Spam_score_int: -44 X-Spam_score: -4.5 X-Spam_bar: ---- X-Spam_report: (-4.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.128, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, 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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Hi, This fix definition of some classes with wrong parent. Used below script to get a list, hoping all are addressed. find "$directory" -type d \( -name "roms" -o -name "build" \) -prune -o -type f \( -name "*.c" -o -name "*.h" \) -print | while read -r file; do awk '/^(struct |typedef struct )/ { first = $0; getline second; getline third; if (first ~ /[Cc]lass/ && !(second ~ /Class/) && !(third ~ /Class/)) { print FILENAME ":" NR-2 ": " first; print FILENAME ":" NR-1 ": " second; print FILENAME ":" NR ": " third; } }' "$file" done patch4/5 are more like cleanups instead of fixes as those class_size are not initialized so class definition doesn't take effect. Thanks Zhenzhong Changelog: v3: - s/Suggested-by/Reported-by on patch2 (David) - add Closes: tag (David) - collect RB v2: - add more fixes per David Zhenzhong Duan (5): virtio-mem: Fix definition of VirtIOMEMClass virtio-pmem: Fix definition of VirtIOPMEMClass hw/gpio/aspeed: Fix definition of AspeedGPIOClass hw/char/sh_serial: Remove dummy definition of SH_SERIAL class hw/riscv/riscv-iommu: Remove definition of RISCVIOMMU[Pci|Sys]Class include/hw/gpio/aspeed_gpio.h | 2 +- include/hw/riscv/iommu.h | 6 ++---- include/hw/virtio/virtio-mem.h | 2 +- include/hw/virtio/virtio-pmem.h | 2 +- hw/char/sh_serial.c | 4 +--- hw/riscv/riscv-iommu-pci.c | 6 ------ hw/riscv/riscv-iommu-sys.c | 6 ------ 7 files changed, 6 insertions(+), 22 deletions(-) -- 2.34.1