linux/drivers/staging
Jiri Slaby (SUSE) 2f4926723a tty: gdm724x: use min_t() for size_t varable and a constant
My thinking was that ulong is the same as size_t everywhere. No, size_t
is uint on 32bit. So the below commit introduced a build warning on
32bit:
.../gdm724x/gdm_tty.c:165:24: warning: comparison of distinct pointer types ('typeof (2048UL) *' (aka 'unsigned long *') and 'typeof (remain) *' (aka 'unsigned int *'))

To fix this, partially revert the commit (remove constants' suffixes)
and switch to min_t() in this case instead.

/me would hope for Z (or alike) suffix for constants.

Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Fixes: c3e5c706ae (tty: gdm724x: convert counts to size_t)
Reported-by: Nathan Chancellor <nathan@kernel.org>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202308151953.rNNnAR2N-lkp@intel.com/
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Tested-by: Nathan Chancellor <nathan@kernel.org> # build
Link: https://lore.kernel.org/r/20230816085322.22065-1-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-08-22 14:53:53 +02:00
..
axis-fifo axis-fifo: remove the unnecessary dev_info() 2023-06-17 16:11:01 +02:00
board
emxx_udc staging: emxx_udc: Convert to platform remove callback returning void 2023-04-03 21:49:54 +02:00
fbtft staging: fbtft: ili9341: use macro FBTFT_REGISTER_SPI_DRIVER 2023-07-27 09:53:37 +02:00
fieldbus Driver core changes for 6.4-rc1 2023-04-27 11:53:57 -07:00
gdm724x tty: gdm724x: use min_t() for size_t varable and a constant 2023-08-22 14:53:53 +02:00
greybus tty: make tty_operations::write()'s count size_t 2023-08-11 21:12:46 +02:00
iio staging: iio: Switch i2c drivers back to use .probe() 2023-05-28 17:40:36 +01:00
ks7010 staging: ks7010: potential buffer overflow in ks_wlan_set_encode_ext() 2023-07-27 09:54:33 +02:00
media media: staging: atomisp: select V4L2_FWNODE 2023-07-14 09:14:09 +02:00
most staging: most: Switch i2c driver back to use .probe() 2023-05-28 10:15:29 +01:00
nvec staging: nvec_ps2: Convert to platform remove callback returning void 2023-04-03 21:49:55 +02:00
octeon staging: octeon: delete my name from TODO contact 2023-05-08 16:09:33 +02:00
olpc_dcon staging: olpc_dcon: Switch i2c driver back to use .probe() 2023-05-28 10:15:27 +01:00
pi433 staging: pi433: Remove stray gpiod_unexport() call 2023-05-28 15:07:51 +01:00
qlge Staging: qlge: Fix indentation in conditional statement 2023-03-16 09:44:31 +01:00
rtl8192e staging: rtl8192e: Remove whitespace and blank lines 2023-06-23 10:18:27 +02:00
rtl8192u staging: rtl8192u: add '*/' on separate line in block comments 2023-03-28 13:34:49 +02:00
rtl8712 staging: r8712: Fix memory leak in _r8712_init_xmit_priv() 2023-07-27 09:50:57 +02:00
rtl8723bs staging: rtl8723bs: Fix blank line issues 2023-06-20 16:13:30 +02:00
rts5208 Staging: rts5208: rtsx: Removed new line in else and else if 2023-06-15 12:46:35 +02:00
sm750fb Staging driver updates for 6.5-rc1 2023-07-03 13:07:13 -07:00
vc04_services staging: vchiq_arm: Remove extra struct vchiq_instance declaration 2023-06-20 16:11:16 +02:00
vme_user Driver core changes for 6.4-rc1 2023-04-27 11:53:57 -07:00
vt6655 staging: add HAS_IOPORT dependencies 2023-05-28 10:04:49 +01:00
vt6656 staging: vt6656: remove unused vnt_get_current_tsf() function 2023-03-17 08:07:23 +01:00
wlan-ng drivers: staging: wlan-ng: Remove GPL/MPL boilerplate 2023-05-28 10:14:58 +01:00
Kconfig staging: r8188eu: delete driver 2023-03-09 10:06:28 +01:00
Makefile staging: r8188eu: delete driver 2023-03-09 10:06:28 +01:00