From: Harvey Harrison Date: Tue, 6 Jan 2009 22:42:30 +0000 (-0800) Subject: fb: carminefb: trivial annotation packing color register X-Git-Tag: firefly_0821_release~16171 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=08cc6341cc04fad45c28995db796317b5b413045;p=firefly-linux-kernel-4.4.55.git fb: carminefb: trivial annotation packing color register drivers/video/carminefb.c:171:41: warning: cast to restricted __be32 Signed-off-by: Harvey Harrison Cc: Sebastian Siewior Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/carminefb.c b/drivers/video/carminefb.c index c9b191319a9a..c7ff3c1a266a 100644 --- a/drivers/video/carminefb.c +++ b/drivers/video/carminefb.c @@ -168,7 +168,7 @@ static int carmine_setcolreg(unsigned regno, unsigned red, unsigned green, blue >>= 8; transp >>= 8; - ((u32 *)info->pseudo_palette)[regno] = be32_to_cpu(transp << 24 | + ((__be32 *)info->pseudo_palette)[regno] = cpu_to_be32(transp << 24 | red << 0 | green << 8 | blue << 16); return 0; }