WARNING: line length of 98 exceeds 80 columns #267: FILE: drivers/net/dsa/mv88e6xxx/chip.h:796: + int (*entry_add)(struct mv88e6xxx_chip *chip, struct mv88e6xxx_tcam_entry *entry, u8 idx); WARNING: line length of 81 exceeds 80 columns #298: FILE: drivers/net/dsa/mv88e6xxx/port.c:1386: + err = mv88e6xxx_port_read(chip, port, MV88E6XXX_PORT_PRI_OVERRIDE, ®); WARNING: line length of 82 exceeds 80 columns #303: FILE: drivers/net/dsa/mv88e6xxx/port.c:1391: + return mv88e6xxx_port_write(chip, port, MV88E6XXX_PORT_PRI_OVERRIDE, reg); WARNING: line length of 81 exceeds 80 columns #311: FILE: drivers/net/dsa/mv88e6xxx/port.c:1399: + err = mv88e6xxx_port_read(chip, port, MV88E6XXX_PORT_PRI_OVERRIDE, ®); WARNING: line length of 82 exceeds 80 columns #316: FILE: drivers/net/dsa/mv88e6xxx/port.c:1404: + return mv88e6xxx_port_write(chip, port, MV88E6XXX_PORT_PRI_OVERRIDE, reg); WARNING: line length of 83 exceeds 80 columns #403: FILE: drivers/net/dsa/mv88e6xxx/tcam.c:55: +static int mv88e6xxx_tcam_read_page(struct mv88e6xxx_chip *chip, u8 page, u8 entry) WARNING: line length of 98 exceeds 80 columns #406: FILE: drivers/net/dsa/mv88e6xxx/tcam.c:58: + u16 val = MV88E6XXX_TCAM_OP_BUSY | MV88E6XXX_TCAM_OP_OP_READ | (page & 0x3) << 10 | entry; WARNING: line length of 83 exceeds 80 columns #416: FILE: drivers/net/dsa/mv88e6xxx/tcam.c:68: +static int mv88e6xxx_tcam_load_page(struct mv88e6xxx_chip *chip, u8 page, u8 entry) WARNING: line length of 98 exceeds 80 columns #418: FILE: drivers/net/dsa/mv88e6xxx/tcam.c:70: + u16 val = MV88E6XXX_TCAM_OP_BUSY | MV88E6XXX_TCAM_OP_OP_LOAD | (page & 0x3) << 10 | entry; WARNING: line length of 83 exceeds 80 columns #452: FILE: drivers/net/dsa/mv88e6xxx/tcam.c:104: +struct mv88e6xxx_tcam_entry *mv88e6xxx_tcam_entry_find(struct mv88e6xxx_chip *chip, WARNING: line length of 93 exceeds 80 columns #503: FILE: drivers/net/dsa/mv88e6xxx/tcam.c:155: +int mv88e6xxx_tcam_entry_add(struct mv88e6xxx_chip *chip, struct mv88e6xxx_tcam_entry *entry) WARNING: line length of 93 exceeds 80 columns #529: FILE: drivers/net/dsa/mv88e6xxx/tcam.c:181: +int mv88e6xxx_tcam_entry_del(struct mv88e6xxx_chip *chip, struct mv88e6xxx_tcam_entry *entry) WARNING: line length of 82 exceeds 80 columns #591: FILE: drivers/net/dsa/mv88e6xxx/tcam.c:243: + for (i = PAGE0_MATCH_SIZE; i < PAGE0_MATCH_SIZE + PAGE1_MATCH_SIZE; i++) { WARNING: line length of 91 exceeds 80 columns #593: FILE: drivers/net/dsa/mv88e6xxx/tcam.c:245: + u16 val = entry->key.frame_mask[i] << 8 | entry->key.frame_data[i]; WARNING: line length of 88 exceeds 80 columns #595: FILE: drivers/net/dsa/mv88e6xxx/tcam.c:247: + err = mv88e6xxx_tcam_write(chip, i - PAGE0_MATCH_SIZE + 2, val); WARNING: line length of 91 exceeds 80 columns #609: FILE: drivers/net/dsa/mv88e6xxx/tcam.c:261: + u16 val = entry->key.frame_mask[i] << 8 | entry->key.frame_data[i]; WARNING: line length of 100 exceeds 80 columns #620: FILE: drivers/net/dsa/mv88e6xxx/tcam.c:272: + MV88E6XXX_TCAM_KEYS1_FT_MASK | (spv_mask & 0x0700) | (spv >> 8)); WARNING: line length of 83 exceeds 80 columns #641: FILE: drivers/net/dsa/mv88e6xxx/tcam.c:293: + // select block 0 port 0, then adding an entry is the same as 6390 as other WARNING: line length of 94 exceeds 80 columns #681: FILE: drivers/net/dsa/mv88e6xxx/tcam.h:17: +int mv88e6xxx_tcam_entry_add(struct mv88e6xxx_chip *chip, struct mv88e6xxx_tcam_entry *entry); WARNING: line length of 94 exceeds 80 columns #682: FILE: drivers/net/dsa/mv88e6xxx/tcam.h:18: +int mv88e6xxx_tcam_entry_del(struct mv88e6xxx_chip *chip, struct mv88e6xxx_tcam_entry *entry); WARNING: line length of 83 exceeds 80 columns #683: FILE: drivers/net/dsa/mv88e6xxx/tcam.h:19: +struct mv88e6xxx_tcam_entry *mv88e6xxx_tcam_entry_find(struct mv88e6xxx_chip *chip, WARNING: line length of 98 exceeds 80 columns #693: FILE: drivers/net/dsa/mv88e6xxx/tcam.h:29: +static inline void __mv88e6xxx_tcam_match_set(struct mv88e6xxx_tcam_key *key, unsigned int offset, WARNING: line length of 91 exceeds 80 columns #755: FILE: drivers/net/dsa/mv88e6xxx/tcflower.c:47: + mv88e6xxx_tcam_match_set(key, 16, match.key->n_proto, match.mask->n_proto); WARNING: line length of 93 exceeds 80 columns #756: FILE: drivers/net/dsa/mv88e6xxx/tcflower.c:48: + mv88e6xxx_tcam_match_set(key, 27, match.key->ip_proto, match.mask->ip_proto); WARNING: line length of 83 exceeds 80 columns #763: FILE: drivers/net/dsa/mv88e6xxx/tcflower.c:55: + mv88e6xxx_tcam_match_set(key, 30, match.key->src, match.mask->src); WARNING: line length of 83 exceeds 80 columns #764: FILE: drivers/net/dsa/mv88e6xxx/tcflower.c:56: + mv88e6xxx_tcam_match_set(key, 34, match.key->dst, match.mask->dst); WARNING: Prefer kzalloc_obj over kzalloc with sizeof #795: FILE: drivers/net/dsa/mv88e6xxx/tcflower.c:87: + entry = kzalloc(sizeof(*entry), GFP_KERNEL); WARNING: line length of 90 exceeds 80 columns #838: FILE: drivers/net/dsa/mv88e6xxx/tcflower.c:130: + struct mv88e6xxx_tcam_entry *entry = mv88e6xxx_tcam_entry_find(chip, cls->cookie); total: 0 errors, 28 warnings, 0 checks, 759 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 83ae498a59fe ("net: dsa: mv88e6xxx: Add partial support for TCAM entries") has style problems, please review. NOTE: Ignored message types: ALLOC_SIZEOF_STRUCT BAD_REPORTED_BY_LINK CAMELCASE COMMIT_LOG_LONG_LINE FILE_PATH_CHANGES 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, 28 warnings, 0 checks, 759 lines checked