History

Compiler Attributes: counted_by: Adjust name and identifier expansion

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.

Kees Cook committed 3 years ago

Commit c8248fa1 parent be8dffa2 files · +17 −13Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/stddef.h+4−0
@@ -45,3 +45,7 @@ · 44 unmodified lines
45 TYPE NAME[]; \45 TYPE NAME[]; \
46 }46 }
47#endif47#endif
48
49#ifndef __counted_by
50#define __counted_by(m)
51#endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t