========== build_clang - FAILED ../drivers/net/phy/marvell_ptp.c:88:6: warning: variable 'err' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] 88 | if (oldpage >= 0) { | ^~~~~~~~~~~~ ../drivers/net/phy/marvell_ptp.c:96:42: note: uninitialized use occurs here 96 | err = phy_restore_page(phydev, oldpage, err); | ^~~ ../drivers/net/phy/marvell_ptp.c:88:2: note: remove the 'if' if its condition is always true 88 | if (oldpage >= 0) { | ^~~~~~~~~~~~~~~~~ ../drivers/net/phy/marvell_ptp.c:85:9: note: initialize the variable 'err' to silence this warning 85 | int err, oldpage, lo, hi; | ^ | = 0 ../drivers/net/phy/marvell_ptp.c:142:6: warning: variable 'ret' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] 142 | if (oldpage >= 0) { | ^~~~~~~~~~~~ ../drivers/net/phy/marvell_ptp.c:180:43: note: uninitialized use occurs here 180 | return phy_restore_page(phydev, oldpage, ret); | ^~~ ../drivers/net/phy/marvell_ptp.c:142:2: note: remove the 'if' if its condition is always true 142 | if (oldpage >= 0) { | ^~~~~~~~~~~~~~~~~ ../drivers/net/phy/marvell_ptp.c:136:9: note: initialize the variable 'ret' to silence this warning 136 | int ret; | ^ | = 0 ../drivers/net/phy/marvell_ptp.c:269:30: error: too few arguments to function call, expected 7, have 5 267 | err = marvell_tai_probe(&tai, &marvell_phy_ptp_ops, | ~~~~~~~~~~~~~~~~~ 268 | &marvell_phy_tai_param, 269 | "Marvell PHY", dev); | ^ ../include/linux/marvell_ptp.h:78:5: note: 'marvell_tai_probe' declared here 78 | int marvell_tai_probe(struct marvell_tai **taip, | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ 79 | const struct marvell_ptp_ops *ops, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 80 | const struct marvell_tai_param *param, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 81 | struct ptp_pin_desc *pin_config, int n_pins, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 82 | const char *name, struct device *dev); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 warnings and 1 error generated. make[6]: *** [../scripts/Makefile.build:203: drivers/net/phy/marvell_ptp.o] Error 1 make[6]: *** Waiting for unfinished jobs.... make[5]: *** [../scripts/Makefile.build:461: drivers/net/phy] Error 2 make[4]: *** [../scripts/Makefile.build:461: drivers/net] Error 2 make[4]: *** Waiting for unfinished jobs.... make[3]: *** [../scripts/Makefile.build:461: drivers] Error 2 make[2]: *** [/home/nipa/net-next/wt-1/Makefile:2009: .] Error 2 make[1]: *** [/home/nipa/net-next/wt-1/Makefile:248: __sub-make] Error 2 make: *** [Makefile:248: __sub-make] Error 2 WARNING: modpost: missing MODULE_DESCRIPTION() in mm/kasan/kasan_test.o WARNING: modpost: missing MODULE_DESCRIPTION() in lib/tests/slub_kunit.o ../drivers/net/phy/marvell_ptp.c:88:6: warning: variable 'err' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] 88 | if (oldpage >= 0) { | ^~~~~~~~~~~~ ../drivers/net/phy/marvell_ptp.c:96:42: note: uninitialized use occurs here 96 | err = phy_restore_page(phydev, oldpage, err); | ^~~ ../drivers/net/phy/marvell_ptp.c:88:2: note: remove the 'if' if its condition is always true 88 | if (oldpage >= 0) { | ^~~~~~~~~~~~~~~~~ ../drivers/net/phy/marvell_ptp.c:85:9: note: initialize the variable 'err' to silence this warning 85 | int err, oldpage, lo, hi; | ^ | = 0 ../drivers/net/phy/marvell_ptp.c:142:6: warning: variable 'ret' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] 142 | if (oldpage >= 0) { | ^~~~~~~~~~~~ ../drivers/net/phy/marvell_ptp.c:180:43: note: uninitialized use occurs here 180 | return phy_restore_page(phydev, oldpage, ret); | ^~~ ../drivers/net/phy/marvell_ptp.c:142:2: note: remove the 'if' if its condition is always true 142 | if (oldpage >= 0) { | ^~~~~~~~~~~~~~~~~ ../drivers/net/phy/marvell_ptp.c:136:9: note: initialize the variable 'ret' to silence this warning 136 | int ret; | ^ | = 0 ../drivers/net/phy/marvell_ptp.c:269:30: error: too few arguments to function call, expected 7, have 5 267 | err = marvell_tai_probe(&tai, &marvell_phy_ptp_ops, | ~~~~~~~~~~~~~~~~~ 268 | &marvell_phy_tai_param, 269 | "Marvell PHY", dev); | ^ ../include/linux/marvell_ptp.h:78:5: note: 'marvell_tai_probe' declared here 78 | int marvell_tai_probe(struct marvell_tai **taip, | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ 79 | const struct marvell_ptp_ops *ops, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 80 | const struct marvell_tai_param *param, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 81 | struct ptp_pin_desc *pin_config, int n_pins, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 82 | const char *name, struct device *dev); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 warnings and 1 error generated. make[6]: *** [../scripts/Makefile.build:203: drivers/net/phy/marvell_ptp.o] Error 1 make[6]: *** Waiting for unfinished jobs.... make[5]: *** [../scripts/Makefile.build:461: drivers/net/phy] Error 2 make[5]: *** Waiting for unfinished jobs.... make[4]: *** [../scripts/Makefile.build:461: drivers/net] Error 2 make[4]: *** Waiting for unfinished jobs.... make[3]: *** [../scripts/Makefile.build:461: drivers] Error 2 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [/home/nipa/net-next/wt-1/Makefile:2009: .] Error 2 make[1]: *** [/home/nipa/net-next/wt-1/Makefile:248: __sub-make] Error 2 make: *** [Makefile:248: __sub-make] Error 2 New errors added --- /tmp/tmp.oZdJ1D9qW2 2025-04-11 16:38:56.232736854 -0700 +++ /tmp/tmp.MdqGlrXg9J 2025-04-11 16:39:23.512761985 -0700 @@ -1,2 +1,55 @@ -WARNING: modpost: missing MODULE_DESCRIPTION() in mm/kasan/kasan_test.o -WARNING: modpost: missing MODULE_DESCRIPTION() in lib/tests/slub_kunit.o +../drivers/net/phy/marvell_ptp.c:88:6: warning: variable 'err' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] + 88 | if (oldpage >= 0) { + | ^~~~~~~~~~~~ +../drivers/net/phy/marvell_ptp.c:96:42: note: uninitialized use occurs here + 96 | err = phy_restore_page(phydev, oldpage, err); + | ^~~ +../drivers/net/phy/marvell_ptp.c:88:2: note: remove the 'if' if its condition is always true + 88 | if (oldpage >= 0) { + | ^~~~~~~~~~~~~~~~~ +../drivers/net/phy/marvell_ptp.c:85:9: note: initialize the variable 'err' to silence this warning + 85 | int err, oldpage, lo, hi; + | ^ + | = 0 +../drivers/net/phy/marvell_ptp.c:142:6: warning: variable 'ret' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] + 142 | if (oldpage >= 0) { + | ^~~~~~~~~~~~ +../drivers/net/phy/marvell_ptp.c:180:43: note: uninitialized use occurs here + 180 | return phy_restore_page(phydev, oldpage, ret); + | ^~~ +../drivers/net/phy/marvell_ptp.c:142:2: note: remove the 'if' if its condition is always true + 142 | if (oldpage >= 0) { + | ^~~~~~~~~~~~~~~~~ +../drivers/net/phy/marvell_ptp.c:136:9: note: initialize the variable 'ret' to silence this warning + 136 | int ret; + | ^ + | = 0 +../drivers/net/phy/marvell_ptp.c:269:30: error: too few arguments to function call, expected 7, have 5 + 267 | err = marvell_tai_probe(&tai, &marvell_phy_ptp_ops, + | ~~~~~~~~~~~~~~~~~ + 268 | &marvell_phy_tai_param, + 269 | "Marvell PHY", dev); + | ^ +../include/linux/marvell_ptp.h:78:5: note: 'marvell_tai_probe' declared here + 78 | int marvell_tai_probe(struct marvell_tai **taip, + | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ + 79 | const struct marvell_ptp_ops *ops, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 80 | const struct marvell_tai_param *param, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 81 | struct ptp_pin_desc *pin_config, int n_pins, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 82 | const char *name, struct device *dev); + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +2 warnings and 1 error generated. +make[6]: *** [../scripts/Makefile.build:203: drivers/net/phy/marvell_ptp.o] Error 1 +make[6]: *** Waiting for unfinished jobs.... +make[5]: *** [../scripts/Makefile.build:461: drivers/net/phy] Error 2 +make[5]: *** Waiting for unfinished jobs.... +make[4]: *** [../scripts/Makefile.build:461: drivers/net] Error 2 +make[4]: *** Waiting for unfinished jobs.... +make[3]: *** [../scripts/Makefile.build:461: drivers] Error 2 +make[3]: *** Waiting for unfinished jobs.... +make[2]: *** [/home/nipa/net-next/wt-1/Makefile:2009: .] Error 2 +make[1]: *** [/home/nipa/net-next/wt-1/Makefile:248: __sub-make] Error 2 +make: *** [Makefile:248: __sub-make] Error 2 Per-file breakdown --- /tmp/tmp.H60pV7V74d 2025-04-11 16:39:23.518146403 -0700 +++ /tmp/tmp.j94xz9IO2y 2025-04-11 16:39:23.522146361 -0700 @@ -0,0 +1 @@ + 5 ../drivers/net/phy/marvell_ptp.c