Message ID | 20210117191044.533725-1-trix@redhat.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 99d518970c5a1901e83cdd4a0a6ff5a41ba56a56 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | net: hns: fix variable used when DEBUG is defined | expand |
Context | Check | Description |
---|---|---|
netdev/cover_letter | success | Link |
netdev/fixes_present | success | Link |
netdev/patch_count | success | Link |
netdev/tree_selection | success | Guessed tree name to be net-next |
netdev/subject_prefix | warning | Target tree name not specified in the subject |
netdev/cc_maintainers | warning | 3 maintainers not CCed: linyunsheng@huawei.com f.fainelli@gmail.com saeedm@mellanox.com |
netdev/source_inline | success | Was 0 now: 0 |
netdev/verify_signedoff | success | Link |
netdev/module_param | success | Was 0 now: 0 |
netdev/build_32bit | success | Errors and warnings before: 0 this patch: 0 |
netdev/kdoc | success | Errors and warnings before: 0 this patch: 0 |
netdev/verify_fixes | success | Link |
netdev/checkpatch | success | total: 0 errors, 0 warnings, 0 checks, 8 lines checked |
netdev/build_allmodconfig_warn | success | Errors and warnings before: 0 this patch: 0 |
netdev/header_inline | success | Link |
netdev/stable | success | Stable not CCed |
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Sun, 17 Jan 2021 11:10:44 -0800 you wrote: > From: Tom Rix <trix@redhat.com> > > When DEBUG is defined this error occurs > > drivers/net/ethernet/hisilicon/hns/hns_enet.c:1505:36: error: > ‘struct net_device’ has no member named ‘ae_handle’; > did you mean ‘rx_handler’? > assert(skb->queue_mapping < ndev->ae_handle->q_num); > ^~~~~~~~~ > > [...] Here is the summary with links: - net: hns: fix variable used when DEBUG is defined https://git.kernel.org/netdev/net-next/c/99d518970c5a You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
diff --git a/drivers/net/ethernet/hisilicon/hns/hns_enet.c b/drivers/net/ethernet/hisilicon/hns/hns_enet.c index 858cb293152a..5d7824d2b4d4 100644 --- a/drivers/net/ethernet/hisilicon/hns/hns_enet.c +++ b/drivers/net/ethernet/hisilicon/hns/hns_enet.c @@ -1502,7 +1502,7 @@ static netdev_tx_t hns_nic_net_xmit(struct sk_buff *skb, { struct hns_nic_priv *priv = netdev_priv(ndev); - assert(skb->queue_mapping < ndev->ae_handle->q_num); + assert(skb->queue_mapping < priv->ae_handle->q_num); return hns_nic_net_xmit_hw(ndev, skb, &tx_ring_data(priv, skb->queue_mapping));