提交 f14ae5f1 编写于 作者: P Peng Li 提交者: Zheng Zengkai

net: hns3: change hclge_parse_speed() param type

mainline inclusion
from mainline-v5.12-rc1-dontuse
commit 6e7f109e
category: feature
bugzilla: 173966
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6e7f109ee9d8ed94a8c403e4daf34e752602148b

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

The type of parameters in hclge_parse_speed() should be
unsigned type, so change them.
Signed-off-by: NPeng Li <lipeng321@huawei.com>
Signed-off-by: NHuazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
Reviewed-by: NYongxin Li <liyongxin1@huawei.com>
Signed-off-by: NJunxin Chen <chenjunxin1@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 4d714389
...@@ -928,7 +928,7 @@ static int hclge_query_pf_resource(struct hclge_dev *hdev) ...@@ -928,7 +928,7 @@ static int hclge_query_pf_resource(struct hclge_dev *hdev)
return 0; return 0;
} }
static int hclge_parse_speed(int speed_cmd, int *speed) static int hclge_parse_speed(u8 speed_cmd, u32 *speed)
{ {
switch (speed_cmd) { switch (speed_cmd) {
case 6: case 6:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册