<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/drivers/net/ethernet/huawei, branch linux-5.14.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.</subtitle>
<id>https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-5.14.y</id>
<link rel='self' href='https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-5.14.y'/>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/'/>
<updated>2021-05-17T21:12:38Z</updated>
<entry>
<title>net: huawei: hinic: Fix wrong function name in comments</title>
<updated>2021-05-17T21:12:38Z</updated>
<author>
<name>Yang Shen</name>
<email>shenyang39@huawei.com</email>
</author>
<published>2021-05-17T04:45:23Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=d6174870c0f1f1049bd4ae1971527fd5901fedf9'/>
<id>urn:sha1:d6174870c0f1f1049bd4ae1971527fd5901fedf9</id>
<content type='text'>
Fixes the following W=1 kernel build warning(s):
 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c:604: warning: expecting prototype for cmdq_arm_ceq_handler(). Prototype was for cmdq_sync_cmd_handler() instead
 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c:59: warning: expecting prototype for get_capability(). Prototype was for parse_capability() instead
 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c:101: warning: expecting prototype for get_cap_from_fw(). Prototype was for get_capability() instead
 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c:355: warning: expecting prototype for clear_io_resource(). Prototype was for clear_io_resources() instead
 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c:1100: warning: expecting prototype for hinic_hwdev_get_sq(). Prototype was for hinic_hwdev_get_rq() instead
 drivers/net/ethernet/huawei/hinic/hinic_hw_if.c:341: warning: expecting prototype for dma_attr_table_init(). Prototype was for dma_attr_init() instead
 drivers/net/ethernet/huawei/hinic/hinic_hw_qp.c:904: warning: expecting prototype for hinic_put_wqe(). Prototype was for hinic_rq_put_wqe() instead
 drivers/net/ethernet/huawei/hinic/hinic_main.c:241: warning: expecting prototype for create_txqs(). Prototype was for create_rxqs() instead
 drivers/net/ethernet/huawei/hinic/hinic_main.c:295: warning: expecting prototype for free_txqs(). Prototype was for free_rxqs() instead
 drivers/net/ethernet/huawei/hinic/hinic_tx.c:667: warning: expecting prototype for free_all_rx_skbs(). Prototype was for free_all_tx_skbs() instead

Cc: Bin Luo &lt;luobin9@huawei.com&gt;
Signed-off-by: Yang Shen &lt;shenyang39@huawei.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: hinic: fix misspelled "acessing"</title>
<updated>2021-05-13T22:39:10Z</updated>
<author>
<name>Guangbin Huang</name>
<email>huangguangbin2@huawei.com</email>
</author>
<published>2021-05-13T06:26:53Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=5db8c86e8904e2dc9c27a61fc9b77131c8751d67'/>
<id>urn:sha1:5db8c86e8904e2dc9c27a61fc9b77131c8751d67</id>
<content type='text'>
The word "acessing" is misspelled, so fix it.

Signed-off-by: Guangbin Huang &lt;huangguangbin2@huawei.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: hinic: remove unnecessary parentheses</title>
<updated>2021-05-13T22:39:10Z</updated>
<author>
<name>Guangbin Huang</name>
<email>huangguangbin2@huawei.com</email>
</author>
<published>2021-05-13T06:26:52Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=c8ad5df6151e457ad995fdee6440a45af09b70f6'/>
<id>urn:sha1:c8ad5df6151e457ad995fdee6440a45af09b70f6</id>
<content type='text'>
There are some unnecessary parentheses, this patch deletes them.

Signed-off-by: Guangbin Huang &lt;huangguangbin2@huawei.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: hinic: add blank line after function declaration</title>
<updated>2021-05-13T22:39:10Z</updated>
<author>
<name>Guangbin Huang</name>
<email>huangguangbin2@huawei.com</email>
</author>
<published>2021-05-13T06:26:51Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=3402ab54a8e37a48f72b8b3dad543bb839ec4d2d'/>
<id>urn:sha1:3402ab54a8e37a48f72b8b3dad543bb839ec4d2d</id>
<content type='text'>
There should be a blank line after function declaration, so add two
missed blank lines.

Signed-off-by: Guangbin Huang &lt;huangguangbin2@huawei.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: hinic: remove unnecessary blank line</title>
<updated>2021-05-13T22:39:10Z</updated>
<author>
<name>Guangbin Huang</name>
<email>huangguangbin2@huawei.com</email>
</author>
<published>2021-05-13T06:26:50Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=9afcb59597301c8e8dca8ba855f5ec74f918a479'/>
<id>urn:sha1:9afcb59597301c8e8dca8ba855f5ec74f918a479</id>
<content type='text'>
There are two blank lines are unnecessary, this patch removes them.

Signed-off-by: Guangbin Huang &lt;huangguangbin2@huawei.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>hinic: avoid gcc -Wrestrict warning</title>
<updated>2021-03-25T01:00:32Z</updated>
<author>
<name>Arnd Bergmann</name>
<email>arnd@arndb.de</email>
</author>
<published>2021-03-24T13:07:22Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=84c7f6c33f42a12eb036ebf0f0e3670799304120'/>
<id>urn:sha1:84c7f6c33f42a12eb036ebf0f0e3670799304120</id>
<content type='text'>
With extra warnings enabled, gcc complains that snprintf should not
take the same buffer as source and destination:

drivers/net/ethernet/huawei/hinic/hinic_ethtool.c: In function 'hinic_set_settings_to_hw':
drivers/net/ethernet/huawei/hinic/hinic_ethtool.c:480:9: error: 'snprintf' argument 4 overlaps destination object 'set_link_str' [-Werror=restrict]
  480 |   err = snprintf(set_link_str, SET_LINK_STR_MAX_LEN,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  481 |           "%sspeed %d ", set_link_str, speed);
      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/huawei/hinic/hinic_ethtool.c:464:7: note: destination object referenced by 'restrict'-qualified argument 1 was declared here
  464 |  char set_link_str[SET_LINK_STR_MAX_LEN] = {0};

Rewrite this to avoid the nested sprintf and instead use separate
buffers, which is simpler.

Cc: Rasmus Villemoes &lt;linux@rasmusvillemoes.dk&gt;
Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Reviewed-by: Rasmus Villemoes &lt;linux@rasmusvillemoes.dk&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>hinic: Remove unused variable.</title>
<updated>2021-03-19T19:02:54Z</updated>
<author>
<name>David S. Miller</name>
<email>davem@davemloft.net</email>
</author>
<published>2021-03-19T19:02:54Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=fc72d4773c6b2ed860e69c646c9f3b9b9e38ad45'/>
<id>urn:sha1:fc72d4773c6b2ed860e69c646c9f3b9b9e38ad45</id>
<content type='text'>
drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c: In function ‘mgmt_recv_msg_handler’:
drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c:443:18: warning: unused variable ‘pdev’ [-Wunused-variable]
  443 |  struct pci_dev *pdev = pf_to_mgmt-&gt;hwif-&gt;pdev;
      |                  ^~~~

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: hinic: convert strlcpy to strscpy</title>
<updated>2021-03-19T18:53:17Z</updated>
<author>
<name>Daode Huang</name>
<email>huangdaode@huawei.com</email>
</author>
<published>2021-03-19T06:36:25Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=79d65cab7f8535d7e19a16651aa45ea674cf4069'/>
<id>urn:sha1:79d65cab7f8535d7e19a16651aa45ea674cf4069</id>
<content type='text'>
Usage of strlcpy in linux kernel has been recently
deprecated[1], so convert hinic driver to strscpy

[1] https://lore.kernel.org/lkml/CAHk-=wgfRnXz0W3D37d01q3JFkr_i_uTL
=V6A6G1oUZcprmknw@mail.gmail.com/

Signed-off-by: Daode Huang &lt;huangdaode@huawei.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: hinic: remove the repeat word "the" in comment.</title>
<updated>2021-03-19T18:53:17Z</updated>
<author>
<name>Daode Huang</name>
<email>huangdaode@huawei.com</email>
</author>
<published>2021-03-19T06:36:24Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=e2f84fd17557ab3b0e8a2fcc98bc5133ee89a495'/>
<id>urn:sha1:e2f84fd17557ab3b0e8a2fcc98bc5133ee89a495</id>
<content type='text'>
There is a duplicate "the" in the comment, so delete it.

Signed-off-by: Daode Huang &lt;huangdaode@huawei.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: hinic: add a blank line after declarations</title>
<updated>2021-03-19T18:53:17Z</updated>
<author>
<name>Daode Huang</name>
<email>huangdaode@huawei.com</email>
</author>
<published>2021-03-19T06:36:23Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=44401b677a52d6e425e6e948dd6e65c720dc66c6'/>
<id>urn:sha1:44401b677a52d6e425e6e948dd6e65c720dc66c6</id>
<content type='text'>
There should be a blank line after declarations, so just add it.

Signed-off-by: Daode Huang &lt;huangdaode@huawei.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
