Commit 5f5fca6d authored by Kees Cook's avatar Kees Cook Committed by Martin K. Petersen

scsi: cciss: 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: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 93380123
...@@ -402,27 +402,27 @@ static bool SA5_performant_intr_pending(ctlr_info_t *h) ...@@ -402,27 +402,27 @@ static bool SA5_performant_intr_pending(ctlr_info_t *h)
} }
static struct access_method SA5_access = { static struct access_method SA5_access = {
SA5_submit_command, .submit_command = SA5_submit_command,
SA5_intr_mask, .set_intr_mask = SA5_intr_mask,
SA5_fifo_full, .fifo_full = SA5_fifo_full,
SA5_intr_pending, .intr_pending = SA5_intr_pending,
SA5_completed, .command_completed = SA5_completed,
}; };
static struct access_method SA5B_access = { static struct access_method SA5B_access = {
SA5_submit_command, .submit_command = SA5_submit_command,
SA5B_intr_mask, .set_intr_mask = SA5B_intr_mask,
SA5_fifo_full, .fifo_full = SA5_fifo_full,
SA5B_intr_pending, .intr_pending = SA5B_intr_pending,
SA5_completed, .command_completed = SA5_completed,
}; };
static struct access_method SA5_performant_access = { static struct access_method SA5_performant_access = {
SA5_submit_command, .submit_command = SA5_submit_command,
SA5_performant_intr_mask, .set_intr_mask = SA5_performant_intr_mask,
SA5_fifo_full, .fifo_full = SA5_fifo_full,
SA5_performant_intr_pending, .intr_pending = SA5_performant_intr_pending,
SA5_performant_completed, .command_completed = SA5_performant_completed,
}; };
struct board_type { struct board_type {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment