ARM: pxa: remove duplicated include from spitz.c
Subsystems (3)
PATCH 1/1 ARM: pxa: remove duplicated include from spitz.c
Remove duplicated include.
--- arch/arm/mach-pxa/spitz.c | 1 - 1 file changed, 1 deletion(-)
arch/arm/mach-pxa/spitz.c +0 -1
@@ -31,7 +31,6 @@#include <linux/input/matrix_keypad.h> #include <linux/regulator/machine.h> #include <linux/io.h> -#include <linux/module.h> #include <linux/reboot.h> #include <linux/memblock.h>
Robert Jarzmik
maintainerQuoted 1 line · Wei Yongjun
Remove duplicated include.
How so duplicated ? Can you elaborate please ?
Moreover, how do you do think symbol_get() can stay in spitz.c without having this include ?
Cheers.
--
Robert
Hi Robert,
Quoted 7 lines · Robert Jarzmik
Quoted 1 line · Wei Yongjun
Remove duplicated include.
How so duplicated ? Can you elaborate please ?
Moreover, how do you do think
symbol_get()can stay inspitz.cwithout having this include ?
file linux/module.h included twice as following:
#include <linux/kernel.h>
#include <linux/module.h> /* symbol_get ; symbol_put */
...
#include <linux/module.h>
So I think we can remove the dup include.
Regards,
Wei Yongjun
Robert Jarzmik
maintainerQuoted 10 lines · Wei Yongjun
Hi Robert,
Quoted 7 lines · Robert Jarzmik
Quoted 1 line · Wei Yongjun
Remove duplicated include.
How so duplicated ? Can you elaborate please ?
Moreover, how do you do think
symbol_get()can stay inspitz.cwithout having this include ?
Quoted 8 lines
file
linux/module.hincluded twice as following:#include <
linux/kernel.h>
#include <linux/module.h> /*symbol_get;symbol_put*/
...
#include <linux/module.h>So I think we can remove the dup include.
Ah I see it now.
What you really mean is that you want to revert 12beb346710b ("Merge tag 'pxa-fixes-v4.8' of https://github.com/rjarzmik/linux into randconfig-4.8"), because :
- I wasn't carefull enough at review time of
https://github.com/rjarzmik/linux/commit/5351ca4e70f30e0175265fbf98691528b9a4e990
https://github.com/rjarzmik/linux/commit/a3c747b96df66a7eb810fef45f3b9e65614712d9
- and because Paul wasn't very carefull when we look at :
73017a542fd2 ("arm: fix implicit module.h users by adding it to arch/arm as required.")
So all in all, I'd prefer a revert with Paul's ack please.
And this time I'll go through my pxa/for-next tree, I was a fool to put that in pxa/fixes.
Cheers.
Signature · 1 line
Robert
Quoted 30 lines · [Re: [PATCH -next] ARM: pxa: remove duplicated include from spitz.c] On…
Quoted 10 lines · Wei Yongjun
Hi Robert,
Quoted 7 lines · Robert Jarzmik
Quoted 1 line · Wei Yongjun
Remove duplicated include.
How so duplicated ? Can you elaborate please ?
Moreover, how do you do think
symbol_get()can stay inspitz.cwithout having this include ?Quoted 8 lines
file
linux/module.hincluded twice as following:#include <
linux/kernel.h>
#include <linux/module.h> /*symbol_get;symbol_put*/
...
#include <linux/module.h>So I think we can remove the dup include.
Ah I see it now.
What you really mean is that you want to revert
12beb346710b("Merge tag 'pxa-fixes-v4.8' of https://github.com/rjarzmik/linux into randconfig-4.8"), because :
- I wasn't carefull enough at review time of
https://github.com/rjarzmik/linux/commit/5351ca4e70f30e0175265fbf98691528b9a4e990
https://github.com/rjarzmik/linux/commit/a3c747b96df66a7eb810fef45f3b9e65614712d9
Quoted 5 lines
- and because Paul wasn't very carefull when we look at :
73017a542fd2("arm: fix implicitmodule.husers by adding it toarch/armas required.")So all in all, I'd prefer a revert with Paul's ack please.
So if possible, please drop the duplicate module.h w/o the comment vs. a revert. Since it appeared as a pseudo merge and was not my original commit anyway, this shouldn't be a problem I hope...
You can call it careless if you want, I won't be offended -- FWIW I was juggling several different streams; one to audit and remove apparently non-required inclusions of module.h and one to unwind the implicit gpio inclusion presence before trying to pave the way to fixing _that_ last minute for 4.8; it was mixing and testing the two simulatenously that led to the removal and re-addition; which when separating out the latter caused it to become a duplicate additon as reported above.
Not an excuse; just one of those happenstance corner cases. I'd since fixed the dup locally and added this to my automated testing:
make includecheck |sort > /tmp/pre-include.txt
<...apply all WIP patches>
make includecheck |sort > /tmp/post-include.txt
diff -u /tmp/pre-include.txt /tmp/post-include.txt > /tmp/inc-delta.txt if [ -s /tmp/inc-delta.txt ]; then
echo redundant includes changed.
cat /tmp/inc-delta.txt
fi
Quoted 2 lines
And this time I'll go through my pxa/for-next tree, I was a fool to put that in pxa/fixes.
Well, you were not a fool - the fault is mine if it belongs to anyone. You made a sensible call based on what I wrote in the commit log.
Fortunately it is 100% harmless and if you want to clean it up locally and do so ASAP, then no problem -- do it and consider it Ack'd.
Thanks,
Paul.
--
Quoted 4 lines
Cheers.
-- Robert