From: Jarkko Nikula Date: Wed, 20 May 2015 13:36:52 +0000 (+0300) Subject: i2c: core: Reduce stack size of acpi_i2c_space_handler() X-Git-Tag: omap-for-v4.2/fixes-rc1^2~108^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ef85f5fdd081b982d43b95b06272f8646a98818;p=pandora-kernel.git 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 Acked-by: Mika Westerberg Signed-off-by: Wolfram Sang --- Reading git-diff-tree failed