From nobody Sun Feb 8 22:21:57 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1571059194; cv=none; d=zoho.com; s=zohoarc; b=C/TIPNz+xJ16y/PatwufTbKO/ieYVTa7Dj+nR3y8/iezfdLo5QzvjO3HA3yWZkc5083lhqRByfIdySC+7QO/6TMAB/IEuFLEZ7I+E+WZcD2Q2TCNboME3GT1Sam6GBm3na5s5p9Yai6NLZCIQuQ7JNNZzYfSKG8bVm+eSo/Np1g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1571059194; h=Content-Type:Content-Transfer-Encoding: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; bh=MPuc0eLLYDt/utDFCBhBWjvOs24FNqqoeTMKWObzHLQ=; b=bEG8Pht0d1Ep3RPsoUHlGjSZAgNXRu2TRgV4m27HgDaxLgkwjdqAiYlXqpnZTnDg9gk3MY2JeCu//HKyJ0eAVrwu746Gz1CPsZIaeBe5ZwD4nG23A8uV4BkNKMJjXDnrI8HI1S7QwkKyx5VY6EPGP9qCjG67n3l8nc+dfifTjko= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1571059194989432.11890884613376; Mon, 14 Oct 2019 06:19:54 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6FD4D8E1CE8; Mon, 14 Oct 2019 13:19:53 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4933A6012C; Mon, 14 Oct 2019 13:19:53 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id F3AB425540; Mon, 14 Oct 2019 13:19:52 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x9EDGSHi017463 for ; Mon, 14 Oct 2019 09:16:28 -0400 Received: by smtp.corp.redhat.com (Postfix) id A17A06012C; Mon, 14 Oct 2019 13:16:28 +0000 (UTC) Received: from icr.brq.redhat.com (unknown [10.43.2.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 291AA600CD for ; Mon, 14 Oct 2019 13:16:28 +0000 (UTC) From: =?UTF-8?q?J=C3=A1n=20Tomko?= To: libvir-list@redhat.com Date: Mon, 14 Oct 2019 15:15:36 +0200 Message-Id: <1d8c26ba86c12160bb0d68746d0f99e5a136b6a8.1571058852.git.jtomko@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 18/35] node_device: use G_GNUC_UNUSED X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.69]); Mon, 14 Oct 2019 13:19:54 +0000 (UTC) Use G_GNUC_UNUSED from GLib instead of ATTRIBUTE_UNUSED. Signed-off-by: J=C3=A1n Tomko --- src/node_device/node_device_driver.c | 14 +++++++------- src/node_device/node_device_hal.c | 18 +++++++++--------- src/node_device/node_device_udev.c | 20 ++++++++++---------- 3 files changed, 26 insertions(+), 26 deletions(-) diff --git a/src/node_device/node_device_driver.c b/src/node_device/node_de= vice_driver.c index 578489c5be..f95eacf6a2 100644 --- a/src/node_device/node_device_driver.c +++ b/src/node_device/node_device_driver.c @@ -46,8 +46,8 @@ virNodeDeviceDriverStatePtr driver; =20 virDrvOpenStatus nodeConnectOpen(virConnectPtr conn, - virConnectAuthPtr auth ATTRIBUTE_UNUSED, - virConfPtr conf ATTRIBUTE_UNUSED, + virConnectAuthPtr auth G_GNUC_UNUSED, + virConfPtr conf G_GNUC_UNUSED, unsigned int flags) { virCheckFlags(VIR_CONNECT_RO, VIR_DRV_OPEN_ERROR); @@ -69,27 +69,27 @@ nodeConnectOpen(virConnectPtr conn, return VIR_DRV_OPEN_SUCCESS; } =20 -int nodeConnectClose(virConnectPtr conn ATTRIBUTE_UNUSED) +int nodeConnectClose(virConnectPtr conn G_GNUC_UNUSED) { return 0; } =20 =20 -int nodeConnectIsSecure(virConnectPtr conn ATTRIBUTE_UNUSED) +int nodeConnectIsSecure(virConnectPtr conn G_GNUC_UNUSED) { /* Trivially secure, since always inside the daemon */ return 1; } =20 =20 -int nodeConnectIsEncrypted(virConnectPtr conn ATTRIBUTE_UNUSED) +int nodeConnectIsEncrypted(virConnectPtr conn G_GNUC_UNUSED) { /* Not encrypted, but remote driver takes care of that */ return 0; } =20 =20 -int nodeConnectIsAlive(virConnectPtr conn ATTRIBUTE_UNUSED) +int nodeConnectIsAlive(virConnectPtr conn G_GNUC_UNUSED) { return 1; } @@ -142,7 +142,7 @@ nodeDeviceUpdateDriverName(virNodeDeviceDefPtr def) #else /* XXX: Implement me for non-linux */ static int -nodeDeviceUpdateDriverName(virNodeDeviceDefPtr def ATTRIBUTE_UNUSED) +nodeDeviceUpdateDriverName(virNodeDeviceDefPtr def G_GNUC_UNUSED) { return 0; } diff --git a/src/node_device/node_device_hal.c b/src/node_device/node_devic= e_hal.c index c613ca5808..b046f03c83 100644 --- a/src/node_device/node_device_hal.c +++ b/src/node_device/node_device_hal.c @@ -520,7 +520,7 @@ dev_refresh(const char *udi) } =20 static void -device_added(LibHalContext *ctx ATTRIBUTE_UNUSED, +device_added(LibHalContext *ctx G_GNUC_UNUSED, const char *udi) { VIR_DEBUG("%s", hal_name(udi)); @@ -529,7 +529,7 @@ device_added(LibHalContext *ctx ATTRIBUTE_UNUSED, =20 =20 static void -device_removed(LibHalContext *ctx ATTRIBUTE_UNUSED, +device_removed(LibHalContext *ctx G_GNUC_UNUSED, const char *udi) { const char *name =3D hal_name(udi); @@ -565,7 +565,7 @@ device_cap_added(LibHalContext *ctx, =20 =20 static void -device_cap_lost(LibHalContext *ctx ATTRIBUTE_UNUSED, +device_cap_lost(LibHalContext *ctx G_GNUC_UNUSED, const char *udi, const char *cap) { @@ -577,11 +577,11 @@ device_cap_lost(LibHalContext *ctx ATTRIBUTE_UNUSED, =20 =20 static void -device_prop_modified(LibHalContext *ctx ATTRIBUTE_UNUSED, +device_prop_modified(LibHalContext *ctx G_GNUC_UNUSED, const char *udi, const char *key, - dbus_bool_t is_removed ATTRIBUTE_UNUSED, - dbus_bool_t is_added ATTRIBUTE_UNUSED) + dbus_bool_t is_removed G_GNUC_UNUSED, + dbus_bool_t is_added G_GNUC_UNUSED) { const char *name =3D hal_name(udi); VIR_DEBUG("%s %s", name, key); @@ -591,9 +591,9 @@ device_prop_modified(LibHalContext *ctx ATTRIBUTE_UNUSE= D, =20 =20 static int -nodeStateInitialize(bool privileged ATTRIBUTE_UNUSED, - virStateInhibitCallback callback ATTRIBUTE_UNUSED, - void *opaque ATTRIBUTE_UNUSED) +nodeStateInitialize(bool privileged G_GNUC_UNUSED, + virStateInhibitCallback callback G_GNUC_UNUSED, + void *opaque G_GNUC_UNUSED) { LibHalContext *hal_ctx =3D NULL; char **udi =3D NULL; diff --git a/src/node_device/node_device_udev.c b/src/node_device/node_devi= ce_udev.c index 5550ee3a54..80d39e9509 100644 --- a/src/node_device/node_device_udev.c +++ b/src/node_device/node_device_udev.c @@ -606,7 +606,7 @@ udevProcessNetworkInterface(struct udev_device *device, =20 =20 static int -udevProcessSCSIHost(struct udev_device *device ATTRIBUTE_UNUSED, +udevProcessSCSIHost(struct udev_device *device G_GNUC_UNUSED, virNodeDeviceDefPtr def) { virNodeDevCapSCSIHostPtr scsi_host =3D &def->caps->data.scsi_host; @@ -654,7 +654,7 @@ udevProcessSCSITarget(struct udev_device *device, =20 =20 static int -udevGetSCSIType(virNodeDeviceDefPtr def ATTRIBUTE_UNUSED, +udevGetSCSIType(virNodeDeviceDefPtr def G_GNUC_UNUSED, unsigned int type, char **typestring) { @@ -714,7 +714,7 @@ udevGetSCSIType(virNodeDeviceDefPtr def ATTRIBUTE_UNUSE= D, =20 =20 static int -udevProcessSCSIDevice(struct udev_device *device ATTRIBUTE_UNUSED, +udevProcessSCSIDevice(struct udev_device *device G_GNUC_UNUSED, virNodeDeviceDefPtr def) { int ret =3D -1; @@ -1578,7 +1578,7 @@ udevEventMonitorSanityCheck(udevEventDataPtr priv, * would still come into play. */ static void -udevEventHandleThread(void *opaque ATTRIBUTE_UNUSED) +udevEventHandleThread(void *opaque G_GNUC_UNUSED) { udevEventDataPtr priv =3D driver->privateData; struct udev_device *device =3D NULL; @@ -1645,10 +1645,10 @@ udevEventHandleThread(void *opaque ATTRIBUTE_UNUSED) =20 =20 static void -udevEventHandleCallback(int watch ATTRIBUTE_UNUSED, +udevEventHandleCallback(int watch G_GNUC_UNUSED, int fd, - int events ATTRIBUTE_UNUSED, - void *data ATTRIBUTE_UNUSED) + int events G_GNUC_UNUSED, + void *data G_GNUC_UNUSED) { udevEventDataPtr priv =3D driver->privateData; =20 @@ -1783,7 +1783,7 @@ nodeStateInitializeEnumerate(void *opaque) =20 =20 static int -udevPCITranslateInit(bool privileged ATTRIBUTE_UNUSED) +udevPCITranslateInit(bool privileged G_GNUC_UNUSED) { #if defined __s390__ || defined __s390x_ /* On s390(x) system there is no PCI bus. @@ -1808,8 +1808,8 @@ udevPCITranslateInit(bool privileged ATTRIBUTE_UNUSED) =20 static int nodeStateInitialize(bool privileged, - virStateInhibitCallback callback ATTRIBUTE_UNUSED, - void *opaque ATTRIBUTE_UNUSED) + virStateInhibitCallback callback G_GNUC_UNUSED, + void *opaque G_GNUC_UNUSED) { udevEventDataPtr priv =3D NULL; struct udev *udev =3D NULL; --=20 2.19.2 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list