Loading
!11247 [openEuler-22.03-LTS-SP4]UNIC: Using UBL-related macros to isolate UB header files
Merge Pull Request from: @mufengyan UNIC: Using UBL-related macros to isolate UB header files driver inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IAN6V7 CVE: NA ----------------------------------------------------------- To improve the maintainability of the HNS3 and UNIC drivers, the header files used by the UNIC are isolated by using the CONFIG_HNS3_UBL macro. Use CONFIG_UB_UDMA_HNS3 to isolate the header files related to the UDMA and use the CONFIG_UBL macro to isolate the ubl.h file. When the driver runs in UB mode, the debugfs should use ub dentry rather than the nic dentry. Thus we use the macro CONFIG_HNS3_UBL to isolate these two dentries. Signed-off-by:Fengyan Mu <mufengyan@hisilicon.com> Link:https://gitee.com/openeuler/kernel/pulls/11247 Reviewed-by:
Lin Yunsheng <linyunsheng@huawei.com> Signed-off-by:
Yang Yingliang <yangyingliang@huawei.com>