cxl/mbox: Convert 'enabled_cmds' to DECLARE_BITMAP
authorDan Williams <dan.j.williams@intel.com>
Thu, 9 Sep 2021 05:12:44 +0000 (22:12 -0700)
committerDan Williams <dan.j.williams@intel.com>
Tue, 21 Sep 2021 20:44:57 +0000 (13:44 -0700)
commitff56ab9e164d71c4a6ae33fc61ae856faec265a1
treeea60c66550721dd3e30a8c8d1092168aca880cca
parent5a2328f4e872a5bcbb2ff790497f000e8f79b152
cxl/mbox: Convert 'enabled_cmds' to DECLARE_BITMAP

Define enabled_cmds as an embedded member of 'struct cxl_mem' rather
than a pointer to another dynamic allocation.

As this leaves only one user of cxl_cmd_count, just open code it and
delete the helper.

Acked-by: Ben Widawsky <ben.widawsky@intel.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/163116436415.2460985.10101824045493194813.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/core/mbox.c
drivers/cxl/cxlmem.h