]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cxl/core: Split decoder setup into alloc + add
authorDan Williams <dan.j.williams@intel.com>
Tue, 24 Aug 2021 16:07:56 +0000 (09:07 -0700)
committerDan Williams <dan.j.williams@intel.com>
Tue, 24 Aug 2021 19:08:31 +0000 (12:08 -0700)
commitb7ca54b625514464bac2db59b754e95c49b66fb5
treec7c97dd00aaba6d9ad47d8eecdfefb53c81e9d76
parentcf745ca94024300c9148192f4a2089e6957fc665
cxl/core: Split decoder setup into alloc + add

The kbuild robot reports:

    drivers/cxl/core/bus.c:516:1: warning: stack frame size (1032) exceeds
    limit (1024) in function 'devm_cxl_add_decoder'

It is also the case the devm_cxl_add_decoder() is unwieldy to use for
all the different decoder types. Fix the stack usage by splitting the
creation into alloc and add steps. This also allows for context
specific construction before adding.

Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/r/162982127644.1124374.2704629829686138331.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/acpi.c
drivers/cxl/core/bus.c
drivers/cxl/cxl.h