Which header file?

Valdis.Kletnieks at vt.edu Valdis.Kletnieks at vt.edu
Wed Nov 16 18:30:48 EST 2016


On Wed, 16 Nov 2016 21:01:19 +0000, Amit Kumar said:

> In linux/include/linux/atomic.h, there are two files included asm/atomic.h
> and asm/barrier.h. Both files are present in linux/include/asm-generic and
> linux/arch/arm/include/asm. If I build like,
> CROSS_COMPILE=arm-linux-gnueabi- ARCH=arm make zImage dtbs
> then which file is being used.

Hint 1: Check for symlinks.
Hint 2: Compile with  'make V=1' which will show the complete gcc command line,
so you can see the order of -I parameters.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 484 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20161116/f358c6db/attachment.bin 


More information about the Kernelnewbies mailing list