diff options
author | Jarkko Nikula <jarkko.nikula@linux.intel.com> | 2015-05-20 13:36:52 (GMT) |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2015-06-02 15:28:40 (GMT) |
commit | 7ef85f5fdd081b982d43b95b06272f8646a98818 (patch) | |
tree | 6346bfd275c21ddf6195bd16834f47df8eefa0b0 /lib/test-kstrtox.c | |
parent | edc9102a8e00450871ce523da3ad7b6ea2f11069 (diff) | |
download | linux-7ef85f5fdd081b982d43b95b06272f8646a98818.tar.xz |
i2c: core: Reduce stack size of acpi_i2c_space_handler()
sizeof(struct i2c_client) is 1088 bytes on a CONFIG_X86_64=y build and
produces following warning when CONFIG_FRAME_WARN is set to 1024:
drivers/i2c/i2c-core.c: In function ‘acpi_i2c_space_handler’:
drivers/i2c/i2c-core.c:367:1: warning: the frame size of 1152 bytes is
larger than 1024 bytes [-Wframe-larger-than=]
This is not critical given that kernel stack is 16 kB on x86_64 but lets
reduce the stack usage by allocating the struct i2c_client from the heap.
Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'lib/test-kstrtox.c')
0 files changed, 0 insertions, 0 deletions