|WARNING| pw106019 [PATCH v5 01/11] raw/cnxk_gpio: add GPIO driver skeleton

checkpatch at dpdk.org checkpatch at dpdk.org
Tue Jan 18 14:26:22 CET 2022


Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/106019

_coding style issues_


WARNING:NAKED_SSCANF: unchecked sscanf return value
#275: FILE: drivers/raw/cnxk_gpio/cnxk_gpio.c:52:
+	sscanf(namelist[0]->d_name, "gpiochip%d", &gpiochip->num);

WARNING:SSCANF_TO_KSTRTO: Prefer kstrto<type> to single variable sscanf
#357: FILE: drivers/raw/cnxk_gpio/cnxk_gpio.c:134:
+	ret = sscanf(buf, "%d", val);

total: 0 errors, 2 warnings, 383 lines checked


More information about the test-report mailing list