Re: [PATCH] scsi: stex: Fix gcc 13 warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 29 May 2023 12:50:34 -0700, Bart Van Assche wrote:

> gcc 13 may assign another type to enumeration constants than gcc 12. Split
> the large enum at the top of source file stex.c such that the type of the
> constants used in time expressions is changed back to the same type chosen
> by gcc 12. This patch suppresses compiler warnings like this one:
> 
> In file included from ./include/linux/bitops.h:7,
>                  from ./include/linux/kernel.h:22,
>                  from drivers/scsi/stex.c:13:
> drivers/scsi/stex.c: In function ‘stex_common_handshake’:
> ./include/linux/typecheck.h:12:25: error: comparison of distinct pointer types lacks a cast [-Werror]
>    12 |         (void)(&__dummy == &__dummy2); \
>       |                         ^~
> ./include/linux/jiffies.h:106:10: note: in expansion of macro ‘typecheck’
>   106 |          typecheck(unsigned long, b) && \
>       |          ^~~~~~~~~
> drivers/scsi/stex.c:1035:29: note: in expansion of macro ‘time_after’
>  1035 |                         if (time_after(jiffies, before + MU_MAX_DELAY * HZ)) {
>       |                             ^~~~~~~~~~
> 
> [...]

Applied to 6.4/scsi-fixes, thanks!

[1/1] scsi: stex: Fix gcc 13 warnings
      https://git.kernel.org/mkp/scsi/c/6d074ce23177

-- 
Martin K. Petersen	Oracle Linux Engineering



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux