Damien Le Moal
0cdc58580b
scsi: sd_zbc: Fix compilation warning
...
kbuild test robot gets the following compilation warning using gcc 7.4
cross compilation for c6x (GCC_VERSION=7.4.0 make.cross ARCH=c6x).
In file included from include/asm-generic/bug.h:18:0,
from arch/c6x/include/asm/bug.h:12,
from include/linux/bug.h:5,
from include/linux/thread_info.h:12,
from include/asm-generic/current.h:5,
from ./arch/c6x/include/generated/asm/current.h:1,
from include/linux/sched.h:12,
from include/linux/blkdev.h:5,
from drivers//scsi/sd_zbc.c:11:
drivers//scsi/sd_zbc.c: In function 'sd_zbc_read_zones':
>> include/linux/kernel.h:62:48: warning: 'zone_blocks' may be used
uninitialized in this function [-Wmaybe-uninitialized]
#define __round_mask(x, y) ((__typeof__(x))((y)-1))
^
drivers//scsi/sd_zbc.c:464:6: note: 'zone_blocks' was declared here
u32 zone_blocks;
^~~~~~~~~~~
This is a false-positive report. The variable zone_blocks is always
initialized in sd_zbc_check_zones() before use. It is not initialized
only and only if sd_zbc_check_zones() fails.
Avoid this warning by initializing the zone_blocks variable to 0.
Fixes: 5f832a3958 ("scsi: sd_zbc: Fix sd_zbc_check_zones() error checks")
Cc: Stable <stable@vger.kernel.org >
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
2019-07-16 22:37:22 -04:00
..
2019-03-25 22:19:01 -04:00
2019-06-18 19:46:25 -04:00
2019-06-20 15:37:02 -04:00
2019-01-22 21:38:21 -05:00
2018-12-18 23:19:21 -05:00
2019-05-08 10:12:46 -07:00
2019-05-07 12:48:10 -07:00
2019-06-26 22:43:02 -04:00
2019-04-08 12:01:02 +01:00
2019-05-08 10:12:46 -07:00
2019-06-20 15:37:02 -04:00
2019-03-09 16:53:47 -08:00
2018-11-09 19:17:14 -07:00
2019-02-08 17:33:00 -05:00
2019-05-21 06:16:22 -04:00
2019-01-29 01:16:09 -05:00
2019-06-20 15:37:02 -04:00
2019-06-18 19:46:24 -04:00
2019-02-04 21:23:59 -05:00
2019-06-20 15:37:02 -04:00
2019-07-16 22:32:24 -04:00
2019-07-11 20:33:52 -04:00
2019-07-11 20:42:30 -04:00
2019-07-11 20:59:09 -04:00
2019-06-26 22:58:34 -04:00
2019-06-20 15:37:02 -04:00
2019-06-27 00:19:33 -04:00
2019-07-11 20:35:21 -04:00
2019-04-29 08:34:10 -04:00
2019-05-08 10:12:46 -07:00
2019-06-27 00:10:55 -04:00
2019-04-12 21:27:23 -04:00
2019-03-19 15:29:10 -04:00
2019-01-29 00:40:54 -05:00
2019-04-08 18:39:14 -05:00
2019-06-26 22:42:28 -04:00
2019-02-25 21:37:25 -05:00
2019-03-02 11:39:54 -08:00
2018-12-19 21:54:07 -05:00
2018-10-17 21:58:51 -04:00
2019-01-29 01:33:00 -05:00
2018-08-30 07:27:22 -04:00
2019-01-08 07:58:37 -05:00
2018-12-18 23:19:21 -05:00
2018-12-18 23:13:12 -05:00
2019-06-20 14:39:21 -04:00
2019-06-20 15:21:33 -04:00
2018-12-18 23:13:12 -05:00
2018-12-18 23:13:12 -05:00
2018-06-19 22:02:25 -04:00
2018-10-15 23:00:38 -04:00
2019-01-22 10:21:43 +01:00
2019-03-19 17:08:35 -04:00
2018-12-18 23:13:12 -05:00
2018-06-26 12:27:06 -04:00
2018-12-18 23:19:21 -05:00
2018-12-18 23:19:21 -05:00
2019-03-19 17:10:34 -04:00
2019-06-20 15:21:33 -04:00
2019-06-20 15:21:33 -04:00
2019-06-18 19:46:22 -04:00
2019-06-18 19:46:18 -04:00
2019-06-18 19:46:23 -04:00
2019-06-18 19:46:22 -04:00
2018-09-25 20:45:53 -04:00
2018-12-18 23:19:21 -05:00
2019-01-08 21:58:35 -05:00
2019-01-08 21:58:35 -05:00
2019-01-08 21:57:42 -05:00
2019-03-25 22:22:44 -04:00
2019-01-08 21:58:35 -05:00
2018-12-18 23:19:21 -05:00
2019-05-21 06:16:21 -04:00
2019-06-18 19:46:18 -04:00
2019-06-18 19:46:23 -04:00
2019-06-18 19:46:18 -04:00
2019-02-25 21:44:40 -05:00
2019-06-20 15:21:33 -04:00
2018-12-18 23:13:12 -05:00
2019-06-20 15:21:32 -04:00
2018-09-21 12:35:39 -04:00
2018-12-18 23:19:21 -05:00
2018-11-06 21:31:28 -05:00
2019-02-05 21:29:21 -05:00
2018-10-15 23:00:38 -04:00
2019-06-18 19:46:18 -04:00
2019-05-21 06:16:22 -04:00
2019-05-21 06:16:22 -04:00
2018-12-18 23:13:12 -05:00
2018-12-18 23:19:21 -05:00
2019-06-20 15:37:03 -04:00
2019-06-18 19:46:18 -04:00
2018-12-18 23:13:12 -05:00
2018-06-19 22:02:25 -04:00
2019-01-08 07:58:37 -05:00
2018-12-18 23:13:12 -05:00
2019-06-20 15:20:43 -04:00
2018-12-28 14:48:06 -08:00
2018-10-17 21:06:49 -04:00
2018-12-19 21:43:30 -05:00
2018-10-17 21:07:54 -04:00
2018-12-18 23:13:12 -05:00
2019-06-27 00:19:33 -04:00
2019-06-20 15:37:02 -04:00
2018-06-19 22:02:25 -04:00
2019-01-29 01:26:57 -05:00
2019-06-20 15:21:32 -04:00
2019-06-20 15:21:33 -04:00
2018-12-18 23:13:12 -05:00
2019-04-08 12:09:05 +01:00
2019-03-19 17:11:37 -04:00
2018-12-18 23:19:21 -05:00
2019-02-13 22:07:03 -05:00
2019-02-13 22:07:03 -05:00
2018-08-30 07:21:04 -04:00
2019-03-09 16:53:47 -08:00
2019-05-21 06:16:21 -04:00
2019-07-11 20:39:22 -04:00
2019-04-03 23:27:23 -04:00
2019-06-20 15:37:02 -04:00
2019-05-21 06:16:21 -04:00
2019-07-11 20:30:02 -04:00
2019-05-21 06:16:21 -04:00
2019-06-18 19:46:17 -04:00
2019-06-18 19:46:17 -04:00
2019-04-15 22:25:00 -04:00
2019-05-21 06:16:21 -04:00
2019-06-20 15:37:02 -04:00
2019-05-21 06:16:21 -04:00
2019-05-21 06:16:21 -04:00
2019-05-21 06:16:22 -04:00
2019-05-21 06:16:22 -04:00
2019-05-21 06:16:22 -04:00
2019-05-21 06:16:22 -04:00
2019-06-18 19:46:17 -04:00
2018-06-19 22:02:25 -04:00
2019-05-21 06:16:23 -04:00
2019-07-16 22:37:22 -04:00
2019-06-18 19:46:17 -04:00
2019-02-12 22:33:00 -05:00
2019-05-21 06:16:23 -04:00
2019-05-21 06:16:23 -04:00
2018-12-18 23:19:21 -05:00
2018-08-02 15:22:13 -06:00
2019-05-21 06:16:23 -04:00
2019-06-18 19:46:18 -04:00
2018-12-18 23:19:21 -05:00
2019-06-20 15:37:02 -04:00
2018-12-18 23:19:21 -05:00
2018-10-15 23:00:38 -04:00
2018-12-07 21:56:06 -05:00
2019-06-20 17:52:09 -04:00
2019-06-20 14:39:21 -04:00
2019-06-20 15:21:33 -04:00
2019-06-20 15:37:02 -04:00
2018-11-15 14:27:08 -05:00
2018-12-18 23:13:12 -05:00
2018-10-17 21:38:20 -04:00