On Thu, Dec 14, 2023 at 10:11:34PM +0800, Jijie Shao wrote:Yeah, I also plan to move them to hclge_debugfs.c.
#include "hclge_main.h"Hi Jijie Shao and Peiyang Wang,
+#include "hclge_debugfs.h"
hclge_debugfs.h defines a number of constants, such as hclge_dbg_tqp_reg.
With the above include added, these constants are now also defined
in files that include hclge_err.h. Which leads to them
being defined but unused in hclge_main.c.
At a glance, it seems that these constants are only used in hclge_debugfs.c.
Perhaps they could simply be moved there?