From: François Tigeot Date: Fri, 15 Mar 2019 20:01:19 +0000 (+0100) Subject: drm/linux: Add ATOMIC_INIT() X-Git-Tag: v5.7.0~476 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/63aa39b79250acb1006c505b9c0f86e3e810195d drm/linux: Add ATOMIC_INIT() --- diff --git a/sys/dev/drm/include/asm/atomic.h b/sys/dev/drm/include/asm/atomic.h index e3d31c3188..f1430f2fbf 100644 --- a/sys/dev/drm/include/asm/atomic.h +++ b/sys/dev/drm/include/asm/atomic.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016 François Tigeot + * Copyright (c) 2016-2019 François Tigeot * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -35,4 +35,6 @@ : "r" (mask), "m" (*addr) \ : "memory"); +#define ATOMIC_INIT(i) { (i) } + #endif /* _ASM_ATOMIC_H_ */