Merge 86cffecdea ("Compiler Attributes: add __alloc_size() for better bounds checking") into android-mainline

Steps on the way to 5.16-rc1

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I1833139d9c0db842ec3b7c7225c0455f5c29a8de
This commit is contained in:
Greg Kroah-Hartman
2021-11-22 08:13:54 +01:00
6 changed files with 52 additions and 5 deletions

View File

@@ -489,7 +489,8 @@ our $Attribute = qr{
____cacheline_aligned|
____cacheline_aligned_in_smp|
____cacheline_internodealigned_in_smp|
__weak
__weak|
__alloc_size\s*\(\s*\d+\s*(?:,\s*\d+\s*)?\)
}x;
our $Modifier;
our $Inline = qr{inline|__always_inline|noinline|__inline|__inline__};