From nobody Sun May 19 10:38:48 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linux.ibm.com ARC-Seal: i=1; a=rsa-sha256; t=1651799904; cv=none; d=zohomail.com; s=zohoarc; b=DU4xAWiRMS9WDzO8Z6s890E+lNbavUMOtH1nwwNGndQslgfEiM+f70UMhymL3fBu/D778y5AIqGMk0hsb3ItrJgSu2sfIoAvTfvpe0kL57sPygn0Rn1AweBAQBsey4YZKKyKmEoPfbEJXI8rTzx1WpMYhmx0CvXLAH33npD/NFI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1651799904; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=oDb+HfF1kRc8sf3VFH1r5TrRxmS46BgpdaM7xPUSwls=; b=l1Uw2ixpBt8z/4iYimPMBFE6mVz84s3Bo7vLpptfMH5odUA72Qw5kmY+5wMLnSRA551p/yybwTV288kdOjVg3ephkU4PyAMIl2c3X8tJU5YWloU4pOIc4vcNxB30PLWQfZXJY0qukmuPkg50Ilv/5iaR+6WmwvUTBJ10tf2WrOM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1651799904735630.9036409937238; Thu, 5 May 2022 18:18:24 -0700 (PDT) Received: from localhost ([::1]:59046 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nmmbv-0002E2-8l for importer@patchew.org; Thu, 05 May 2022 21:18:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57168) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nmmao-0000t0-Kd; Thu, 05 May 2022 21:17:14 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:30074) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nmmam-0007kU-Qb; Thu, 05 May 2022 21:17:14 -0400 Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 2460FED9030892; Fri, 6 May 2022 01:16:58 GMT Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3fvry99051-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 06 May 2022 01:16:58 +0000 Received: from m0098417.ppops.net (m0098417.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 2461EN06008086; Fri, 6 May 2022 01:16:57 GMT Received: from ppma02wdc.us.ibm.com (aa.5b.37a9.ip4.static.sl-reverse.com [169.55.91.170]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3fvry9904v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 06 May 2022 01:16:57 +0000 Received: from pps.filterd (ppma02wdc.us.ibm.com [127.0.0.1]) by ppma02wdc.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 2461CMIi027409; Fri, 6 May 2022 01:16:57 GMT Received: from b01cxnp22036.gho.pok.ibm.com (b01cxnp22036.gho.pok.ibm.com [9.57.198.26]) by ppma02wdc.us.ibm.com with ESMTP id 3frvra56xc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 06 May 2022 01:16:57 +0000 Received: from b01ledav004.gho.pok.ibm.com (b01ledav004.gho.pok.ibm.com [9.57.199.109]) by b01cxnp22036.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 2461Gu796357952 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 6 May 2022 01:16:56 GMT Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 56346112061; Fri, 6 May 2022 01:16:56 +0000 (GMT) Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D22F6112062; Fri, 6 May 2022 01:16:55 +0000 (GMT) Received: from localhost (unknown [9.160.56.100]) by b01ledav004.gho.pok.ibm.com (Postfix) with ESMTPS; Fri, 6 May 2022 01:16:55 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : content-type : content-transfer-encoding : mime-version; s=pp1; bh=oDb+HfF1kRc8sf3VFH1r5TrRxmS46BgpdaM7xPUSwls=; b=f50dfQ6HQLQ9b8Hik7+st1ATqmd/HvopAWeBRbaRpBEIH2PyeLlWrzxthSjog8bESJRk a24V/wxzjPSxaC6eQVwZ7x0KnElP3UwOqc2oARcLdFyIKuliYpGRlyFdp4N16cdfCJcY h5xQkyVwd10BszkKOOQjtspOrayUeGDaoPqvvxwGShcE31zvc7/yXSyW9iD/otutbY/+ tugLKm28oALsQun1jKoEYi9dyQoIFakIjSyL1PKZXMWHT3HUoK7hApHYU/ZNTbWbiK90 ofPU/wZ/z1iIgn2wW5/nYOouXdzsyYejqzgKGVkU/V3c+qOhKdlZeYSKyK25z8VTM4Qj Pw== From: Murilo Opsfelder Araujo To: qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, "Dr . David Alan Gilbert" , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= , Daniel Henrique Barboza , mopsfelder@gmail.com, Murilo Opsfelder Araujo , Mark Cave-Ayland , Fabiano Rosas Subject: [PATCH v2] mos6522: fix linking error when CONFIG_MOS6522 is not set Date: Thu, 5 May 2022 22:16:32 -0300 Message-Id: <20220506011632.183257-1-muriloo@linux.ibm.com> X-Mailer: git-send-email 2.35.1 Content-Type: text/plain; charset="utf-8" X-TM-AS-GCONF: 00 X-Proofpoint-GUID: mOY6AnOX1lrdAg8dOd9E6WGAcZszdKjX X-Proofpoint-ORIG-GUID: bqXs7EyJTAt6KOwcDZZiCgHUdoLa5FFN Content-Transfer-Encoding: quoted-printable X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-05-05_10,2022-05-05_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 adultscore=0 clxscore=1015 phishscore=0 mlxlogscore=999 priorityscore=1501 malwarescore=0 lowpriorityscore=0 bulkscore=0 suspectscore=0 mlxscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2205060004 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=148.163.158.5; envelope-from=muriloo@linux.ibm.com; helo=mx0b-001b2d01.pphosted.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @ibm.com) X-ZM-MESSAGEID: 1651799905891100001 When CONFIG_MOS6522 is not set, building ppc64-softmmu target fails: /usr/bin/ld: libqemu-ppc64-softmmu.fa.p/monitor_misc.c.o:(.data+0x1158)= : undefined reference to `hmp_info_via' Make devices configuration available in hmp-commands*.hx and check for CONFIG_MOS6522. Fixes: 409e9f7131e5 (mos6522: add "info via" HMP command for debugging) Signed-off-by: Murilo Opsfelder Araujo Cc: Mark Cave-Ayland Cc: Fabiano Rosas Reviewed-by: Thomas Huth --- v2: - Included devices configuration in monitor/misc.c v1: - https://lore.kernel.org/qemu-devel/20220429233146.29662-1-muriloo@linux.i= bm.com/ hmp-commands-info.hx | 2 ++ monitor/misc.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/hmp-commands-info.hx b/hmp-commands-info.hx index adfa085a9b..9ad784dd9f 100644 --- a/hmp-commands-info.hx +++ b/hmp-commands-info.hx @@ -881,6 +881,7 @@ SRST ERST =20 #if defined(TARGET_M68K) || defined(TARGET_PPC) +#if defined(CONFIG_MOS6522) { .name =3D "via", .args_type =3D "", @@ -889,6 +890,7 @@ ERST .cmd =3D hmp_info_via, }, #endif +#endif =20 SRST ``info via`` diff --git a/monitor/misc.c b/monitor/misc.c index 6c5bb82d3b..3d2312ba8d 100644 --- a/monitor/misc.c +++ b/monitor/misc.c @@ -84,6 +84,9 @@ #include "hw/s390x/storage-attributes.h" #endif =20 +/* Make devices configuration available for use in hmp-commands*.hx templa= tes */ +#include CONFIG_DEVICES + /* file descriptors passed via SCM_RIGHTS */ typedef struct mon_fd_t mon_fd_t; struct mon_fd_t { --=20 2.35.1