Cc: Vegard Nossum <vegard.nossum@...>, LKML <linux-kernel@...>, Michael Holzheu <holzheu@...>, Joe Perches <joe@...>, Rob Landley <rob@...>, Dick Streefland <dick.streefland@...>, Jesse Barnes <jesse.barnes@...>, Arnd Bergmann <arnd@...>, Jan Engelhardt <jengelh@...>, Emil Medve <Emilian.Medve@...>, Stephen Hemminger <shemminger@...>, linux@horizon.com <linux@...>
On Sep 28, 2007, at 03:31:11, Geert Uytterhoeven wrote:
Well actually, I believe you could just do:
struct kprint_block {
const int loglevel;
[...];
};
Then cast away the constness to actually set it initially:
*((int *)&block.loglevel) = LOGLEVEL;
Cheers,
Kyle Moffett
-