From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D74AF46212; Sat, 15 Feb 2025 00:38:43 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 633D54028A; Sat, 15 Feb 2025 00:38:43 +0100 (CET) Received: from mail-vk1-f171.google.com (mail-vk1-f171.google.com [209.85.221.171]) by mails.dpdk.org (Postfix) with ESMTP id AB65E40281 for ; Sat, 15 Feb 2025 00:38:40 +0100 (CET) Received: by mail-vk1-f171.google.com with SMTP id 71dfb90a1353d-5209ea469e9so121127e0c.0 for ; Fri, 14 Feb 2025 15:38:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1739576320; x=1740181120; darn=dpdk.org; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=QGkwQUK1iKWzQbHUWOPA3QN2aiR96C//WKVGET/oUgM=; b=oJm/wMwrMmPWGOL87b1DCnZqbXjA0IpLbts5xaVRTZlma3IC/TxVIAYvHbt56z5BmZ PQZFEjV7aytMc4eFf0smGQgq+RVLQmGPJGRhXEbSg2vCenneQopI/43dZlitzNx27FcV HkVD4TxTrBfihPAMJAWkeJfY7Jg4iv1wa5gUg60bC67lU5u38jKM93kY8rPaMrYiDCcY ICKsDtCmM9RhaD/PzG6FQ2Gz8uCfO4hiYpSG12nF8n5sGCZfRI1MTRGJtZisgPBIKhHx 3J3MIBsLSvhYuuUf4ryk0lQJ8XnWL2iFpPrAOwi57lPYLYnS1qXa6bl+A8XOertJsnbH S/nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739576320; x=1740181120; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=QGkwQUK1iKWzQbHUWOPA3QN2aiR96C//WKVGET/oUgM=; b=EaKAL45r/5VqrRcEisRg3rrYso4c2goMVjHaCz8qzkTMh6ka4GoVFn0n+eDvtutpcu 8ukXZh1+TnUxV5pSFVQTcyI/rBRgzLr70wOqqblv13cOefjk/rQ+HnA9ccMnR/TRjFmo CFjtHpSJBU6B2yKFz1FxqqmcIjf/OOIX5n6gRmXfIY3LwdYIglpQbJhsTIpFTSdtEQID 2Qi/MQadR0WcLZNC11z0/VAIWv7r1XCRvIAe7TF8O/WHRPjYViOTav94yl1Uu1Aazs+7 LzCh5j+NMOJTV5ebwa0/9fzlZutb3t8SoUeIIkqvoYw37l9yNHcpJaEgriF6Vh0dgqjy g25g== X-Gm-Message-State: AOJu0Yzw3/ymDQ/70gTvnFJfqzs8imk2uqH5dWBsPzFGVKKf9XpvFEQX 98A8uxe94caklumnRS3WIbZanOD4HYl84ZyCN4pJ/vDu3/IJDsb/bswE35iWZndjTLbp1/7mfEC 0zCcwbhB5Teax0S3Vn08rwiaaD4BlwhSFjrLVXmP4iDbs9en4FHXbxw== X-Gm-Gg: ASbGncuz+M+gZjNKiIAgkIKepLaFzp7QhMKFpJDNBZJZdkZZMsJkLscwTIvi18uMK1r IbxqqZKD9iph+yXSUmmI8vNIa+Al62pcbB7xolw1E9l4XQR0xNqwAhA/GJIoMaxsVc8JSPZfRJw == X-Google-Smtp-Source: AGHT+IHET7MmV7AK9EhtiV0bpCGnZqmxbg6uHgaicQEJK0ZHHPxAYv/aqXxub9GQB14GGzkXGFtqDpbT+/TTomjrquI= X-Received: by 2002:a05:6122:2005:b0:520:4806:a422 with SMTP id 71dfb90a1353d-5209dc293cdmr731934e0c.3.1739576319592; Fri, 14 Feb 2025 15:38:39 -0800 (PST) MIME-Version: 1.0 From: Stephen Hemminger Date: Fri, 14 Feb 2025 15:38:28 -0800 X-Gm-Features: AWEUYZmKG6rCFsIUgWSKCmKrfC1w4fGwV5FOpdAc96BJeAfuYz3Dcn29TSwXW30 Message-ID: Subject: PVS studio warnings in zxdh To: Junlong Wang , Lijie Shan Cc: dev@dpdk.org Content-Type: multipart/alternative; boundary="00000000000096e99f062e22acb5" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org --00000000000096e99f062e22acb5 Content-Type: text/plain; charset="UTF-8" Now that zxdh is main branch, ran the PVS studio analyzer over it and reported many new warnings. MESSAGES LocationCodeMessage Fails/Info zxdh_common.c (223) V1032 The pointer 'recv_buf' is cast to a more strictly aligned pointer type. zxdh_ethdev.c (816) V519 The 'ret' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 813, 816. zxdh_ethdev.c (866) V560 A part of conditional expression is always false: rxmode->mq_mode != RTE_ETH_MQ_RX_NONE. zxdh_ethdev.c (709) V522 There might be dereferencing of a potential null pointer 'hdr_mz'. zxdh_ethdev.c (724) V522 There might be dereferencing of a potential null pointer 'txvq'. zxdh_ethdev.c (651) V576 Incorrect format. Consider checking the fifth actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. zxdh_ethdev.c (651) V576 Incorrect format. Consider checking the sixth actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. zxdh_ethdev.c (1322) V576 Incorrect format. Consider checking the sixth actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. zxdh_ethdev.c (107) V1027 Pointer to an object of the 'rte_device' class is cast to unrelated 'rte_pci_device' class. zxdh_ethdev.c (1188) V1027 Pointer to an object of the 'rte_device' class is cast to unrelated 'rte_pci_device' class. zxdh_ethdev.c (1452) V1027 Pointer to an object of the 'rte_device' class is cast to unrelated 'rte_pci_device' class. zxdh_ethdev_ops.c (723) V519 The 'ret' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 721, 723. zxdh_ethdev_ops.c (744) V519 The 'ret' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 742, 744. zxdh_ethdev_ops.c (769) V519 The 'ret' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 767, 769. zxdh_ethdev_ops.c (791) V519 The 'ret' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 789, 791. zxdh_ethdev_ops.c (818) V519 The 'ret' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 816, 818. zxdh_ethdev_ops.c (840) V519 The 'ret' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 838, 840. zxdh_ethdev_ops.c (1072) V519 The 'ret' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 1070, 1072. zxdh_ethdev_ops.c (1090) V519 The 'ret' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 1088, 1090. zxdh_ethdev_ops.c (1186) V519 The 'ret' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 1184, 1186. zxdh_ethdev_ops.c (1212) V519 The 'ret' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 1210, 1212. zxdh_ethdev_ops.c (357) V526 The 'memcmp' function returns 0 if corresponding buffers are equal. Consider examining the condition for mistakes. zxdh_ethdev_ops.c (1283) V576 Incorrect format. Consider checking the fifth actual argument of the 'rte_log' function. The UNSIGNED integer type argument is expected. zxdh_ethdev_ops.c (1485) V576 Incorrect format. Consider checking the fifth actual argument of the 'rte_log' function. The UNSIGNED integer type argument is expected. zxdh_ethdev_ops.c (1537) V576 Incorrect format. Consider checking the fifth actual argument of the 'rte_log' function. The UNSIGNED integer type argument is expected. zxdh_ethdev_ops.c (329) V1048 The 'mac_filter->filter_flag' variable was assigned the same value. zxdh_msg.c (203) V547 Expression 'lock_id >= (511)' is always false. zxdh_msg.c (463) V557 Array overrun is possible. The value of 'dst_index' index could reach 255. zxdh_msg.c (463) V557 Array overrun is possible. The value of 'src_index' index could reach 255. zxdh_msg.c (464) V557 Array overrun is possible. The value of 'dst_index' index could reach 255. zxdh_msg.c (464) V557 Array overrun is possible. The value of 'src_index' index could reach 255. zxdh_msg.c (579) V1032 The pointer 'msg_header' is cast to a more strictly aligned pointer type. zxdh_msg.c (592) V1032 The pointer 'msg_header' is cast to a more strictly aligned pointer type. zxdh_msg.c (664) V1032 The pointer 'tmp_msg_header' is cast to a more strictly aligned pointer type. zxdh_msg.c (397) V1037 Two or more case-branches perform the same actions. Check lines: 397, 400 zxdh_msg.c (394) V525 The code contains the collection of similar blocks. Check items '2', '1', '1', '0' in lines 394, 397, 400, 403. zxdh_np.c (1068) V614 Potentially uninitialized variable 'temp_idx' used. zxdh_np.c (1524) V785 Constant expression in switch statement. zxdh_np.c (1925) V1032 The pointer 'form_buff' is cast to a more strictly aligned pointer type. zxdh_np.c (224) V576 Incorrect format. Consider checking the fifth actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. zxdh_np.c (285) V576 Incorrect format. Consider checking the sixth actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. zxdh_np.c (385) V576 Incorrect format. Consider checking the fifth actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. zxdh_np.c (388) V576 Incorrect format. Consider checking the fifth actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. zxdh_np.c (392) V576 Incorrect format. Consider checking the fifth actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. zxdh_np.c (397) V576 Incorrect format. Consider checking the fifth actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. zxdh_np.c (588) V576 Incorrect format. Consider checking the fifth actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. zxdh_np.c (588) V576 Incorrect format. Consider checking the seventh actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. zxdh_np.c (588) V576 Incorrect format. Consider checking the sixth actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. zxdh_np.c (604) V576 Incorrect format. Consider checking the fifth actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. zxdh_np.c (714) V576 Incorrect format. Consider checking the fifth actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. zxdh_np.c (714) V576 Incorrect format. Consider checking the seventh actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. zxdh_np.c (714) V576 Incorrect format. Consider checking the sixth actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. zxdh_np.c (778) V576 Incorrect format. Consider checking the fifth actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. zxdh_np.c (783) V576 Incorrect format. Consider checking the fifth actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. zxdh_np.c (806) V576 Incorrect format. Consider checking the fifth actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. zxdh_np.c (838) V576 Incorrect format. Consider checking the fifth actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. zxdh_np.c (909) V576 Incorrect format. Consider checking the seventh actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. zxdh_np.c (949) V576 Incorrect format. Consider checking the fifth actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. zxdh_np.c (1158) V576 Incorrect format. Consider checking the fifth actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. zxdh_np.c (1166) V576 Incorrect format. Consider checking the fifth actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. zxdh_np.c (1317) V576 Incorrect format. Consider checking the fifth actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. zxdh_np.c (1326) V576 Incorrect format. Consider checking the fifth actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. zxdh_np.c (1326) V576 Incorrect format. Consider checking the sixth actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. zxdh_np.c (1438) V576 Incorrect format. Consider checking the fifth actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. zxdh_np.c (1623) V576 Incorrect format. Consider checking the fifth actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. zxdh_np.c (1672) V576 Incorrect format. Consider checking the fifth actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. zxdh_np.c (1738) V576 Incorrect format. Consider checking the fifth actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. zxdh_np.c (1761) V576 Incorrect format. Consider checking the fifth actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. zxdh_np.c (1766) V576 Incorrect format. Consider checking the fifth actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. zxdh_np.c (1812) V576 Incorrect format. Consider checking the fifth actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. zxdh_np.c (1812) V576 Incorrect format. Consider checking the sixth actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. zxdh_np.c (1832) V576 Incorrect format. Consider checking the fifth actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. zxdh_np.c (1877) V576 Incorrect format. Consider checking the fifth actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. zxdh_np.c (1911) V576 Incorrect format. Consider checking the fifth actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. zxdh_np.c (2010) V576 Incorrect format. Consider checking the fifth actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. zxdh_np.c (2040) V576 Incorrect format. Consider checking the fifth actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. zxdh_np.c (1353) V1048 The 'rc' variable was assigned the same value. zxdh_np.c (1365) V1048 The 'rc' variable was assigned the same value. zxdh_np.c (2049) V1051 Consider checking for misprints. It's possible that the 'ppu_eram_baddr' should be checked here. zxdh_pci.c (181) V519 The 'notify_off' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 180, 181. zxdh_pci.c (422) V576 Incorrect format. Consider checking the fifth actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. zxdh_queue.c (187) V763 Parameter 'nb_desc' is always rewritten in function body before being used. zxdh_queue.c (230) V763 Parameter 'nb_desc' is always rewritten in function body before being used. zxdh_queue.c (118) V547 Expression 'queue_type == ZXDH_VTNET_TQ' is always true. zxdh_queue.c (243) V576 Incorrect format. Consider checking the fifth actual argument of the 'rte_log' function. The UNSIGNED integer type argument is expected. zxdh_queue.h (305) V1048 The 'vq->vq_packed.event_flags_shadow' variable was assigned the same value. zxdh_tables.c (350) V519 The 'ret' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 341, 350. zxdh_tables.c (58) V547 Expression '!hw->is_pf' is always false. zxdh_tables.c (64) V547 Expression '!port_attr.rss_enable' is always true. zxdh_tables.c (34) V1032 The pointer 'port_attr' is cast to a more strictly aligned pointer type. zxdh_tables.c (98) V1032 The pointer '& port_attr' is cast to a more strictly aligned pointer type. zxdh_tables.c (200) V1032 The pointer 'port_attr' is cast to a more strictly aligned pointer type. zxdh_tables.c (741) V1032 The pointer '& rss_vqid' is cast to a more strictly aligned pointer type. zxdh_tables.c (765) V1032 The pointer '& rss_vqid' is cast to a more strictly aligned pointer type. zxdh_tables.c (146) V576 Incorrect format. Consider checking the fifth actual argument of the 'rte_log' function. The UNSIGNED integer type argument is expected. zxdh_tables.c (289) V576 Incorrect format. Consider checking the fifth actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. zxdh_tables.c (324) V576 Incorrect format. Consider checking the fifth actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. zxdh_tables.c (353) V576 Incorrect format. Consider checking the fifth actual argument of the 'rte_log' function. The SIGNED integer type argument is expected. --00000000000096e99f062e22acb5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Now that zxdh i= s main branch, ran the PVS studio analyzer over it and reported many new wa= rnings.


<= /div>
<= td colspan=3D"5" style=3D"padding:0px;text-align:center;vertical-align:top;= color:red;font-size:1.2em">Fails/Info
zxdh_ethdev.c (816)=
= <= td style=3D"padding:0px;vertical-align:top;width:672.594px">
zxdh_ethdev.c (14= 52)
= <= td style=3D"padding:0px;vertical-align:top;width:672.594px">
zxdh_ethdev_o= ps.c (1283)
V1048<= td style=3D"padding:0px;vertical-align:top;width:1457.31px">The 'mac_fi= lter->filter_flag' variable was assigned the same value.<= td style=3D"padding:0px;vertical-align:top;width:672.594px">
zxdh_msg.c (592)
= <= tr>= = <= tr><= tr><= tr><= tr><= tr><= tr><= tr><= tr><= tr><= tr><= tr><= tr><= tr><= tr><= tr><= tr><= tr><= tr><= td style=3D"padding:0px;vertical-align:top;width:112.094px">V1048= = V547Expression '= !hw->is_pf' is always false.
MESSAGES=
LocationCodeMessage
zxdh_common.c (223)
V1032The pointer 'recv= _buf' is cast to a more strictly aligned pointer type.
V5= 19The= 'ret' variable is assigned values twice successively. Perhaps this= is a mistake. Check lines: 813, 816.
zxdh_ethdev.c (866)
V560A part of conditional e= xpression is always false: rxmode->mq_mode !=3D RTE_ETH_MQ_RX_NONE.
zxdh_et= hdev.c (709)
V522There might be dereferencing of a potential null pointer 'hdr_= mz'.
zxdh_ethdev.c (724)
V522There might be dereferencing of a potential null poin= ter 'txvq'.
zxdh_ethdev.c (651)
V576Incorrect format. Consider checking the fi= fth actual argument of the 'rte_log' function. The SIGNED integer t= ype argument is expected.
zxdh_ethdev.c (651)
V576Incorrect format. Consider checking = the sixth actual argument of the 'rte_log' function. The SIGNED int= eger type argument is expected.
zxdh_ethdev.c (1322)
V576Incorrect format. Consider ch= ecking the sixth actual argument of the 'rte_log' function. The SIG= NED integer type argument is expected.
zxdh_ethdev.c (107)
V1027Pointer to an object = of the 'rte_device' class is cast to unrelated 'rte_pci_device&= #39; class.
zxdh_ethdev.c (1188)
V1027Pointer to an object of the 'rte_device'= ; class is cast to unrelated 'rte_pci_device' class.
= V1027Pointer to an object of the 'rte_device' class is cast to unrelat= ed 'rte_pci_device' class.
zxdh_ethdev_ops.c (723)
V519The 'ret' v= ariable is assigned values twice successively. Perhaps this is a mistake. C= heck lines: 721, 723.
zxdh_ethdev_ops.c (744)
V519The 'ret' variable is as= signed values twice successively. Perhaps this is a mistake. Check lines: 7= 42, 744.
zxdh_ethdev_ops.c (769)
V519The 'ret' variable is assigned values= twice successively. Perhaps this is a mistake. Check lines: 767, 769.
zxd= h_ethdev_ops.c (791)
V519The 'ret' variable is assigned values twice succes= sively. Perhaps this is a mistake. Check lines: 789, 791.
zxdh_ethdev_ops.= c (818)
V519The 'ret' variable is assigned values twice successively. Perha= ps this is a mistake. Check lines: 816, 818.
zxdh_ethdev_ops.c (840)
=
V519= The '= ret' variable is assigned values twice successively. Perhaps this is a = mistake. Check lines: 838, 840.
zxdh_ethdev_ops.c (1072)
V519The 'ret' var= iable is assigned values twice successively. Perhaps this is a mistake. Che= ck lines: 1070, 1072.
zxdh_ethdev_ops.c (1090)
V519The 'ret' variable is a= ssigned values twice successively. Perhaps this is a mistake. Check lines: = 1088, 1090.
zxdh_ethdev_ops.c (1186)
V519The 'ret' variable is assigned va= lues twice successively. Perhaps this is a mistake. Check lines: 1184, 1186= .
zxdh_ethdev_ops.c (1212)
V519The 'ret' variable is assigned values twice= successively. Perhaps this is a mistake. Check lines: 1210, 1212.
zxdh_et= hdev_ops.c (357)
V526The 'memcmp' function returns 0 if corresponding buffe= rs are equal. Consider examining the condition for mistakes.
V576Incorrect format. Consider checking the fifth actual argument of th= e 'rte_log' function. The UNSIGNED integer type argument is expecte= d.
zxdh_ethdev_ops.c (1485)
V576Incorrect format. Consider checking the fifth actu= al argument of the 'rte_log' function. The UNSIGNED integer type ar= gument is expected.
zxdh_ethdev_ops.c (1537)
V576Incorrect format. Consider checki= ng the fifth actual argument of the 'rte_log' function. The UNSIGNE= D integer type argument is expected.
zxdh_ethdev_ops.c (329)
zxdh_msg.c (203= )
V= 547Ex= pression 'lock_id >=3D (511)' is always false.
zxdh_msg.c (463)
<= /td>
V557= Array ove= rrun is possible. The value of 'dst_index' index could reach 255.
zxdh_ms= g.c (463)V557Array overrun is possible. The value of 'src_index' index cou= ld reach 255.
zxdh_msg.c (464)
V557Array overrun is possible. The value of 'dst_index= ' index could reach 255.
zxdh_msg.c (464)
V557Array overrun is possible. The value of= 'src_index' index could reach 255.
zxdh_msg.c (579)
V1032The pointer 'msg_= header' is cast to a more strictly aligned pointer type.
V1032= The p= ointer 'msg_header' is cast to a more strictly aligned pointer type= .
zxdh= _msg.c (664)
V1032The pointer 'tmp_msg_header' is cast to a more strictly = aligned pointer type.
zxdh_msg.c (397)
V1037Two or more case-branches perform the same a= ctions. Check lines: 397, 400
zxdh_msg.c (394)
V525The code contains the collection of si= milar blocks. Check items '2', '1', '1', '0'= ; in lines 394, 397, 400, 403.
zxdh_np.c (1068)
V614Potentially uninitialized variable = 9;temp_idx' used.
zxdh_np.c (1524)
V785Constant expression in switch statement.
zxdh_np.c (19= 25)
= V1032The pointer 'form_buff' is cast to a more strictly aligned pointe= r type.
zxdh_np.c (224)
V576Incorrect format. Consider checking the fifth actual argument = of the 'rte_log' function. The SIGNED integer type argument is expe= cted.
z= xdh_np.c (285)
V576Incorrect format. Consider checking the sixth actual argument of= the 'rte_log' function. The SIGNED integer type argument is expect= ed.
zxd= h_np.c (385)
V576Incorrect format. Consider checking the fifth actual argument of t= he 'rte_log' function. The SIGNED integer type argument is expected= .
zxdh_= np.c (388)
V576Incorrect format. Consider checking the fifth actual argument of the= 'rte_log' function. The SIGNED integer type argument is expected.<= /td>
<= div title=3D"/home/shemminger/DPDK/main/drivers/net/zxdh/zxdh_np.c">zxdh_np= .c (392)V576Incorrect format. Consider checking the fifth actual argument of the &= #39;rte_log' function. The SIGNED integer type argument is expected.
zxdh_np.c= (397)V576Incorrect format. Consider checking the fifth actual argument of the = 9;rte_log' function. The SIGNED integer type argument is expected.
zxdh_np.c (= 588)
V576Incorrect format. Consider checking the fifth actual argument of the '= rte_log' function. The SIGNED integer type argument is expected.
zxdh_np.c (58= 8)
<= a target=3D"_blank" href=3D"https://pvs-studio.com/en/docs/warnings/v576/">= V576I= ncorrect format. Consider checking the seventh actual argument of the '= rte_log' function. The SIGNED integer type argument is expected.
zxdh_np.c (58= 8)
<= a target=3D"_blank" href=3D"https://pvs-studio.com/en/docs/warnings/v576/">= V576I= ncorrect format. Consider checking the sixth actual argument of the 'rt= e_log' function. The SIGNED integer type argument is expected.
zxdh_np.c (604)=
V5= 76Inc= orrect format. Consider checking the fifth actual argument of the 'rte_= log' function. The SIGNED integer type argument is expected.
zxdh_np.c (714)<= /div>
V57= 6Inco= rrect format. Consider checking the fifth actual argument of the 'rte_l= og' function. The SIGNED integer type argument is expected.
zxdh_np.c (714)<= /div>
V57= 6Inco= rrect format. Consider checking the seventh actual argument of the 'rte= _log' function. The SIGNED integer type argument is expected.
zxdh_np.c (714)<= /div>
V57= 6Inco= rrect format. Consider checking the sixth actual argument of the 'rte_l= og' function. The SIGNED integer type argument is expected.
zxdh_np.c (778)<= /div>
V57= 6Inco= rrect format. Consider checking the fifth actual argument of the 'rte_l= og' function. The SIGNED integer type argument is expected.
zxdh_np.c (783)<= /div>
V57= 6Inco= rrect format. Consider checking the fifth actual argument of the 'rte_l= og' function. The SIGNED integer type argument is expected.
zxdh_np.c (806)<= /div>
V57= 6Inco= rrect format. Consider checking the fifth actual argument of the 'rte_l= og' function. The SIGNED integer type argument is expected.
zxdh_np.c (838)<= /div>
V57= 6Inco= rrect format. Consider checking the fifth actual argument of the 'rte_l= og' function. The SIGNED integer type argument is expected.
zxdh_np.c (909)<= /div>
V57= 6Inco= rrect format. Consider checking the seventh actual argument of the 'rte= _log' function. The SIGNED integer type argument is expected.
zxdh_np.c (949)<= /div>
V57= 6Inco= rrect format. Consider checking the fifth actual argument of the 'rte_l= og' function. The SIGNED integer type argument is expected.
zxdh_np.c (1158)=
V5= 76Inc= orrect format. Consider checking the fifth actual argument of the 'rte_= log' function. The SIGNED integer type argument is expected.
zxdh_np.c (1166)=
V5= 76Inc= orrect format. Consider checking the fifth actual argument of the 'rte_= log' function. The SIGNED integer type argument is expected.
zxdh_np.c (1317)=
V5= 76Inc= orrect format. Consider checking the fifth actual argument of the 'rte_= log' function. The SIGNED integer type argument is expected.
zxdh_np.c (1326)=
V5= 76Inc= orrect format. Consider checking the fifth actual argument of the 'rte_= log' function. The SIGNED integer type argument is expected.
zxdh_np.c (1326)=
V5= 76Inc= orrect format. Consider checking the sixth actual argument of the 'rte_= log' function. The SIGNED integer type argument is expected.
zxdh_np.c (1438)=
V5= 76Inc= orrect format. Consider checking the fifth actual argument of the 'rte_= log' function. The SIGNED integer type argument is expected.
zxdh_np.c (1623)=
V5= 76Inc= orrect format. Consider checking the fifth actual argument of the 'rte_= log' function. The SIGNED integer type argument is expected.
zxdh_np.c (1672)=
V5= 76Inc= orrect format. Consider checking the fifth actual argument of the 'rte_= log' function. The SIGNED integer type argument is expected.
zxdh_np.c (1738)=
V5= 76Inc= orrect format. Consider checking the fifth actual argument of the 'rte_= log' function. The SIGNED integer type argument is expected.
zxdh_np.c (1761)=
V5= 76Inc= orrect format. Consider checking the fifth actual argument of the 'rte_= log' function. The SIGNED integer type argument is expected.
zxdh_np.c (1766)=
V5= 76Inc= orrect format. Consider checking the fifth actual argument of the 'rte_= log' function. The SIGNED integer type argument is expected.
zxdh_np.c (1812)=
V5= 76Inc= orrect format. Consider checking the fifth actual argument of the 'rte_= log' function. The SIGNED integer type argument is expected.
zxdh_np.c (1812)=
V5= 76Inc= orrect format. Consider checking the sixth actual argument of the 'rte_= log' function. The SIGNED integer type argument is expected.
zxdh_np.c (1832)=
V5= 76Inc= orrect format. Consider checking the fifth actual argument of the 'rte_= log' function. The SIGNED integer type argument is expected.
zxdh_np.c (1877)=
V5= 76Inc= orrect format. Consider checking the fifth actual argument of the 'rte_= log' function. The SIGNED integer type argument is expected.
zxdh_np.c (1911)=
V5= 76Inc= orrect format. Consider checking the fifth actual argument of the 'rte_= log' function. The SIGNED integer type argument is expected.
zxdh_np.c (2010)=
V5= 76Inc= orrect format. Consider checking the fifth actual argument of the 'rte_= log' function. The SIGNED integer type argument is expected.
zxdh_np.c (2040)=
V5= 76Inc= orrect format. Consider checking the fifth actual argument of the 'rte_= log' function. The SIGNED integer type argument is expected.
zxdh_np.c (1353)=
V= 1048T= he 'rc' variable was assigned the same value.
zxdh_np.c (1365)
The 'rc&#= 39; variable was assigned the same value.
zxdh_np.c (2049)
V1051Consider checking for m= isprints. It's possible that the 'ppu_eram_baddr' should be che= cked here.
zxdh_pci.c (181)
V519The 'notify_off' variable is assigned values twic= e successively. Perhaps this is a mistake. Check lines: 180, 181.
zxdh_pci.c (422= )
V= 576In= correct format. Consider checking the fifth actual argument of the 'rte= _log' function. The SIGNED integer type argument is expected.
zxdh_queue.c = (187)
V763Parameter 'nb_desc' is always rewritten in function body before b= eing used.
zxdh_queue.c (230)
V763Parameter 'nb_desc' is always rewritten in fu= nction body before being used.
zxdh_queue.c (118)
V547Expression 'queue_type =3D=3D= ZXDH_VTNET_TQ' is always true.
zxdh_queue.c (243)
V576Incorrect format. Consider c= hecking the fifth actual argument of the 'rte_log' function. The UN= SIGNED integer type argument is expected.
zxdh_queue.h (305)
V1048The 'vq->vq_p= acked.event_flags_shadow' variable was assigned the same value.
zxdh_table= s.c (350)
V519The 'ret' variable is assigned values twice successively. Per= haps this is a mistake. Check lines: 341, 350.
zxdh_tables.c (58)
zxdh_tables.c (64)
V547Expression '!port_a= ttr.rss_enable' is always true.
zxdh_tables.c (34)
V1032The pointer 'port_a= ttr' is cast to a more strictly aligned pointer type.
zxdh_tables.c (98)
V10= 32The= pointer '& port_attr' is cast to a more strictly aligned point= er type.
zxdh_tables.c (200)
V1032The pointer 'port_attr' is cast to a more s= trictly aligned pointer type.
zxdh_tables.c (741)
V1032The pointer '& rss_vqi= d' is cast to a more strictly aligned pointer type.
zxdh_tables.c (765)
V103= 2The = pointer '& rss_vqid' is cast to a more strictly aligned pointer= type.
zxdh_tables.c (146)
V576Incorrect format. Consider checking the fifth actual ar= gument of the 'rte_log' function. The UNSIGNED integer type argumen= t is expected.
zxdh_tables.c (289)
V576Incorrect format. Consider checking the fifth a= ctual argument of the 'rte_log' function. The SIGNED integer type a= rgument is expected.
zxdh_tables.c (324)
V576Incorrect format. Consider checking the f= ifth actual argument of the 'rte_log' function. The SIGNED integer = type argument is expected.
zxdh_tables.c (353)
V576Incorrect format. Consider checking= the fifth actual argument of the 'rte_log' function. The SIGNED in= teger type argument is expected.
--00000000000096e99f062e22acb5--