Message ID | 20250112221726.30206-6-philmd@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:525c:0:b0:385:e875:8a9e with SMTP id k28csp1178266wrc; Sun, 12 Jan 2025 14:18:28 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVoU6sxQCl7x+FhZE4DqAPvU35UOPBu8Rpb+rVaqxOagKwk9bAoVuWEHdU08h1OLh0xrLGhOg==@linaro.org X-Google-Smtp-Source: AGHT+IGZpn1C6WwvQy0RpilGkCCrn510FU6zGcg+vXR8dYO5Qfyzxj7dsYd2n4ZWLbXym7ZIdabF X-Received: by 2002:ac8:5912:0:b0:466:9bc4:578 with SMTP id d75a77b69052e-46c70ff7a78mr265901741cf.22.1736720308354; Sun, 12 Jan 2025 14:18:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1736720308; cv=none; d=google.com; s=arc-20240605; b=lQX7FPPQrCQ4BClhZqeB8FYu8QIajYTRY5+w0NP01C8kdW13EtbDC9e1xlkvlHoBWP 14eJbTCYlhxrbuQ3X8DU3yBHKF7T/Ahb3Pr8WdtDQLT8Kxxomcon/y9ni7PZ+9sUCvO0 ct5KapHzwGqbdbXMwW4UMFzjXlTRDDS4qiAyI4M1hhviC7kWl4usmZlwVcIMLu1DA1db 2svqbJMQG+DKcTzQ7hh/ppfOduiHXHQmQb65hWW6rLZKuPShQmnyiMMMaBze51LJREa0 dbRppdHGPw/8IyORV7DZ7n+/mO+WF69bJXW5DjAhKC4U54nEmCfLZQdDlWDr9CzNo/6c Cg1A== 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=+GoeTs3OwFxXFIF/0sszVZvTSkwjTETcrGfwBocwM+s=; fh=50e5w3+W6SHHNE+06M/ShWWkYgFcpUwndl6hLiFb1X0=; b=S5SYi6SWhPzTa9uYvTOmH8welyNyqmIVcMA+X8DG6FODTPlr21H/0s53ZTyMtpy/n8 xg15kBR/Y7W9LwWKM9Ux3NhIuEx0Pbc+cpwPOA+u2CqSGcgKCG0AqOap+v2wXfh5cEb0 /XEZvX6gujejyL2Dv3saZQk/+tsRWOrcQpfu/0G3FJWEQOwk5T2XptUHuGPAyfPexyMi pjf9uYx+VY40PlVTDUA9shEmlH8I293vliJb8B4FXiGecgL4d20tbVUui3mzyqSMuqYZ 6Sc794+MX2a3DGmuAWhstsTgS2LWr8iMIZElFrqZNfdyji8ZSpenvQMj03K0gf/Pci6a eSoQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="T1vdYGt/"; 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 d75a77b69052e-46c873fb036si82824151cf.368.2025.01.12.14.18.28 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 12 Jan 2025 14:18:28 -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="T1vdYGt/"; 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 1tX6HY-0007Vu-S0; Sun, 12 Jan 2025 17:18:08 -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 1tX6HP-0007Td-ET for qemu-devel@nongnu.org; Sun, 12 Jan 2025 17:18:06 -0500 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) 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 1tX6HN-0006PG-DE for qemu-devel@nongnu.org; Sun, 12 Jan 2025 17:17:59 -0500 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-436637e8c8dso39392225e9.1 for <qemu-devel@nongnu.org>; Sun, 12 Jan 2025 14:17:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1736720273; x=1737325073; 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=+GoeTs3OwFxXFIF/0sszVZvTSkwjTETcrGfwBocwM+s=; b=T1vdYGt/BNcDErDAjxNxFcs3bhFrOU3Pq7dPtb6PUoPB0unMiprQeZGkBBkBroSdNv m/HjdqP9K34XApdqCvBFc/x/0SZEmMzzwnzeRPsTdErNCoc0lETK6lcRS59U4qJKEBVg E4zjHRsboLuSqhRSKsWoMjiFjc/+zsYuco/7on2Lp5GDiBAK2Fu/+VFbwQiAtfelc1R8 XD1HcT27d/ZwlzgEf/9hVNpiTVZiUIKsBQNsCL4J2LbCoL5AIunpCaUOoH7V1ZnkqSQz 91J5iAkOcYIbf4i3ywK8jlUzYOortqk7xzyuEkcvGFLua8EjyqmwnYs2HIFZ59PVXhMo cSxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736720273; x=1737325073; 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=+GoeTs3OwFxXFIF/0sszVZvTSkwjTETcrGfwBocwM+s=; b=CmsHDcPMPanYRUwp34pJ2EFuLIhB4XGW0HsbpKkQa1Xs4Dk62nLJvrLa+yM8HqNW1s B0Kehp1FLVKvQ5+n7LFgZa9VOzPF32+m/WcZq1JY8mCe9+6cOl+lqIPNLq8fq+RYMnxi qmJZhokPSJ59cSGsOpJqJTozkeqdS+F21IRTD5tUqZM4nS1MysiFUqHCAka7vfyL0elh IbwlyoXT+iCwqweTgTcvuyKG86DF9SERtc/1fs3TrdzUO1h0XCzuu6uovNt4tivywUZf mAiIocbirkJiiZQAZ52uND74gj+J2hQ7C0zwhjzb920vvki1/8pV2AGBnXL6WBoMBSF0 TWUA== X-Gm-Message-State: AOJu0YzlNF5Ieb+SkLc5HWUz/Pfl+iNpDV5eFqrtsBEaahJuRZfZca4O iLJNXIYHW1yDIghPWWqGRkR4wOmCclVLYCTe5a5+gyJxkP4bQjE53TQ2q7wQeVM5brNdDHl3Hbn W2Mk= X-Gm-Gg: ASbGnctEqQSUDWYswVXtuzeFo0Zbtl6OIrDPSxos6q06VziI+sIILYeSgNB4IzgZZEh mjmwiHiZ0YRA9O4C+dS4uoCjVAmXpAFqo6HE24mPMDvm69FPJze6q0Yynscmusi7zH/IY1msfA2 ql75l+b6n3Gn0lUJZmx4/j2eqoR+8LiJ1X6TylvOqdUVuexg5U3hpg+pjKtqEXdAFiSxqDmH3XQ V5nlpLfRV6oFlDm7GSWfeVrCU1QH9VW3yJXimCocdZYh/9QtBgwjrefUodmJa0LaZrqXT9Q64qP 1xPSzDpDS2mu/Gtln9k7DppX7ehyCk8= X-Received: by 2002:a05:600c:4704:b0:436:469f:2210 with SMTP id 5b1f17b1804b1-436e267f796mr136934085e9.1.1736720273147; Sun, 12 Jan 2025 14:17:53 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-436dd15766fsm98095965e9.2.2025.01.12.14.17.51 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sun, 12 Jan 2025 14:17:51 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>, Zhao Liu <zhao1.liu@intel.com> Subject: [PULL 05/49] hw/usb: Inline usb_try_new() Date: Sun, 12 Jan 2025 23:16:41 +0100 Message-ID: <20250112221726.30206-6-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250112221726.30206-1-philmd@linaro.org> References: <20250112221726.30206-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::335; envelope-from=philmd@linaro.org; helo=mail-wm1-x335.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/49] pc-bios/meson.build: Silent unuseful DTC warnings
|
expand
|
diff --git a/include/hw/usb.h b/include/hw/usb.h index d46d96779ad..bb778cb844b 100644 --- a/include/hw/usb.h +++ b/include/hw/usb.h @@ -584,11 +584,6 @@ static inline USBDevice *usb_new(const char *name) return USB_DEVICE(qdev_new(name)); } -static inline USBDevice *usb_try_new(const char *name) -{ - return USB_DEVICE(qdev_try_new(name)); -} - static inline bool usb_realize_and_unref(USBDevice *dev, USBBus *bus, Error **errp) { return qdev_realize_and_unref(&dev->qdev, &bus->qbus, errp); diff --git a/hw/usb/bus.c b/hw/usb/bus.c index b19b0b13ebd..7e7deaadcaf 100644 --- a/hw/usb/bus.c +++ b/hw/usb/bus.c @@ -411,7 +411,7 @@ void usb_claim_port(USBDevice *dev, Error **errp) } else { if (bus->nfree == 1 && strcmp(object_get_typename(OBJECT(dev)), "usb-hub") != 0) { /* Create a new hub and chain it on */ - hub = usb_try_new("usb-hub"); + hub = USB_DEVICE(qdev_try_new("usb-hub")); if (hub) { usb_realize_and_unref(hub, bus, NULL); }