WARNING: Prefer kzalloc_obj over kzalloc with sizeof #473: FILE: drivers/net/ethernet/alibaba/eea/eea_adminq.c:425: + cfg = kzalloc(sizeof(*cfg), GFP_KERNEL); WARNING: Prefer kzalloc_obj over kzalloc with sizeof #477: FILE: drivers/net/ethernet/alibaba/eea/eea_adminq.c:429: + rep = kzalloc(sizeof(*rep), GFP_KERNEL); WARNING: Prefer kmalloc_obj over kmalloc with sizeof #655: FILE: drivers/net/ethernet/alibaba/eea/eea_net.c:48: + cfg = kmalloc(sizeof(*cfg), GFP_KERNEL); total: 0 errors, 3 warnings, 0 checks, 961 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 f8e52c7ac982 ("eea: probe the netdevice and create adminq") 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, 3 warnings, 0 checks, 961 lines checked