From nobody Tue Oct 28 01:58:02 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1516195427980386.73711813115983; Wed, 17 Jan 2018 05:23:47 -0800 (PST) Received: from localhost ([::1]:35605 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebngs-0007kE-8c for importer@patchew.org; Wed, 17 Jan 2018 08:23:42 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41419) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebnbz-0004K8-D9 for qemu-devel@nongnu.org; Wed, 17 Jan 2018 08:18:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ebnbv-0007p0-J5 for qemu-devel@nongnu.org; Wed, 17 Jan 2018 08:18:39 -0500 Received: from mail-qk0-x242.google.com ([2607:f8b0:400d:c09::242]:38241) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ebnbv-0007oL-FL for qemu-devel@nongnu.org; Wed, 17 Jan 2018 08:18:35 -0500 Received: by mail-qk0-x242.google.com with SMTP id j185so25164502qkc.5 for ; Wed, 17 Jan 2018 05:18:35 -0800 (PST) Received: from x1.local ([138.117.48.219]) by smtp.gmail.com with ESMTPSA id n21sm2990418qtl.38.2018.01.17.05.18.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Jan 2018 05:18:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=NEve/gPrFz9IBkUuO+1YCE7HIvq06wDt3mbBSgNb4Pc=; b=o7GYuQWt+EJbCY3eKRlJ8xdz5/QYKvjA4tV+jSVopGYjjO6UVtpDF4roRRThR9d5Qa wP1Z+gXPO6Czd5WP+arB5bszmb5aZqps6BcLk8hDqyuf8CfSgGejkAv+tBHg2jQMVhel 6T74HLmjDCi5JxEKhJAQ4bdtjft7U97858mlxcIeNYymeXaRmqhBazXVW8Bmm+HyvfoU 497E6vkbSRCgjVnvEzx/B4gW6VJpqdgiOt6QINJPMv19fFhM5Y6MabyOenQA3ZENS/xZ GQXp0275YoY04IEzjKdjI/CTJ7cuPyXNfSprIj0kuTZ1ERaS6OBzi/nUUY3E3iWhBzHH k/dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=NEve/gPrFz9IBkUuO+1YCE7HIvq06wDt3mbBSgNb4Pc=; b=caXBKhM7IeSBRN8DkaPrfhql81GJq5yb+ddNUiVhyZtZsQLALpc1k2jmgdD4t/h8zd wSod6hbANQWNWc3hk8UaIBEVCmn5kxZK2THdsKd1vMXln0Q+JfFD6rj/ak4HqF7ihB1c 5w+MLEfD466qATsTpeY+wkrlPZsOoeBbgS/kpRpQOgFkyP07/ZTysViRM8ARDMDzjaeT zUkeT4609f7NQw+7yVPsXQx6J/lwp23Irp2B30GFaaH0h7O8Bwvn1JgSs/7eaxKU0TqL nySiMqBWBNlE4Qf6AJI00PWx1nDQIx3C5RE9jX8VAxahU9H9wmGQYJCszrayMqaChHe5 4l7g== X-Gm-Message-State: AKwxytcl95oGbNrsj9xwpuHXWJsbMXm6ijK/pJmJ2l80n12eQm8+LWck Wj/+3dSNBB8jqEeryiVwTTQ= X-Google-Smtp-Source: ACJfBouBT7sutbRA0GI9A+ix18ZHuBkpE/5Tj89zcdvK04mmmWy7DofjefjZH1bH3iM8STNGcm+2YQ== X-Received: by 10.55.166.206 with SMTP id p197mr38930836qke.128.1516195115082; Wed, 17 Jan 2018 05:18:35 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Wed, 17 Jan 2018 10:18:20 -0300 Message-Id: <20180117131821.18700-3-f4bug@amsat.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180117131821.18700-1-f4bug@amsat.org> References: <20180117131821.18700-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::242 Subject: [Qemu-devel] [RFC PATCH 2/3] virtio: let virtio_add/clear_feature() use QEMU_WARN_NONNULL_ARGS() 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: Peter Maydell , "Michael S. Tsirkin" , qemu-devel@nongnu.org, Stefan Weil , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Luiz Capitulino , Stefan Hajnoczi , Paolo Bonzini Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- include/hw/virtio/virtio.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/hw/virtio/virtio.h b/include/hw/virtio/virtio.h index 098bdaaea3..d63be28039 100644 --- a/include/hw/virtio/virtio.h +++ b/include/hw/virtio/virtio.h @@ -292,12 +292,14 @@ void virtio_queue_aio_set_host_notifier_handler(VirtQ= ueue *vq, AioContext *ctx, VirtQueue *virtio_vector_first_queue(VirtIODevice *vdev, uint16_t vector); VirtQueue *virtio_vector_next_queue(VirtQueue *vq); =20 +QEMU_WARN_NONNULL_ARGS(1) static inline void virtio_add_feature(uint64_t *features, unsigned int fbi= t) { assert(fbit < 64); *features |=3D (1ULL << fbit); } =20 +QEMU_WARN_NONNULL_ARGS(1) static inline void virtio_clear_feature(uint64_t *features, unsigned int f= bit) { assert(fbit < 64); --=20 2.15.1