qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v5 01/10] hw/virtio: Factorize virtio-mmio headers


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v5 01/10] hw/virtio: Factorize virtio-mmio headers
Date: Thu, 3 Oct 2019 15:47:04 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.0

On 10/3/19 3:11 PM, Eric Blake wrote:
On 10/3/19 6:26 AM, Sergio Lopez wrote:
Philippe Mathieu-Daudé <address@hidden> writes:
On 10/2/19 1:30 PM, Sergio Lopez wrote:
Put QOM and main struct definition in a separate header file, so it
can be accessed from other components.

Signed-off-by: Sergio Lopez <address@hidden>

+
+#ifndef QEMU_VIRTIO_MMIO_H
+#define QEMU_VIRTIO_MMIO_H

I'd rather use HW_VIRTIO_MMIO_H

Looks like there isn't a consensus in this regard:

$ grep "ifndef" *


Do we have an actual policy written somewhere?

Past history shows several cleanups near commit fe2611b016, including commit c0a9956b which mentions scripts/clean-header-guards specifically for this purpose.  So yes, we have a policy, although it is not always enforced in a timely manner.

Paul Brook started to use the HW_ prefix introducing the hw/ directory in commit 87ecb68bd (12 years ago). Most of the headers added out of hw/ and moved there later do not use this pattern.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]