clang-format 18.1.6 changes

This isn't in Fedora yet...

Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
Hector Martin 2024-05-17 02:16:14 +09:00
parent c8afe3412e
commit 4f8ddca920
2 changed files with 4 additions and 8 deletions

View file

@ -201,9 +201,8 @@ struct usb_device_qualifier_descriptor {
* string descriptor.
*/
#define make_usb_string_descriptor(str) \
{ \
.bLength = sizeof(struct usb_string_descriptor) + sizeof(u##str) - 2, \
.bDescriptorType = USB_STRING_DESCRIPTOR, .bString = u##str \
}
{.bLength = sizeof(struct usb_string_descriptor) + sizeof(u##str) - 2, \
.bDescriptorType = USB_STRING_DESCRIPTOR, \
.bString = u##str}
#endif

View file

@ -390,10 +390,7 @@ typedef struct {
int count;
} spinlock_t ALIGNED(SPINLOCK_ALIGN);
#define SPINLOCK_INIT \
{ \
-1, 0 \
}
#define SPINLOCK_INIT {-1, 0}
#define DECLARE_SPINLOCK(n) spinlock_t n = SPINLOCK_INIT;
void spin_init(spinlock_t *lock);