kdb: Simplify kdb_defcmd macro logic
Switch to use a linked list instead of dynamic array which makes allocation of kdb macro and traversing the kdb macro commands list simpler. Suggested-by: NDaniel Thompson <daniel.thompson@linaro.org> Signed-off-by: NSumit Garg <sumit.garg@linaro.org> Reviewed-by: NDouglas Anderson <dianders@chromium.org> Link: https://lore.kernel.org/r/20210712134620.276667-4-sumit.garg@linaro.orgSigned-off-by: NDaniel Thompson <daniel.thompson@linaro.org>
Showing
想要评论请 注册 或 登录