[PATCH 0/2] Input: usbtouchscreen - suppress empty array warnings

From: Johan Hovold
Date: Mon Jun 20 2022 - 04:51:59 EST


I ran into some new (?) compiler warnings with -rc3 this morning. Not
sure if it's after updating to GCC 11.3.0 a few weeks ago, or due to
some other change.

Either way, making sure that the device info table is non empty is
straight forward and the sentinel value can also be used to protect
against potential future bugs due to the somewhat fragile driver
ifdeffery.

Johan


Johan Hovold (2):
Input: usbtouchscreen - suppress empty array warnings
Input: usbtouchscreen - add driver_info sanity check

drivers/input/touchscreen/usbtouchscreen.c | 5 +++++
1 file changed, 5 insertions(+)

--
2.35.1