slab.h debugging tags....

From: Valdis Kletnieks
Date: Thu Oct 08 2015 - 21:41:22 EST


Author: Rasmus Villemoes <linux@xxxxxxxxxxxxxxxxxx>
Date: Wed Oct 7 15:09:20 2015 +1100

slab.h: sprinkle __assume_aligned attributes

causes *tons* of whinges if you do 'make C=2' with sparse 0.5.0:

CHECK drivers/media/usb/pwc/pwc-if.c
include/linux/slab.h:307:43: error: attribute '__assume_aligned__': unknown attribute
include/linux/slab.h:308:58: error: attribute '__assume_aligned__': unknown attribute
include/linux/slab.h:337:73: error: attribute '__assume_aligned__': unknown attribute
include/linux/slab.h:375:74: error: attribute '__assume_aligned__': unknown attribute
include/linux/slab.h:378:80: error: attribute '__assume_aligned__': unknown attribute

[/usr/src/linux-next] grep CHECK build.default | wc
1779 3558 59132
[/usr/src/linux-next] grep slab.h build.default | wc
7225 43350 621350

Canned it after about 1/3 of the build.

Where's a sparse that can handle this?

Attachment: pgpoGYA9FQX4Y.pgp
Description: PGP signature