Skip to content
Commit 82507210 authored by Kevin Hao's avatar Kevin Hao Committed by Bruce Ashfield
Browse files

drivers: soc: fwlog: Use max_t() to fix the comparison warning



We definitely need a cast for this comparison, so use max_t() to fix
the following build warning.
include/linux/minmax.h:20:35: warning: comparison of distinct pointer types lacks a cast
   20 |         (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
      |                                   ^~
drivers/soc/marvell/fwlog.c:61:33: note: in expansion of macro 'max'
   61 |                                 max(rdbuf - fwlog_buf, *ppos);
      |                                 ^~~

Signed-off-by: default avatarKevin Hao <kexin.hao@windriver.com>
Signed-off-by: default avatarBruce Ashfield <bruce.ashfield@gmail.com>
parent e6800410
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment