net: hns3: add a 'U' type after integer literals for a macro
driver inclusion category: bugfix bugzilla: NA CVE: NA Integer literals in C code are always of the type int, and macro HCLGE_BUF_SIZE_UNIT is used in roundup to calculate aligned value for hardware's SSU(storage switching unit) buffer allocation, which has signed-unsigned mix with divide warning detected by static checker, bacause hdev->mps is a u32 type. This patch add 'U' after the integer literal to remove the warning. Feature or Bugfix:Bugfix Signed-off-by: NYunsheng Lin <linyunsheng@huawei.com> Reviewed-by: Nlipeng <lipeng321@huawei.com> Reviewed-by: NXie XiuQi <xiexiuqi@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录