Debian Codegraph @

debian/patches/0004-gcc-11-warning.patch

raw
1 Description: Disable warning in the cmpxchgl wrapper
2 Author: Christoph Biedl <[email protected]>
3 Origin: no # upstream is dead
4 Bug-Debian: https://bugs.debian.org/984057
5 Last-Update: 2022-10-16
6
7 --- a/include/linux-i386/sysdep.h
8 +++ b/include/linux-i386/sysdep.h
9 @@ -106,10 +106,13 @@
10 uint32_t prev;
11 struct xchg_dummy { uint32_t a[100]; };
12
13 +#pragma GCC diagnostic push
14 +#pragma GCC diagnostic ignored "-Warray-bounds"
15 asm volatile(LOCK_PREFIX "cmpxchgl %1,%2"
16 : "=a"(prev)
17 : "q"(new), "m"(*(struct xchg_dummy *)ptr), "0"(old)
18 : "memory");
19 +#pragma GCC diagnostic pop
20
21 return prev;
22 }