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