summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorAlison Schofield <alison.schofield@intel.com>2026-11-02 12:15:56 -0800
committerDave Jiang <dave.jiang@intel.com>2026-11-02 13:43:25 -0700
commit20ae97ad33490b2fbe8fc3fff4301d4b62961e65 (patch)
tree3c66f05a50d458a2854079d14528c1a176fd0071 /scripts/Makefile.thinlto
parent6628e7d4c6b25c8d18f1345e3a20d21829aae7e4 (diff)
downloadlinux-next-20ae97ad33490b2fbe8fc3fff4301d4b62961e65.tar.gz
linux-next-20ae97ad33490b2fbe8fc3fff4301d4b62961e65.zip
cxl: Add interleave encoding validity helpers
Some callers of ways_to_eiw(), granularity_to_eig(), and eig_to_granularity() only need to determine whether an input is valid, but must provide storage for a converted value that is then discarded. This obscures the purpose of the call and requires unnecessary temporary variables. Define and use new helpers that provide a validation-only interface for those callers. cxl_port_setup_targets() also encodes and then decodes its calculated granularity solely to validate it. Calculate the granularity directly and validate it instead, making the calculation explicit and removing the encode/decode round trip. No functional change. Suggested-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com> Signed-off-by: Alison Schofield <alison.schofield@intel.com> Reviewed-by: Dave Jiang <dave.jiang@intel.com> Reviewed-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com> Reviewed-by: Richard Cheng <icheng@nvidia.com> Reviewed-by: Li Ming <ming.li@zohomail.com> Link: https://patch.msgid.link/272dd3f8462c651093e61e814a2f394c602340f7.1793649898.git.alison.schofield@intel.com Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions