Skip to content

Input: usbtouchscreen - suppress empty array warnings

Johan Hovold linux-input lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Input: usbtouchscreen - suppress empty array warningsdrivers/input/touchscreen/usbtouchscreen.c+2 -02 replies
2/2Input: usbtouchscreen - add driver_info sanity checkdrivers/input/touchscreen/usbtouchscreen.c+3 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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(+)
Signature · 1 line
2.35.1