Re: slab.h debugging tags....

From: Valdis . Kletnieks
Date: Sat Oct 10 2015 - 14:35:21 EST


On Fri, 09 Oct 2015 21:40:33 +0200, Rasmus Villemoes said:

> Does this fix it for you?
>
> Subject: [PATCH] slab.h: hide assume_aligned attribute from sparse
>
> sparse apparently pretends to be gcc >= 4.9, yet isn't prepared to

Much better - it threw messages on a few files, it took me a moment to figure
out what happened.

CHECK init/do_mounts_initrd.c
init/do_mounts_initrd.c:8:2: warning: "Sparse checking disabled for this file"
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

but there's only like a few that disable sparse. Everything else behaves now.

Feel free to stick this on it:

Tested-By: Valdis Kletnieks <valdis.kletnieks@xxxxxx>

Attachment: pgpx_0G755WNC.pgp
Description: PGP signature