Commit 401d1c4f5d2 ("common: Drop asm/global_data.h from common header") broke CONFIG_CMD_SQUASHFS=y
Hello!
Commit 401d1c4f5d2d29c4bc4beaec95402ca23eb63295 ("common: Drop asm/global_data.h from common header") broke compilation of squashfs filesystem when CONFIG_CMD_SQUASHFS=y is enabled.
Here is console output:
fs/squashfs/sqfs_inode.c: In function ?sqfs_find_inode?:fs/squashfs/sqfs_inode.c:121:18: warning: implicit declaration of function ?le32_to_cpu? [-Wimplicit-function-declaration]
for (k = 0; k < le32_to_cpu(inode_count); k++) {
^~~~~~~~~~~ LD u-boot
aarch64-linux-gnu-ld.bfd: fs/built-in.o: in function `sqfs_find_inode':
/u-boot/fs/squashfs/sqfs_inode.c:126: undefined reference to le32_to_cpu' aarch64-linux-gnu-ld.bfd: /u-boot/fs/squashfs/sqfs_inode.c:121: undefined reference to le32_to_cpu' Segmentation fault
make: *** [Makefile:1765: u-boot] Error 139
make: *** Deleting file 'u-boot'
When compiling U-Boot prior that commit, there is no error.
Simon and Tom: you have signed problematic mentioned commit. Could you please look@it?
Quoted 20 lines · Pali Roh?r
Hello!
Commit
401d1c4f5d2d29c4bc4beaec95402ca23eb63295("common: Dropasm/global_data.hfrom common header") broke compilation of squashfs filesystem whenCONFIG_CMD_SQUASHFS=yis enabled.Here is console output:
fs/squashfs/sqfs_inode.c: In function ?sqfs_find_inode?:fs/squashfs/sqfs_inode.c:121:18: warning: implicit declaration of function ?le32_to_cpu? [-Wimplicit-function-declaration]for (k = 0; k < le32_to_cpu(inode_count); k++) { ^~~~~~~~~~~LD u-boot
aarch64-linux-gnu-ld.bfd:fs/built-in.o: in function `sqfs_find_inode':
/u-boot/fs/squashfs/sqfs_inode.c:126: undefined reference tole32_to_cpu' aarch64-linux-gnu-ld.bfd: /u-boot/fs/squashfs/sqfs_inode.c:121: undefined reference tole32_to_cpu' Segmentation fault
make: *** [Makefile:1765: u-boot] Error 139
make: *** Deleting file 'u-boot'
Quoted 4 lines
When compiling U-Boot prior that commit, there is no error.
Simon and Tom: you have signed problematic mentioned commit. Could you please look at it?
Yes, that file probably needs <compiler.h>, please check.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210226/1a1cfbbe/attachment.sig>
Quoted 22 lines · On Friday 26 February 2021 07:51:53 Tom Rini wrote:
Quoted 20 lines · Pali Roh?r
Hello!
Commit
401d1c4f5d2d29c4bc4beaec95402ca23eb63295("common: Dropasm/global_data.hfrom common header") broke compilation of squashfs filesystem whenCONFIG_CMD_SQUASHFS=yis enabled.Here is console output:
fs/squashfs/sqfs_inode.c: In function ?sqfs_find_inode?:fs/squashfs/sqfs_inode.c:121:18: warning: implicit declaration of function ?le32_to_cpu? [-Wimplicit-function-declaration]for (k = 0; k < le32_to_cpu(inode_count); k++) { ^~~~~~~~~~~LD u-boot
aarch64-linux-gnu-ld.bfd:fs/built-in.o: in function `sqfs_find_inode':
/u-boot/fs/squashfs/sqfs_inode.c:126: undefined reference tole32_to_cpu' aarch64-linux-gnu-ld.bfd: /u-boot/fs/squashfs/sqfs_inode.c:121: undefined reference tole32_to_cpu' Segmentation fault
make: *** [Makefile:1765: u-boot] Error 139
make: *** Deleting file 'u-boot'
Quoted 9 lines
Quoted 4 lines
When compiling U-Boot prior that commit, there is no error.
Simon and Tom: you have signed problematic mentioned commit. Could you please look at it?
Yes, that file probably needs <
compiler.h>, please check.Signature · 1 line
Tom
Perfect, including <compiler.h> fixed it!
Quoted 28 lines · On Friday 26 February 2021 13:54:40 Pali Roh?r wrote:
Quoted 27 lines · On Friday 26 February 2021 07:51:53 Tom Rini wrote:
Quoted 24 lines · Pali Roh?r
Hello!
Commit
401d1c4f5d2d29c4bc4beaec95402ca23eb63295("common: Dropasm/global_data.hfrom common header") broke compilation of squashfs filesystem whenCONFIG_CMD_SQUASHFS=yis enabled.Here is console output:
fs/squashfs/sqfs_inode.c: In function ?sqfs_find_inode?:fs/squashfs/sqfs_inode.c:121:18: warning: implicit declaration of function ?le32_to_cpu? [-Wimplicit-function-declaration]for (k = 0; k < le32_to_cpu(inode_count); k++) { ^~~~~~~~~~~LD u-boot
aarch64-linux-gnu-ld.bfd:fs/built-in.o: in function `sqfs_find_inode':
/u-boot/fs/squashfs/sqfs_inode.c:126: undefined reference tole32_to_cpu' aarch64-linux-gnu-ld.bfd: /u-boot/fs/squashfs/sqfs_inode.c:121: undefined reference tole32_to_cpu' Segmentation fault
make: *** [Makefile:1765: u-boot] Error 139
make: *** Deleting file 'u-boot'When compiling U-Boot prior that commit, there is no error.
Simon and Tom: you have signed problematic mentioned commit. Could you please look at it?
Quoted 6 lines
Quoted 4 lines
Yes, that file probably needs <
compiler.h>, please check.Signature · 1 line
TomPerfect, including <
compiler.h> fixed it!
Simon, or Tom, are you going to fix this issue in U-Boot master branch? I think patch needs Fixes: tag with mentioned commit as it broke compilation of U-Boot.
Quoted 31 lines · Pali Roh?r
Quoted 30 lines · On Friday 26 February 2021 13:54:40 Pali Roh?r wrote:
Quoted 29 lines · On Friday 26 February 2021 07:51:53 Tom Rini wrote:
Quoted 20 lines · Pali Roh?r
Hello!
Commit
401d1c4f5d2d29c4bc4beaec95402ca23eb63295("common: Dropasm/global_data.hfrom common header") broke compilation of squashfs filesystem whenCONFIG_CMD_SQUASHFS=yis enabled.Here is console output:
fs/squashfs/sqfs_inode.c: In function ?sqfs_find_inode?:fs/squashfs/sqfs_inode.c:121:18: warning: implicit declaration of function ?le32_to_cpu? [-Wimplicit-function-declaration]for (k = 0; k < le32_to_cpu(inode_count); k++) { ^~~~~~~~~~~LD u-boot
aarch64-linux-gnu-ld.bfd:fs/built-in.o: in function `sqfs_find_inode':
/u-boot/fs/squashfs/sqfs_inode.c:126: undefined reference tole32_to_cpu' aarch64-linux-gnu-ld.bfd: /u-boot/fs/squashfs/sqfs_inode.c:121: undefined reference tole32_to_cpu' Segmentation fault
make: *** [Makefile:1765: u-boot] Error 139
make: *** Deleting file 'u-boot'Quoted 4 lines
When compiling U-Boot prior that commit, there is no error.
Simon and Tom: you have signed problematic mentioned commit. Could you please look at it?
Yes, that file probably needs <
compiler.h>, please check.
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
Signature · 1 line
TomPerfect, including <
compiler.h> fixed it!Simon, or Tom, are you going to fix this issue in U-Boot master branch? I think patch needs Fixes: tag with mentioned commit as it broke compilation of U-Boot.
No, I was assuming you would submit a patch since nothing in mainline atm is tripping on this issue.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210302/6d62a030/attachment.sig>
Quoted 35 lines · On Tuesday 02 March 2021 16:27:27 Tom Rini wrote:
Quoted 34 lines · Pali Roh?r
Quoted 33 lines · On Friday 26 February 2021 13:54:40 Pali Roh?r wrote:
Quoted 31 lines · On Friday 26 February 2021 07:51:53 Tom Rini wrote:
Quoted 20 lines · Pali Roh?r
Hello!
Commit
401d1c4f5d2d29c4bc4beaec95402ca23eb63295("common: Dropasm/global_data.hfrom common header") broke compilation of squashfs filesystem whenCONFIG_CMD_SQUASHFS=yis enabled.Here is console output:
fs/squashfs/sqfs_inode.c: In function ?sqfs_find_inode?:fs/squashfs/sqfs_inode.c:121:18: warning: implicit declaration of function ?le32_to_cpu? [-Wimplicit-function-declaration]for (k = 0; k < le32_to_cpu(inode_count); k++) { ^~~~~~~~~~~LD u-boot
aarch64-linux-gnu-ld.bfd:fs/built-in.o: in function `sqfs_find_inode':
/u-boot/fs/squashfs/sqfs_inode.c:126: undefined reference tole32_to_cpu' aarch64-linux-gnu-ld.bfd: /u-boot/fs/squashfs/sqfs_inode.c:121: undefined reference tole32_to_cpu' Segmentation fault
make: *** [Makefile:1765: u-boot] Error 139
make: *** Deleting file 'u-boot'Quoted 4 lines
When compiling U-Boot prior that commit, there is no error.
Simon and Tom: you have signed problematic mentioned commit. Could you please look at it?
Yes, that file probably needs <
compiler.h>, please check.Signature · 1 line
Tom
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Perfect, including <
compiler.h> fixed it!Simon, or Tom, are you going to fix this issue in U-Boot master branch? I think patch needs Fixes: tag with mentioned commit as it broke compilation of U-Boot.
No, I was assuming you would submit a patch since nothing in mainline atm is tripping on this issue.
Ok, I have done it, I sent patch ML. Please review it.