提交 9b1dbfef 编写于 作者: X Xiongfeng Wang 提交者: Zheng Zengkai

asm-generic: Add missing brackets for io_stop_wc macro

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I4QKQ3

---------------------------

After using io_stop_wc(), drivers reports following compile error when
compiled on X86.

  drivers/net/ethernet/hisilicon/hns3/hns3_enet.c: In function ‘hns3_tx_push_bd’:
  drivers/net/ethernet/hisilicon/hns3/hns3_enet.c:2058:12: error: expected ‘;’ before ‘(’ token
    io_stop_wc();
              ^
It is because I missed to add the brackets after io_stop_wc macro. So
let's add the missing brackets.

Fixes: d5624bb2 ("asm-generic: introduce io_stop_wc() and add implementation for ARM64")
Reported-by: NGuangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: NXiongfeng Wang <wangxiongfeng2@huawei.com>
Reviewed-by: NCheng Jian <cj.chengjian@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 6b6cf708
......@@ -259,7 +259,7 @@ do { \
* write-combining memory accesses before this macro with those after it.
*/
#ifndef io_stop_wc
#define io_stop_wc do { } while (0)
#define io_stop_wc() do { } while (0)
#endif
#endif /* !__ASSEMBLY__ */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册