Messages in this thread | | | Subject | Re: [PATCH] regmap: silence GCC warning | From | Paul Bolle <> | Date | Mon, 01 Oct 2012 21:08:57 +0200 |
| |
On Mon, 2012-10-01 at 12:39 +0100, Mark Brown wrote: > I assume this is a regression they've introduced in 4.7.
For what it's worth, GCC 4.6 apparently shows identical behavior.
The code that triggers this warning was (basically) introduced in commit b8fb5ab156055b745254609f4635fcfd6b7dabc8 ("regmap: Support raw reads from cached registers"). The first release shipping that commit was v3.4. The log of a build of v3.4 using the oldest version of GCC (that Fedora used to build v3.4) I could find also contains this warning [0]. They used gcc-4.6.3-2.fc16.x86_64 in that build [1].
Perhaps I'll stumble on some build logs of v3.4 for which earlier versions of GCC were used. That might show whether or not earlier releases of GCC also print a warning for this code.
Paul Bolle
[0] http://kojipkgs.fedoraproject.org/packages/kernel/3.4.2/1.fc16/data/logs/x86_64/build.log [1] http://kojipkgs.fedoraproject.org/packages/kernel/3.4.2/1.fc16/data/logs/x86_64/root.log
| |