W dniu 27 czerwca 2011 16:24 uÅytkownik Alexey Dobriyan
<adobriyan@xxxxxxxxx> napisaÅ:
2011/6/27 RafaÅ MiÅecki<zajec5@xxxxxxxxx>:Scanning code is required for every BCMA board, so we already include2011/6/26 Geert Uytterhoeven<geert@xxxxxxxxxxxxxx>:It isn't better solution.m68k allmodconfig:We already include slab.h in:
drivers/bcma/main.c: In function âbcma_release_core_devâ:
drivers/bcma/main.c:68: error: implicit declaration of function âkfreeâ
host_pci.c
scan.c
sprom.c
Maybe we can just include this in bcma.h as a better solution?
It results in situation where unnecessary inclusion will be done.
Maybe it's not the case now, but it will be in future.
linux/slab.h on every configuration. No matter if this is PCI host
board, or SoC, or whatever we will support in the future.
Now we discovered this is also needed in main.c, which will be always compiled.
That's why I think it's safe to include linux/slab.h in bcma_private.h.
But if that's just my opinion, everybody think it's wrong idea, I'm OK with it.