Yanteng Si
8728a81b8f
spi: Fix distinct pointer types warning for ARCH=mips
...
Fix a new warning report by build for make ARCH=MIPS allmodconfig:
drivers/spi/spi-cadence-quadspi.c: In function 'cqspi_direct_read_execute':
./include/linux/minmax.h:18:28: warning: comparison of distinct pointer types lacks a cast
18 | (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
| ^~
./include/linux/minmax.h:32:4: note: in expansion of macro '__typecheck'
32 | (__typecheck(x, y) && __no_side_effects(x, y))
| ^~~~~~~~~~~
./include/linux/minmax.h:42:24: note: in expansion of macro '__safe_cmp'
42 | __builtin_choose_expr(__safe_cmp(x, y), \
| ^~~~~~~~~~
./include/linux/minmax.h:58:19: note: in expansion of macro '__careful_cmp'
58 | #define max(x, y) __careful_cmp(x, y, >)
| ^~~~~~~~~~~~~
drivers/spi/spi-cadence-quadspi.c:1153:24: note: in expansion of macro 'max'
1153 | msecs_to_jiffies(max(len, 500UL)))) {
| ^~~
"len" is unsigned,however,"500" is unsigned long.
Signed-off-by: Yanteng Si <siyanteng@loongson.cn>
Link: https://lore.kernel.org/r/20210107115704.3835282-1-siyanteng@loongson.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
2021-01-08 14:00:45 +00:00
..
2020-12-07 17:18:27 +00:00
2021-01-06 13:09:30 +00:00
2021-01-06 13:09:30 +00:00
2020-06-24 16:37:47 +01:00
2020-11-23 20:42:05 +00:00
2020-12-07 14:18:59 +00:00
2020-08-18 17:52:37 +01:00
2020-07-17 16:38:54 +01:00
2019-09-04 17:15:29 +01:00
2020-10-30 12:56:14 +00:00
2019-05-30 11:26:37 -07:00
2020-04-09 18:46:53 +01:00
2020-11-09 19:44:30 +00:00
2020-06-17 14:29:58 +01:00
2020-11-12 15:05:35 +00:00
2020-11-13 18:22:24 +00:00
2020-11-12 15:05:37 +00:00
2019-06-19 17:09:09 +02:00
2020-07-17 16:38:45 +01:00
2019-06-19 17:09:09 +02:00
2019-07-31 14:13:13 -06:00
2021-01-08 14:00:45 +00:00
2020-10-09 16:00:47 +01:00
2019-09-04 17:17:27 +01:00
2020-06-16 00:38:39 +01:00
2019-10-15 11:51:57 +01:00
2019-09-04 17:17:36 +01:00
2020-07-17 00:55:26 +01:00
2020-12-07 14:18:47 +00:00
2019-06-05 17:37:10 +02:00
2020-12-17 17:09:51 +00:00
2020-12-09 12:14:22 +00:00
2020-10-08 23:00:18 +01:00
2020-12-09 12:14:23 +00:00
2020-10-08 23:00:06 +01:00
2020-12-09 12:14:22 +00:00
2020-03-27 15:52:23 +00:00
2020-07-17 16:38:47 +01:00
2019-10-15 11:46:57 +01:00
2020-11-11 12:34:29 +00:00
2020-08-23 17:36:59 -05:00
2019-05-30 11:26:32 -07:00
2020-12-01 12:17:13 +00:00
2020-10-09 16:01:22 +01:00
2019-05-30 11:26:32 -07:00
2019-08-28 14:10:41 +01:00
2020-11-12 18:45:56 +00:00
2020-07-17 00:55:25 +01:00
2020-11-30 12:52:49 +00:00
2019-05-30 11:26:32 -07:00
2020-12-18 17:42:17 +00:00
2020-12-07 14:18:54 +00:00
2020-09-28 20:33:56 +01:00
2020-11-02 15:53:25 +00:00
2020-11-27 16:18:32 +00:00
2019-05-30 11:26:41 -07:00
2020-01-06 09:45:59 +01:00
2020-09-17 19:56:02 +01:00
2019-07-31 14:13:13 -06:00
2020-09-02 19:38:24 +01:00
2019-09-04 17:18:35 +01:00
2021-01-06 13:09:31 +00:00
2020-07-17 16:38:48 +01:00
2020-07-17 16:38:48 +01:00
2019-10-15 11:51:57 +01:00
2019-06-05 17:37:16 +02:00
2019-10-15 11:51:57 +01:00
2020-07-22 01:56:00 +01:00
2020-12-07 14:18:59 +00:00
2020-12-07 14:18:53 +00:00
2020-09-08 18:19:27 +01:00
2020-12-07 14:18:52 +00:00
2020-11-18 18:00:26 +00:00
2020-12-07 14:19:00 +00:00
2020-07-01 23:21:28 +01:00
2020-11-23 14:10:02 +00:00
2020-07-09 22:41:11 +01:00
2020-09-22 01:04:20 +01:00
2020-07-14 17:38:46 +01:00
2020-07-15 15:58:33 +01:00
2020-12-28 12:25:31 +00:00
2019-09-04 17:20:52 +01:00
2020-11-12 15:16:34 +00:00
2020-07-17 16:38:50 +01:00
2020-07-22 01:55:52 +01:00
2019-06-19 17:09:55 +02:00
2019-05-21 10:50:45 +02:00
2020-12-07 14:18:50 +00:00
2019-06-19 17:09:55 +02:00
2020-12-07 14:18:49 +00:00
2020-09-14 15:50:04 +01:00
2020-12-07 14:18:55 +00:00
2020-10-26 23:29:04 +00:00
2020-12-31 12:46:31 +00:00
2020-08-20 22:38:17 +01:00
2020-08-19 21:40:14 +02:00
2020-10-24 10:33:08 -07:00
2020-10-02 21:54:24 +01:00
2020-12-07 14:18:56 +00:00
2019-10-15 11:51:57 +01:00
2020-04-14 18:36:34 +01:00
2019-06-19 17:09:55 +02:00
2020-12-07 14:18:50 +00:00
2019-11-04 13:26:11 +00:00
2019-12-16 11:57:36 +00:00
2019-10-01 12:34:58 +01:00
2020-09-14 15:50:17 +01:00
2020-11-11 12:39:32 +00:00
2020-11-12 15:16:35 +00:00
2020-11-09 19:44:25 +00:00
2021-01-05 14:35:28 +00:00
2020-07-27 14:55:21 +01:00
2020-10-26 23:29:05 +00:00
2020-11-12 15:16:33 +00:00
2020-11-09 19:44:28 +00:00
2020-11-09 19:44:27 +00:00
2020-11-09 19:44:29 +00:00
2021-01-06 13:09:32 +00:00
2019-05-30 11:26:37 -07:00
2020-11-09 19:44:26 +00:00
2019-06-19 17:09:55 +02:00
2020-09-21 17:56:38 +01:00
2020-05-11 18:17:52 +01:00
2019-10-15 11:51:57 +01:00
2020-09-17 19:56:01 +01:00
2019-09-04 17:23:28 +01:00
2019-10-01 12:35:18 +01:00
2020-07-17 16:38:51 +01:00
2020-09-24 12:59:29 +01:00
2020-12-28 14:21:31 +00:00
2020-09-09 16:27:46 +01:00