cxl/mbox: Move build of user mailbox cmd to a helper functions
authorAlison Schofield <alison.schofield@intel.com>
Thu, 31 Mar 2022 01:27:13 +0000 (18:27 -0700)
committerDan Williams <dan.j.williams@intel.com>
Tue, 12 Apr 2022 23:07:00 +0000 (16:07 -0700)
commit63cf60b7e0a556b3542e6e915dfe9c93eaa559fd
treed87b58aea2a40efa7b1fd341c369d1e79420c901
parent39ed8da4f341c8dbe9c15f716d3a328269a07fc7
cxl/mbox: Move build of user mailbox cmd to a helper functions

In preparation for moving the construction of a mailbox command
to the validation path, extract the work into a helper functions.

Signed-off-by: Alison Schofield <alison.schofield@intel.com>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Link: https://lore.kernel.org/r/493d7618a846d787c3ae28778935ca35e2b85eed.1648687552.git.alison.schofield@intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/core/mbox.c