RE: [PATCH] printk.c: remove duplicate const

From: H Hartley Sweeten
Date: Thu Apr 01 2010 - 21:28:53 EST

On Thursday, April 01, 2010 6:20 PM, David Miller wrote:
> From: H Hartley Sweeten <hartleys@xxxxxxxxxxxxxxxxxxx>
> Date: Thu, 1 Apr 2010 20:13:27 -0500
>> Noticed during a sparse build.
>> Signed-off-by: H Hartley Sweeten <hsweeten@xxxxxxxxxxxxxxxxxxx>
> Isn't it intentional? The two consts mark different aspects
> of the declaration const, both the pointers as well as the
> contents pointed to.

Isn't that a C++ and not a C feature?

If it is valid in C then I guess the sparse people should be informed.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at