Input: iqs626a - prohibit inlining of channel parsing functions
authorJeff LaBundy <jeff@labundy.com>
Mon, 29 Nov 2021 07:41:42 +0000 (23:41 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Dec 2021 11:29:00 +0000 (12:29 +0100)
commit70750056620b241dee3bf8f2e0f56bdf63bb4aca
treed111768545b02516cafb6fce2393c01ac4f66f91
parent2f06c8293d27f6337f907042c602c9c953988c48
Input: iqs626a - prohibit inlining of channel parsing functions

commit e1f5e848209a1b51ccae50721b27684c6f9d978f upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/input/misc/iqs626a.c