From nobody Mon Feb 9 03:46:31 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 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=1666710958; cv=none; d=zohomail.com; s=zohoarc; b=S4d1DppcbDcctn2hAjfcbvEd0MffaUqTH1ZvLC5iF2OJuEhgvMju13j3OW/g9BbyGo3RNHb5k75+g/5JCjzmPpopWvhyQxoKz8GCb5d20P8pRV1b+e6Qr+tfPOUZFwKp7oz5CBQ87zdLcSYeRWhHwNCWc1lb7IvoGlOF//6tvKk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1666710958; 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=92hwS8GwsRsUX+E5/RNtcuBUQszRfuXsQwvYSzAdjs8=; b=D/xWbRJwBUoecwNO0IOIqojhyoyp1gGE5sBFqGz7TpVHzQc8Yg+lxDhDXKbgDtLcHqvouiCUwciLieHvVx1bhMOj7Lfqg+oS0h6gs46x+oy1Y7fkB1RgiQRJYke4sCjtnml4SBNsMcxxNvhemSz+6kIwOHJZeaOSpQgFt1ri6ME= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1666710958841922.458673396854; Tue, 25 Oct 2022 08:15:58 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-347-yZupNEi6OReiExnp-iSeHQ-1; Tue, 25 Oct 2022 11:15:48 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 60EEE185A7A3; Tue, 25 Oct 2022 15:15:38 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4631742222; Tue, 25 Oct 2022 15:15:38 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 9DC9F19465B2; Tue, 25 Oct 2022 15:15:37 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id A24951946597 for ; Tue, 25 Oct 2022 15:15:34 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 976242027061; Tue, 25 Oct 2022 15:15:34 +0000 (UTC) Received: from maggie.redhat.com (unknown [10.43.2.39]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3D42920290A5 for ; Tue, 25 Oct 2022 15:15:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1666710957; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=92hwS8GwsRsUX+E5/RNtcuBUQszRfuXsQwvYSzAdjs8=; b=SqiqSMlFqK2SRByA1I4ztKalmSybo+2RzUc+Rtfd6cLibky6W4k+PGvi2H401Ck6FBujLn b3z99Noj6tJ/fZVyo6+AtPjuaWxawnZ64hIOubyedc83X8c/oK5U/qxCWp5bS6i5nGZQuz 2kkVfoTRL2w8syj7k1N3B8lL4/r4Zlw= X-MC-Unique: yZupNEi6OReiExnp-iSeHQ-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 2/5] node_device: Move DMI_DEVPATH into node_device_udev.c Date: Tue, 25 Oct 2022 17:15:29 +0200 Message-Id: <8e23ebf128b379c7e6b0cc7a96f0dd06da2a10ad.1666710738.git.mprivozn@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1666710959292100001 Content-Type: text/plain; charset="utf-8"; x-default="true" The DMI_DEVPATH macro is used exclusively within node_device_udev.c. There's no need to expose it. Signed-off-by: Michal Privoznik --- src/node_device/node_device_udev.c | 2 ++ src/node_device/node_device_udev.h | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/node_device/node_device_udev.c b/src/node_device/node_devi= ce_udev.c index 07c10f0d88..24ef1c25a9 100644 --- a/src/node_device/node_device_udev.c +++ b/src/node_device/node_device_udev.c @@ -52,6 +52,8 @@ VIR_LOG_INIT("node_device.node_device_udev"); # define TYPE_RAID 12 #endif =20 +#define DMI_DEVPATH "/sys/devices/virtual/dmi/id" + typedef struct _udevEventData udevEventData; struct _udevEventData { virObjectLockable parent; diff --git a/src/node_device/node_device_udev.h b/src/node_device/node_devi= ce_udev.h index fac0caf5fb..911eda2c80 100644 --- a/src/node_device/node_device_udev.h +++ b/src/node_device/node_device_udev.h @@ -21,5 +21,3 @@ #pragma once =20 #include - -#define DMI_DEVPATH "/sys/devices/virtual/dmi/id" --=20 2.37.4