add name member to struct resource
authorjsg <jsg@openbsd.org>
Sun, 11 Aug 2024 03:27:29 +0000 (03:27 +0000)
committerjsg <jsg@openbsd.org>
Sun, 11 Aug 2024 03:27:29 +0000 (03:27 +0000)
needed for newer inteldrm

sys/dev/pci/drm/include/linux/ioport.h

index c5ebffd..fe01660 100644 (file)
@@ -10,6 +10,7 @@
 struct resource {
        u_long  start;
        u_long  end;
+       const char *name;
 };
 
 static inline resource_size_t
@@ -22,6 +23,7 @@ resource_size(const struct resource *r)
 (struct resource) {                            \
                .start = (_start),              \
                .end = (_start) + (_size) - 1,  \
+               .name = NULL,                   \
        }
 
 #endif