Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

video: fbdev: sh_mobile_lcdcfb: use designated initializers

Prepare to mark sensitive kernel structures for randomization by making
sure they're using designated initializers. These were identified during
allyesconfig builds of x86, arm, and arm64, with most initializer fixes
extracted from grsecurity.

Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>

authored by

Kees Cook and committed by
Bartlomiej Zolnierkiewicz
6895aff4 cbbd8607

+3 -3
+3 -3
drivers/video/fbdev/sh_mobile_lcdcfb.c
··· 439 439 } 440 440 441 441 static struct sh_mobile_lcdc_sys_bus_ops sh_mobile_lcdc_sys_bus_ops = { 442 - lcdc_sys_write_index, 443 - lcdc_sys_write_data, 444 - lcdc_sys_read_data, 442 + .write_index = lcdc_sys_write_index, 443 + .write_data = lcdc_sys_write_data, 444 + .read_data = lcdc_sys_read_data, 445 445 }; 446 446 447 447 static int sh_mobile_lcdc_sginit(struct fb_info *info,