diff options
author | Ashutosh Dixit <ashutosh.dixit@intel.com> | 2021-01-29 22:44:21 -0800 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2021-01-30 14:39:00 +0000 |
commit | e02612921a4e95aef3a368e7468f4337c9dcee7d (patch) | |
tree | 7b8feaa11b5787c2b78c362222e0e99b30c865e4 /lib/igt_primes.c | |
parent | fdc23507d022b68443121ec2c1a951af27c87240 (diff) |
meson: Turn on -Werror
We can choose which compile warnings to enable, but once they are enabled
treat all warnings as error. This enforces stricter checks against compile
warnings creeping in.
v2: Fix redefinition warning errors from i915/gem_userptr_blits
v3: Fix the even more pedantic clang compilation
v4: Do not alter whitespace in lib/tests/igt_describe!
Note: clang does not build assembler/
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/igt_primes.c')
-rw-r--r-- | lib/igt_primes.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/igt_primes.c b/lib/igt_primes.c index 3578a3c6..3941bb21 100644 --- a/lib/igt_primes.c +++ b/lib/igt_primes.c @@ -64,21 +64,11 @@ static inline unsigned long __bit__(unsigned long nr) return 1UL << (nr % BITS_PER_LONG); } -static inline void set_bit(unsigned long nr, unsigned long *addr) -{ - addr[nr / BITS_PER_LONG] |= __bit__(nr); -} - static inline void clear_bit(unsigned long nr, unsigned long *addr) { addr[nr / BITS_PER_LONG] &= ~__bit__(nr); } -static inline bool test_bit(unsigned long nr, const unsigned long *addr) -{ - return addr[nr / BITS_PER_LONG] & __bit__(nr); -} - static unsigned long __find_next_bit(const unsigned long *addr, unsigned long nbits, unsigned long start, |