From nobody Mon Nov 10 14:25:03 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; Authentication-Results: mx.zohomail.com; dkim=fail header.i=@wdc.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=wdc.com ARC-Seal: i=1; a=rsa-sha256; t=1556655306; cv=none; d=zoho.com; s=zohoarc; b=VDioZn8u/EgC2HmCgeK+ELyVKqAEZn3g+OjXQiOwZyE789mlJGQMBvd98o7XO0cQMjMTpttA4g2lQ+Wdd+YOliMZS4IsATAf/th9sXamDUv09csbiHAeoRbY94qgvMRlyuH2lLr2vgeUBw/pz01UsxXeJZuU1F55bbOSZmw0T08= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556655306; h=Content-ID:Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=/kKF262cHiUAFnySiN2hIvVpZWdUfxx0a+lkNg1Ydy4=; b=D4LDqEUb4fJ1V4xBz6bengauG+wZHb0AQNOThPrxuWteIg4LlDigQFymeCpucdwj35pM8Lv7fJ7UGilEn6a7XcnMFzn658ENfsRvgrGRHJoqsBWvfjccTzjNNBt6Nztpi/BdLNaTRnbl9/l+kpDjF+MkzjNUSxHknfwJbK+q7Z4= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail header.i=@wdc.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1556655305996155.8439765968933; Tue, 30 Apr 2019 13:15:05 -0700 (PDT) Received: from localhost ([127.0.0.1]:52778 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLZ9a-0006n7-Sj for importer@patchew.org; Tue, 30 Apr 2019 16:15:02 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49189) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLZ3x-0002PX-6i for qemu-devel@nongnu.org; Tue, 30 Apr 2019 16:09:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hLZ3w-000755-84 for qemu-devel@nongnu.org; Tue, 30 Apr 2019 16:09:13 -0400 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:18442) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hLZ3t-00073c-RO; Tue, 30 Apr 2019 16:09:10 -0400 Received: from mail-bn3nam01lp2055.outbound.protection.outlook.com (HELO NAM01-BN3-obe.outbound.protection.outlook.com) ([104.47.33.55]) by ob1.hgst.iphmx.com with ESMTP; 01 May 2019 04:09:07 +0800 Received: from BYAPR04MB4901.namprd04.prod.outlook.com (52.135.232.206) by BYAPR04MB5672.namprd04.prod.outlook.com (20.179.57.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1856.10; Tue, 30 Apr 2019 20:09:05 +0000 Received: from BYAPR04MB4901.namprd04.prod.outlook.com ([fe80::4d89:bbf8:952c:3d66]) by BYAPR04MB4901.namprd04.prod.outlook.com ([fe80::4d89:bbf8:952c:3d66%5]) with mapi id 15.20.1835.018; Tue, 30 Apr 2019 20:09:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1556654950; x=1588190950; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=/kKF262cHiUAFnySiN2hIvVpZWdUfxx0a+lkNg1Ydy4=; b=XxZQHdWMsesrZEm7vmgoF/BkNJ9YHc2a7kgJeE6GTIh/Utt5/MXvtGxO AFdKzf7JmfrSPmMWav4CRrrwKNlG1BQypEZdPb7nQvwQubsmWK7uzB3v7 Bag+W16SBsN61VF1j2Ssuy3K2mnqM2r1CjiK+Eg0xlqXhO6x3L52unx/D B9hh559nXUyLqDpkWAbUrz130l7ulin6ytkDAB96NZisjTC/oyr/oPJC0 jILIZXHFIVFZtkouZQOseYarZVmZ4JxQUcwJ0xgywn0UACmy/P3IT2dpt N+ZdaYgZSITb9WMv9HFo5Ggbc+RrP2sfXmE2Se4MeAfVrjfiZ+696eZQD w==; X-IronPort-AV: E=Sophos;i="5.60,414,1549900800"; d="scan'208";a="107206319" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-wdc-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/kKF262cHiUAFnySiN2hIvVpZWdUfxx0a+lkNg1Ydy4=; b=fAjsez1mFx6Mws1CD7/zusgfp5mMuaAQLhBGenX259PbBKr11b9iEPBrsaAPwr4nnNxizYYiODh2q3zNewWgipbwmZBJ78G6GEppP7j9I5A+E2lMyXqxauVAeXF8xFldvyJYoY7dmJ6/35/5Km8qU5QhuXYuJXXr/+c+LhsrnF0= From: Alistair Francis To: "qemu-devel@nongnu.org" Thread-Topic: [PATCH v1 2/5] hw/usb/hcd-xhci: Fix GCC 9 build warning Thread-Index: AQHU/5CPjvr6m7B7LkiAX4S+EF98OA== Date: Tue, 30 Apr 2019 20:09:05 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.21.0 x-clientproxiedby: BY5PR13CA0009.namprd13.prod.outlook.com (2603:10b6:a03:180::22) To BYAPR04MB4901.namprd04.prod.outlook.com (2603:10b6:a03:4f::14) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alistair.Francis@wdc.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [199.255.44.250] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 8d5c0873-49da-4d37-f162-08d6cda7b233 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020); SRVR:BYAPR04MB5672; x-ms-traffictypediagnostic: BYAPR04MB5672: wdcipoutbound: EOP-TRUE x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1332; x-forefront-prvs: 00235A1EEF x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(136003)(346002)(396003)(366004)(376002)(39860400002)(189003)(199004)(99286004)(4326008)(50226002)(71190400001)(71200400001)(7736002)(305945005)(316002)(14444005)(256004)(44832011)(186003)(36756003)(8936002)(6436002)(54906003)(2501003)(11346002)(102836004)(2906002)(26005)(6486002)(446003)(486006)(476003)(2616005)(5660300002)(8676002)(25786009)(6116002)(81156014)(81166006)(72206003)(3846002)(86362001)(66066001)(478600001)(73956011)(6512007)(66556008)(118296001)(66446008)(14454004)(66476007)(66946007)(64756008)(68736007)(53936002)(76176011)(97736004)(52116002)(2351001)(386003)(6506007)(5640700003)(6916009); DIR:OUT; SFP:1102; SCL:1; SRVR:BYAPR04MB5672; H:BYAPR04MB4901.namprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 9fl8vOi3rFg1n+IfRoMMMGK4K0SkmYyoS9xHZvb5Zwq+JMKMZZ+RtUIkK55nfRs2JeOAwwA5gFFJaxxqmKL0pt2iYZ4XnzgR+th4SALReX5bpnE1sMQ5WFKA0V8kw9rQBDBhHqsAO64QDFloMgzPyoDXOKJQMI9vlIBzWLIRSmqmWCB4I635IvlSAmNqq2arx/FLWnah3fdehriWU4aVW6o9PSw/OraTothKh0RdmkVSye3WVaN690mDG2bIxZ1uR6G5T4v1p3l/cKBXAod6Kr9ClCT+BmG79+uQliqfc1uwz2x5ADQB9HbfeZWBh1S6MwYsQ2a0rQqe1IxKt3QmJFQ6P7xkG0QICDkrbwC6fDRc9gGiJOFgFiNVdr+v7miEZmsdom5UUNh+xGrm8pcRkYJ60AXEfVp/Mqx/fgLNRJc= Content-Type: text/plain; charset="utf-8" Content-ID: <033AC921E2AC5B47AF4E8024FB3CE262@namprd04.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8d5c0873-49da-4d37-f162-08d6cda7b233 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Apr 2019 20:09:05.5517 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR04MB5672 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 216.71.154.42 Subject: [Qemu-devel] [PATCH v1 2/5] hw/usb/hcd-xhci: Fix GCC 9 build warning X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "qemu-trivial@nongnu.org" , "riku.voipio@iki.fi" , "laurent@vivier.eu" , Alistair Francis , "kraxel@redhat.com" , "alistair23@gmail.com" Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (found 2 invalid signatures) Fix this build warning with GCC 9 on Fedora 30: hw/usb/hcd-xhci.c:3339:66: error: =E2=80=98%d=E2=80=99 directive output may= be truncated writing between 1 and 10 bytes into a region of size 5 [-Werr= or=3Dformat-truncation=3D] 3339 | snprintf(port->name, sizeof(port->name), "usb2 port #%d= ", i+1); | ^~ hw/usb/hcd-xhci.c:3339:54: note: directive argument in the range [1, 214748= 3647] 3339 | snprintf(port->name, sizeof(port->name), "usb2 port #%d= ", i+1); | ^~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:867, from /home/alistair/qemu/include/qemu/osdep.h:99, from hw/usb/hcd-xhci.c:21: /usr/include/bits/stdio2.h:67:10: note: =E2=80=98__builtin___snprintf_chk= =E2=80=99 output between 13 and 22 bytes into a destination of size 16 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - = 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Alistair Francis --- hw/usb/hcd-xhci.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/usb/hcd-xhci.h b/hw/usb/hcd-xhci.h index 240caa4e51..9e4988abb6 100644 --- a/hw/usb/hcd-xhci.h +++ b/hw/usb/hcd-xhci.h @@ -133,7 +133,7 @@ typedef struct XHCIPort { uint32_t portnr; USBPort *uport; uint32_t speedmask; - char name[16]; + char name[24]; MemoryRegion mem; } XHCIPort; =20 --=20 2.21.0