summaryrefslogtreecommitdiff
path: root/drivers/acpi/processor_thermal.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2018-11-02 18:44:13 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2018-11-06 06:35:01 +0300
commit77409c4cdc44560e1b3b839e62d7f73478199680 (patch)
tree9c81699623c047c86be545defeaa8ed5649e9df7 /drivers/acpi/processor_thermal.c
parentf8d294324598ec85bea2779512e48c94cbe4d7c6 (diff)
downloadlinux-77409c4cdc44560e1b3b839e62d7f73478199680.tar.xz
scsi: myrs: avoid stack overflow warning
Putting a 1024 byte data structure on the stack is generally a bad idea. On 32-bit systems, it also triggers a compile-time warning when building with -Og: drivers/scsi/myrs.c: In function 'myrs_get_ctlr_info': drivers/scsi/myrs.c:212:1: error: the frame size of 1028 bytes is larger than 1024 bytes [-Werror=frame-larger-than=] We only really need three members of the structure, so just read them manually here instead of copying the entire structure. Fixes: 77266186397c ("scsi: myrs: Add Mylex RAID controller (SCSI interface)") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/acpi/processor_thermal.c')
0 files changed, 0 insertions, 0 deletions