GCC and Clang's current RFCs name this attribute "counted_by", and have moved away from using a string for the member name. Update the kernel's macros to match. Additionally provide a UAPI no-op macro for UAPI structs that will gain annotations.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -45,3 +45,7 @@ · 44 unmodified lines | |||
| 45 | TYPE NAME[]; \ | 45 | TYPE NAME[]; \ |
| 46 | } | 46 | } |
| 47 | #endif | 47 | #endif |
| 48 | |||
| 49 | #ifndef __counted_by | ||
| 50 | #define __counted_by(m) | ||
| 51 | #endif | ||