Fix gcc 4.6 set but unused variable warnings
Status from this message: Applied, thanks.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/23 | x86: percpu: Avoid warnings of unused variables in per cpuarch/ | +2 | 7 replies | |
| 2/23 | IRQ: Move alloc_desk_mask variables inside ifdefinclude/ | +1 | 0 replies | |
| 3/23 | x86: Avoid unused by set variables in rdmsrarch/ | +2 | 0 replies | |
| 4/23 | pagemap: Avoid unused-but-set variableinclude/ | +3 | 2 replies | |
| 5/23 | x86 boot: Set ax register in boot vga queryarch/ | +1 | 2 replies | |
| 6/23 | perf: Fix set but unused variables in perfarch/ | +0 | 0 replies | |
| 7/23 | x86: fix set but not read variablesarch/ arch/ | +3 | 0 replies | |
| 8/23 | KGDB: Remove set but unused newPCarch/ | +0 | 1 reply | |
| 9/23 | PRINTK: Use stable variable to dump kmsg bufferkernel/ | +5 | 0 replies | |
| 10/23 | SCHED: Only allocate per cpu cpu mask buffer with offstack cpumaskskernel/ | +4 | 6 replies | |
| 11/23 | KVM: Fix KVM_SET_SIGNAL_MASKvirt/ | +1 | 1 reply | |
| 12/23 | BTRFS: Clean up unused variables -- bugsfs/ fs/ fs/ +3 more | +11 | 0 replies | |
| 13/23 | BTRFS: Clean up unused variables -- nonbugsfs/ fs/ fs/ +12 more | +4 | 0 replies | |
| 14/23 | NFSD: Fix initialized but not read warningsfs/ fs/ fs/ +1 more | +3 | 1 reply | |
| 15/23 | EXT4: Fix initialized but not read variablesfs/ fs/ fs/ +5 more | +10 | 1 reply | |
| 16/23 | XFS: Fix gcc 4.6 set but not read and unused statement warningsfs/ fs/ fs/ +9 more | +33 | 10 replies | |
| 17/23 | EXT3: Fix set but unused variablesfs/ fs/ fs/ +1 more | +1 | 3 replies | |
| 18/23 | ACPI: Fix unused but set variables in ACPIdrivers/ drivers/ drivers/ +5 more | +14 | 0 replies | |
| 19/23 | KVM: Fix unused but set warningsarch/ arch/ virt/ | +2 | 1 reply | |
| 20/23 | MM: Fix unused but set warningsarch/ include/ include/ +3 more | +9 | 0 replies | |
| 21/23 | kernel/*: Fix unused but set warningskernel/ kernel/ kernel/ +2 more | +3 | 0 replies | |
| 22/23 | BLOCK: Fix unused but set variables in blk-mergeblock/ | +1 | 0 replies | |
| 23/23 | FS: Fix unused but set warningsfs/ fs/ include/ | +1 | 0 replies |
Reviews trailers per patch
2 of 23 patches have a Reviewed-by or Acked-by.
| Patch | Tejun Heo | Theodore Ts'o |
|---|---|---|
| 1/23 | A-b A-b | |
| 2/23 | ||
| 3/23 | ||
| 4/23 | ||
| 5/23 | ||
| 6/23 | ||
| 7/23 | ||
| 8/23 | ||
| 9/23 | ||
| 10/23 | ||
| 11/23 | ||
| 12/23 | ||
| 13/23 | ||
| 14/23 | ||
| 15/23 | ||
| 16/23 | ||
| 17/23 | A-b | |
| 18/23 | ||
| 19/23 | ||
| 20/23 | ||
| 21/23 | ||
| 22/23 | ||
| 23/23 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH] [0/23] Fix gcc 4.6 set but unused variable warnings
gcc 4.6 -Wall gained a new set but unused variable warning.
First it was incredibly noisy, but when looking at it in detail it actually found some bugs.
I haven't tried to fix all occurrences, but
at least the major ones for my configuration.
If someone is interested more work would be possible on this.
There are still some warnings left, but no flood
and there's really usually some code improvement.
In a few cases I simply shut up the compiler, but
in many other cases dead code is gone or a real
problem has been fixed.
Some of the changes need more review (especially marked and with suitable cc), but most are straight forward.
I did not fix all bugs -- those that were too hard are just commented with the warning left in. I also marked areas that need more attention in the individual patches.
Andrew, something for your tree?
-Andi