WARNING: line length of 91 exceeds 80 columns #335: FILE: drivers/net/ethernet/alibaba/eea/eea_adminq.c:179: + netdev_err(enet->netdev, "adminq exec failed. cmd: %d ret %d\n", cmd, ret); WARNING: line length of 83 exceeds 80 columns #366: FILE: drivers/net/ethernet/alibaba/eea/eea_adminq.c:210: + ret = eea_adminq_submit(enet, cmd, req_addr, res_addr, req_size, res_size); WARNING: line length of 81 exceeds 80 columns #422: FILE: drivers/net/ethernet/alibaba/eea/eea_adminq.c:266: +static void qcfg_fill(struct eea_aq_create *qcfg, struct ering *ering, u32 flags) WARNING: line length of 81 exceeds 80 columns #484: FILE: drivers/net/ethernet/alibaba/eea/eea_adminq.c:328: + ering->db = eea_pci_db_addr(ering->edev, le32_to_cpu(db_buf[i])); WARNING: Missing a blank line after declarations #522: FILE: drivers/net/ethernet/alibaba/eea/eea_adminq.c:366: + struct aq_dev_status *dev_status; + void *req __free(kfree); WARNING: quoted string split across lines #606: FILE: drivers/net/ethernet/alibaba/eea/eea_adminq.c:450: + dev_err(dev, "Device has refused the initialization " + "due to provided host information\n"); WARNING: line length of 96 exceeds 80 columns #611: FILE: drivers/net/ethernet/alibaba/eea/eea_adminq.c:455: + dev_warn(dev, "Device replied in host_info config: %s", rep->reply_str); WARNING: line length of 81 exceeds 80 columns #851: FILE: drivers/net/ethernet/alibaba/eea/eea_desc.h:149: +static_assert(sizeof(struct eea_rx_cdesc) == 32, "rx cdesc size does not match"); WARNING: line length of 81 exceeds 80 columns #853: FILE: drivers/net/ethernet/alibaba/eea/eea_desc.h:151: +static_assert(sizeof(struct eea_tx_cdesc) == 32, "tx cdesc size does not match"); WARNING: line length of 85 exceeds 80 columns #1030: FILE: drivers/net/ethernet/alibaba/eea/eea_ethtool.c:169: + ethtool_sprintf(&p, "rx%u_%s", i, eea_rx_stats_desc[j].desc); WARNING: line length of 85 exceeds 80 columns #1035: FILE: drivers/net/ethernet/alibaba/eea/eea_ethtool.c:174: + ethtool_sprintf(&p, "tx%u_%s", i, eea_tx_stats_desc[j].desc); WARNING: line length of 84 exceeds 80 columns #1059: FILE: drivers/net/ethernet/alibaba/eea/eea_ethtool.c:198: + data[idx + i] = u64_stats_read(stats_base + desc[i].offset); WARNING: line length of 87 exceeds 80 columns #1089: FILE: drivers/net/ethernet/alibaba/eea/eea_ethtool.c:228: +void eea_update_rx_stats(struct eea_rx_stats *rx_stats, struct eea_rx_ctx_stats *stats) WARNING: line length of 82 exceeds 80 columns #1114: FILE: drivers/net/ethernet/alibaba/eea/eea_ethtool.c:253: + start = u64_stats_fetch_begin(&rx->stats.syncp); WARNING: line length of 81 exceeds 80 columns #1117: FILE: drivers/net/ethernet/alibaba/eea/eea_ethtool.c:256: + } while (u64_stats_fetch_retry(&rx->stats.syncp, start)); WARNING: line length of 82 exceeds 80 columns #1129: FILE: drivers/net/ethernet/alibaba/eea/eea_ethtool.c:268: + start = u64_stats_fetch_begin(&tx->stats.syncp); WARNING: line length of 81 exceeds 80 columns #1132: FILE: drivers/net/ethernet/alibaba/eea/eea_ethtool.c:271: + } while (u64_stats_fetch_retry(&tx->stats.syncp, start)); WARNING: line length of 88 exceeds 80 columns #1222: FILE: drivers/net/ethernet/alibaba/eea/eea_ethtool.h:45: +void eea_update_rx_stats(struct eea_rx_stats *rx_stats, struct eea_rx_ctx_stats *stats); WARNING: line length of 96 exceeds 80 columns #1480: FILE: drivers/net/ethernet/alibaba/eea/eea_net.c:247: + netdev_err(netdev, "netdev open err, because link error: %d\n", enet->link_err); WARNING: line length of 98 exceeds 80 columns #1517: FILE: drivers/net/ethernet/alibaba/eea/eea_net.c:284: + netdev_warn(enet->netdev, "eea reset: alloc q failed. stop reset. err %d\n", err); WARNING: line length of 88 exceeds 80 columns #1528: FILE: drivers/net/ethernet/alibaba/eea/eea_net.c:295: + "eea reset: active new ring and irq failed. err %d\n", err); WARNING: line length of 90 exceeds 80 columns #1534: FILE: drivers/net/ethernet/alibaba/eea/eea_net.c:301: + netdev_warn(enet->netdev, "eea reset: start queue failed. err %d\n", err); WARNING: line length of 94 exceeds 80 columns #1660: FILE: drivers/net/ethernet/alibaba/eea/eea_net.c:427: + dev_err(edev->dma_dev, "device MTU too small. %d < %d", mtu, netdev->min_mtu); WARNING: line length of 91 exceeds 80 columns #1689: FILE: drivers/net/ethernet/alibaba/eea/eea_net.c:456: + dev_warn(edev->dma_dev, "alloc_etherdev_mq failed with pairs %d\n", pairs); WARNING: line length of 93 exceeds 80 columns #2082: FILE: drivers/net/ethernet/alibaba/eea/eea_pci.c:59: +#define cfg_pointer(reg, item) ((void __iomem *)((reg) + offsetof(struct eea_pci_cfg, item))) WARNING: line length of 83 exceeds 80 columns #2098: FILE: drivers/net/ethernet/alibaba/eea/eea_pci.c:75: +static int __eea_pci_probe(struct pci_dev *pci_dev, struct eea_pci_device *ep_dev); WARNING: line length of 85 exceeds 80 columns #2273: FILE: drivers/net/ethernet/alibaba/eea/eea_pci.c:250: + ering->db = eea_pci_db_addr(ering->edev, cfg_read32(ep_dev->reg, aq_db_off)); WARNING: line length of 81 exceeds 80 columns #2288: FILE: drivers/net/ethernet/alibaba/eea/eea_pci.c:265: + irqreturn_t (*callback)(int irq, void *data), void *data) WARNING: line length of 81 exceeds 80 columns #2315: FILE: drivers/net/ethernet/alibaba/eea/eea_pci.c:292: + pci_read_config_word(ep_dev->pci_dev, ep_dev->reset_pos, &reset); WARNING: line length of 82 exceeds 80 columns #2317: FILE: drivers/net/ethernet/alibaba/eea/eea_pci.c:294: + pci_write_config_word(ep_dev->pci_dev, ep_dev->reset_pos, 0xFFFF); WARNING: line length of 98 exceeds 80 columns #2377: FILE: drivers/net/ethernet/alibaba/eea/eea_pci.c:354: + pci_write_config_word(pci_dev, pos + cfg_drv_off, EEA_PCI_CAP_RESET_FLAG); WARNING: line length of 82 exceeds 80 columns #2378: FILE: drivers/net/ethernet/alibaba/eea/eea_pci.c:355: + pci_write_config_word(pci_dev, pos + cfg_dev_off, 0xFFFF); WARNING: line length of 81 exceeds 80 columns #2395: FILE: drivers/net/ethernet/alibaba/eea/eea_pci.c:372: + return request_irq(irq, eea_pci_ha_handle, 0, ep_dev->ha_irq_name, edev); WARNING: line length of 82 exceeds 80 columns #2428: FILE: drivers/net/ethernet/alibaba/eea/eea_pci.c:405: +static int __eea_pci_probe(struct pci_dev *pci_dev, struct eea_pci_device *ep_dev) WARNING: line length of 81 exceeds 80 columns #2482: FILE: drivers/net/ethernet/alibaba/eea/eea_pci.c:459: +static int eea_pci_probe(struct pci_dev *pci_dev, const struct pci_device_id *id) WARNING: line length of 82 exceeds 80 columns #2636: FILE: drivers/net/ethernet/alibaba/eea/eea_pci.h:59: + irqreturn_t (*callback)(int irq, void *data), void *data); WARNING: line length of 92 exceeds 80 columns #3176: FILE: drivers/net/ethernet/alibaba/eea/eea_rx.c:162: + dma = dma_map_page(dmadev, hdr_page, 0, PAGE_SIZE, DMA_FROM_DEVICE); WARNING: line length of 95 exceeds 80 columns #3196: FILE: drivers/net/ethernet/alibaba/eea/eea_rx.c:182: +static void eea_rx_meta_dma_sync_for_cpu(struct enet_rx *rx, struct eea_rx_meta *meta, u32 len) WARNING: line length of 81 exceeds 80 columns #3208: FILE: drivers/net/ethernet/alibaba/eea/eea_rx.c:194: + (unsigned long)(ctx->meta->truesize - ctx->meta->room)); WARNING: line length of 82 exceeds 80 columns #3233: FILE: drivers/net/ethernet/alibaba/eea/eea_rx.c:219: +static struct sk_buff *eea_build_skb(void *buf, u32 buflen, u32 headroom, u32 len) WARNING: line length of 89 exceeds 80 columns #3247: FILE: drivers/net/ethernet/alibaba/eea/eea_rx.c:233: +static struct sk_buff *eea_rx_build_split_hdr_skb(struct enet_rx *rx, struct rx_ctx *ctx) WARNING: line length of 86 exceeds 80 columns #3409: FILE: drivers/net/ethernet/alibaba/eea/eea_rx.c:395: + skb_hwtstamps(skb)->hwtstamp = EEA_DESC_TS(desc) + enet->hw_ts_offset; WARNING: line length of 84 exceeds 80 columns #3427: FILE: drivers/net/ethernet/alibaba/eea/eea_rx.c:413: + ctx->hdr_len = le16_to_cpu(desc->len_ex) & EEA_RX_CDEC_HDR_LEN_MASK; WARNING: line length of 84 exceeds 80 columns #3449: FILE: drivers/net/ethernet/alibaba/eea/eea_rx.c:435: + ctx->buf = page_address(meta->page) + meta->offset + meta->headroom; WARNING: line length of 92 exceeds 80 columns #3585: FILE: drivers/net/ethernet/alibaba/eea/eea_rx.c:571: +static struct page_pool *eea_create_pp(struct enet_rx *rx, struct eea_net_tmp *tmp, u32 idx) WARNING: line length of 83 exceeds 80 columns #3761: FILE: drivers/net/ethernet/alibaba/eea/eea_rx.c:747: + rx->meta = kvcalloc(tmp->cfg.rx_ring_depth, sizeof(*rx->meta), GFP_KERNEL); WARNING: line length of 83 exceeds 80 columns #3840: FILE: drivers/net/ethernet/alibaba/eea/eea_tx.c:47: +static void eea_tx_meta_put_and_unmap(struct enet_tx *tx, struct eea_tx_meta *meta) WARNING: line length of 92 exceeds 80 columns #3847: FILE: drivers/net/ethernet/alibaba/eea/eea_tx.c:54: + dma_unmap_single(tx->dma_dev, meta->dma_addr, meta->dma_len, DMA_TO_DEVICE); WARNING: line length of 89 exceeds 80 columns #3969: FILE: drivers/net/ethernet/alibaba/eea/eea_tx.c:176: +static struct eea_tx_meta *eea_tx_desc_fill(struct enet_tx *tx, dma_addr_t addr, u32 len, WARNING: line length of 81 exceeds 80 columns #3991: FILE: drivers/net/ethernet/alibaba/eea/eea_tx.c:198: +static int eea_tx_add_skb_frag(struct enet_tx *tx, struct eea_tx_meta *head_meta, WARNING: line length of 83 exceeds 80 columns #4182: FILE: drivers/net/ethernet/alibaba/eea/eea_tx.c:389: + tx->meta = kvcalloc(tmp->cfg.tx_ring_depth, sizeof(*tx->meta), GFP_KERNEL); total: 0 errors, 51 warnings, 0 checks, 4038 lines checked NOTE: For some of the reported defects, checkpatch may be able to mechanically convert to the typical style using --fix or --fix-inplace. Commit a5fe2d93178d ("eea: Add basic driver framework for Alibaba Elastic Ethernet Adaptor") has style problems, please review. NOTE: Ignored message types: ALLOC_SIZEOF_STRUCT BAD_REPORTED_BY_LINK CAMELCASE COMMIT_LOG_LONG_LINE GIT_COMMIT_ID MACRO_ARG_REUSE NO_AUTHOR_SIGN_OFF NOTE: If any of the errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. total: 0 errors, 51 warnings, 0 checks, 4038 lines checked