Input: iqs626a - prohibit inlining of channel parsing functions
authorJeff LaBundy <jeff@labundy.com>
Mon, 29 Nov 2021 07:41:42 +0000 (23:41 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 29 Nov 2021 07:59:35 +0000 (23:59 -0800)
commite1f5e848209a1b51ccae50721b27684c6f9d978f
treed21080cb660e99c3516bed53a213f2f74d16e46f
parent9222ba68c3f4065f6364b99cc641b6b019ef2d42
Input: iqs626a - prohibit inlining of channel parsing functions

Some automated builds report a stack frame size in excess of 2 kB for
iqs626_probe(); the culprit appears to be the call to iqs626_parse_prop().

To solve this problem, specify noinline_for_stack for all of the
iqs626_parse_*() helper functions which are called inside a for loop
within iqs626_parse_prop().

As a result, a build with '-Wframe-larger-than' as low as 512 is free of
any such warnings.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Jeff LaBundy <jeff@labundy.com>
Link: https://lore.kernel.org/r/20211129004104.453930-1-jeff@labundy.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/iqs626a.c