Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 93380123 authored by Kees Cook's avatar Kees Cook Committed by Martin K. Petersen
Browse files

scsi: hpsa: 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>
Acked-by: default avatarDon Brace <don.brace@microsemi.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 4b089d18
Loading
Loading
Loading
Loading
+20 −20
Original line number Original line Diff line number Diff line
@@ -578,38 +578,38 @@ static unsigned long SA5_ioaccel_mode1_completed(struct ctlr_info *h, u8 q)
}
}


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_intr_pending,
	.intr_pending = SA5_intr_pending,
	SA5_completed,
	.command_completed = SA5_completed,
};
};


static struct access_method SA5_ioaccel_mode1_access = {
static struct access_method SA5_ioaccel_mode1_access = {
	SA5_submit_command,
	.submit_command = SA5_submit_command,
	SA5_performant_intr_mask,
	.set_intr_mask = SA5_performant_intr_mask,
	SA5_ioaccel_mode1_intr_pending,
	.intr_pending = SA5_ioaccel_mode1_intr_pending,
	SA5_ioaccel_mode1_completed,
	.command_completed = SA5_ioaccel_mode1_completed,
};
};


static struct access_method SA5_ioaccel_mode2_access = {
static struct access_method SA5_ioaccel_mode2_access = {
	SA5_submit_command_ioaccel2,
	.submit_command = SA5_submit_command_ioaccel2,
	SA5_performant_intr_mask,
	.set_intr_mask = SA5_performant_intr_mask,
	SA5_performant_intr_pending,
	.intr_pending = SA5_performant_intr_pending,
	SA5_performant_completed,
	.command_completed = SA5_performant_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_performant_intr_pending,
	.intr_pending = SA5_performant_intr_pending,
	SA5_performant_completed,
	.command_completed = SA5_performant_completed,
};
};


static struct access_method SA5_performant_access_no_read = {
static struct access_method SA5_performant_access_no_read = {
	SA5_submit_command_no_read,
	.submit_command = SA5_submit_command_no_read,
	SA5_performant_intr_mask,
	.set_intr_mask = SA5_performant_intr_mask,
	SA5_performant_intr_pending,
	.intr_pending = SA5_performant_intr_pending,
	SA5_performant_completed,
	.command_completed = SA5_performant_completed,
};
};


struct board_type {
struct board_type {