Messages in this thread | | | Date | Mon, 6 Jun 2022 18:51:02 +0700 | Subject | Re: Linux 5.19-rc1 | From | Ammar Faizi <> |
| |
On 6/6/22 7:42 AM, Linus Torvalds wrote: > So hey, let's start calming things down and testing this all.
Doesn't compile with clang 15, the fix is there:
https://lore.kernel.org/lkml/20220523150521.2947108-1-nathan@kernel.org/
Error: ``` ammarfaizi2@integral2:~/work/linux.work$ git log -n 1
commit f2906aa863381afb0015a9eb7fefad885d4e5a56 (HEAD -> master, tag: v5.19-rc1, @torvalds/linux/master) Author: Linus Torvalds <torvalds@linux-foundation.org> Date: Sun Jun 5 17:18:54 2022 -0700
Linux 5.19-rc1 ammarfaizi2@integral2:~/work/linux.work$ ammarfaizi2@integral2:~/work/linux.work$ taskset -c 0-7 make -j8 && taskset -c 0-7 make modules -j8 DESCEND objtool CALL scripts/atomic/check-atomics.sh CALL scripts/checksyscalls.sh CHK include/generated/compile.h CC [M] drivers/misc/cardreader/rts5261.o CC [M] drivers/misc/altera-stapl/altera-lpt.o CC [M] drivers/misc/altera-stapl/altera-jtag.o CC [M] drivers/misc/altera-stapl/altera-comp.o drivers/misc/cardreader/rts5261.c:406:13: error: variable 'setting_reg2' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized] } else if (efuse_valid == 0) { ^~~~~~~~~~~~~~~~ drivers/misc/cardreader/rts5261.c:412:30: note: uninitialized use occurs here pci_read_config_dword(pdev, setting_reg2, &lval2); ^~~~~~~~~~~~ drivers/misc/cardreader/rts5261.c:406:9: note: remove the 'if' if its condition is always true } else if (efuse_valid == 0) { ^~~~~~~~~~~~~~~~~~~~~~ drivers/misc/cardreader/rts5261.c:364:32: note: initialize the variable 'setting_reg2' to silence this warning u16 setting_reg1, setting_reg2; ^ = 0 1 error generated. make[3]: *** [scripts/Makefile.build:249: drivers/misc/cardreader/rts5261.o] Error 1 make[2]: *** [scripts/Makefile.build:466: drivers/misc/cardreader] Error 2 make[2]: *** Waiting for unfinished jobs....
```
-- Ammar Faizi
| |