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 0F226462C8 for ; Sat, 8 Mar 2025 19:53:00 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F1BE0402A0; Sat, 8 Mar 2025 19:52:59 +0100 (CET) Received: from dpdk.org (dpdk.org [92.243.24.197]) by mails.dpdk.org (Postfix) with ESMTP id 5BC9D40280 for ; Sat, 8 Mar 2025 19:52:59 +0100 (CET) Received: by dpdk.org (Postfix, from userid 65534) id 9C0E9127D13; Sat, 8 Mar 2025 19:52:58 +0100 (CET) Subject: |WARNING| pw152293 [PATCH v2] rust: support raw DPDK API In-Reply-To: <20250308185031.979893-1-getelson@nvidia.com> References: <20250308185031.979893-1-getelson@nvidia.com> To: test-report@dpdk.org From: checkpatch@dpdk.org Cc: Gregory Etelson Message-Id: <20250308185258.9C0E9127D13@dpdk.org> Date: Sat, 8 Mar 2025 19:52:58 +0100 (CET) X-BeenThere: test-report@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: automatic DPDK test reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: test-report-bounces@dpdk.org Test-Label: checkpatch Test-Status: WARNING http://dpdk.org/patch/152293 _coding style issues_ WARNING:TYPO_SPELLING: 'crate' may be misspelled - perhaps 'create'? #122: RUST API files into raw module under dpdk crate. WARNING:TYPO_SPELLING: 'crate' may be misspelled - perhaps 'create'? #127: RUST DPDK application must specify the `dpdk` crate as WARNING:TYPO_SPELLING: 'crate' may be misspelled - perhaps 'create'? #130: RUST `dpdk` crate is installed into WARNING:TYPO_SPELLING: 'crate' may be misspelled - perhaps 'create'? #136: - bindgen-cli crate WARNING:TYPO_SPELLING: 'crate' may be misspelled - perhaps 'create'? #141: $MESON_INSTALL_DESTDIR_PREFIX/$libdir/rust crate. WARNING:TYPO_SPELLING: 'coversion' may be misspelled - perhaps 'conversion'? #183: FILE: buildtools/rust-env.sh:6: +# The coversion is done in 4 stages: WARNING:TYPO_SPELLING: 'crate' may be misspelled - perhaps 'create'? #258: FILE: buildtools/rust-env.sh:81: +echo "Install RUST DPDK crate in $rust_dir" WARNING:TYPO_SPELLING: 'mut' may be misspelled - perhaps 'must'? #301: FILE: examples/rust/helloworld/build.rs:4: + let mut pkgconfig = Command::new("pkg-config"); WARNING:TYPO_SPELLING: 'mut' may be misspelled - perhaps 'must'? #402: FILE: examples/rust/helloworld/src/main.rs:77: + let mut port_id:DpdkPort = 0 as DpdkPort; WARNING:TYPO_SPELLING: 'mut' may be misspelled - perhaps 'must'? #422: FILE: examples/rust/helloworld/src/main.rs:97: +pub unsafe fn init_port_config(port: &mut Port) { WARNING:TYPO_SPELLING: 'mut' may be misspelled - perhaps 'must'? #424: FILE: examples/rust/helloworld/src/main.rs:99: + rte_eth_dev_info_get(port.port_id, &mut port.dev_info as *mut rte_eth_dev_info) WARNING:TYPO_SPELLING: 'mut' may be misspelled - perhaps 'must'? #424: FILE: examples/rust/helloworld/src/main.rs:99: + rte_eth_dev_info_get(port.port_id, &mut port.dev_info as *mut rte_eth_dev_info) WARNING:TYPO_SPELLING: 'mut' may be misspelled - perhaps 'must'? #430: FILE: examples/rust/helloworld/src/main.rs:105: + port.dev_conf.rx_adv_conf.rss_conf.rss_key = std::ptr::null_mut(); WARNING:TYPO_SPELLING: 'mut' may be misspelled - perhaps 'must'? #442: FILE: examples/rust/helloworld/src/main.rs:117: + let mut name_buf:[c_char;RTE_ETH_NAME_MAX_LEN as usize]= [0 as c_char;RTE_ETH_NAME_MAX_LEN as usize]; WARNING:TYPO_SPELLING: 'mut' may be misspelled - perhaps 'must'? #446: FILE: examples/rust/helloworld/src/main.rs:121: + let _rc = rte_eth_dev_get_name_by_port(p.port_id, name_buf.as_mut_ptr()); WARNING:TYPO_SPELLING: 'mut' may be misspelled - perhaps 'must'? #455: FILE: examples/rust/helloworld/src/main.rs:130: +unsafe fn start_port(port:&mut Port) { WARNING:TYPO_SPELLING: 'mut' may be misspelled - perhaps 'must'? #456: FILE: examples/rust/helloworld/src/main.rs:131: + let mut rc = unsafe { WARNING:TYPO_SPELLING: 'mut' may be misspelled - perhaps 'must'? #470: FILE: examples/rust/helloworld/src/main.rs:145: + let mbuf_pool : *mut dpdk::raw::rte_mbuf::rte_mempool = unsafe { WARNING:TYPO_SPELLING: 'mut' may be misspelled - perhaps 'must'? #474: FILE: examples/rust/helloworld/src/main.rs:149: + if mbuf_pool == 0 as *mut dpdk::raw::rte_mbuf::rte_mempool { WARNING:TYPO_SPELLING: 'mut' may be misspelled - perhaps 'must'? #479: FILE: examples/rust/helloworld/src/main.rs:154: + let mut rxq_conf:rte_eth_rxconf = port.dev_info.default_rxconf.clone(); WARNING:TYPO_SPELLING: 'mut' may be misspelled - perhaps 'must'? #483: FILE: examples/rust/helloworld/src/main.rs:158: + &mut rxq_conf as *mut rte_eth_rxconf, WARNING:TYPO_SPELLING: 'mut' may be misspelled - perhaps 'must'? #483: FILE: examples/rust/helloworld/src/main.rs:158: + &mut rxq_conf as *mut rte_eth_rxconf, WARNING:TYPO_SPELLING: 'mut' may be misspelled - perhaps 'must'? #484: FILE: examples/rust/helloworld/src/main.rs:159: + mbuf_pool as *mut dpdk::raw::rte_ethdev::rte_mempool) WARNING:TYPO_SPELLING: 'mut' may be misspelled - perhaps 'must'? #497: FILE: examples/rust/helloworld/src/main.rs:172: + let mut argv: Vec<*mut c_char> = env::args() WARNING:TYPO_SPELLING: 'mut' may be misspelled - perhaps 'must'? #497: FILE: examples/rust/helloworld/src/main.rs:172: + let mut argv: Vec<*mut c_char> = env::args() WARNING:TYPO_SPELLING: 'mut' may be misspelled - perhaps 'must'? #501: FILE: examples/rust/helloworld/src/main.rs:176: + rte_eal_init(env::args().len() as c_int, argv.as_mut_ptr()) WARNING:TYPO_SPELLING: 'mut' may be misspelled - perhaps 'must'? #507: FILE: examples/rust/helloworld/src/main.rs:182: + let mut ports:Vec = vec![]; WARNING:TYPO_SPELLING: 'mut' may be misspelled - perhaps 'must'? #511: FILE: examples/rust/helloworld/src/main.rs:186: + let mut port = Port::new(port_id); WARNING:TYPO_SPELLING: 'mut' may be misspelled - perhaps 'must'? #512: FILE: examples/rust/helloworld/src/main.rs:187: + init_port_config(&mut port); WARNING:TYPO_SPELLING: 'mut' may be misspelled - perhaps 'must'? #514: FILE: examples/rust/helloworld/src/main.rs:189: + start_port(&mut port); total: 0 errors, 30 warnings, 333 lines checked