mirror of https://github.com/torvalds/linux.git
The comparison against SIZE_MAX produces a harmless warning on 64-bit
architectures:
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c:185:16: error: result of comparison of constant 419244183493398898 with expression of type 'unsigned int' is always false [-Werror,-Wtautological-constant-out-of-range-compare]
if (num_pages > (SIZE_MAX - sizeof(struct pagelist) -
~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Shut up that warning by adding a cast to a longer type.
Fixes:
|
||
|---|---|---|
| .. | ||
| android | ||
| axis-fifo | ||
| board | ||
| clocking-wizard | ||
| emxx_udc | ||
| fbtft | ||
| fieldbus | ||
| fwserial | ||
| gdm724x | ||
| greybus | ||
| gs_fpgaboot | ||
| iio | ||
| ks7010 | ||
| media | ||
| most | ||
| mt7621-dma | ||
| mt7621-dts | ||
| mt7621-pci | ||
| netlogic | ||
| nvec | ||
| octeon | ||
| octeon-usb | ||
| olpc_dcon | ||
| pi433 | ||
| qlge | ||
| r8188eu | ||
| ralink-gdma | ||
| rtl8192e | ||
| rtl8192u | ||
| rtl8712 | ||
| rtl8723bs | ||
| rts5208 | ||
| sm750fb | ||
| unisys | ||
| vc04_services | ||
| vme | ||
| vt6655 | ||
| vt6656 | ||
| wfx | ||
| wlan-ng | ||
| Kconfig | ||
| Makefile | ||