From: Bryan R. <br...@ix...> - 2001-01-05 06:00:05
|
Hi, I've been working on building the latest CVS kernel using the older toolchain and gnb's patch: http://sourceforge.net/patch/download.php?id=103106 and I keep getting lots of these: --- sh-linux-gnu-gcc -D__KERNEL__ -I/home/bryan/src/sh/kernel/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -ml -m4 -pipe -c -o init/main.o init/main.c In file included from /home/bryan/src/sh/kernel/include/linux/fs.h:658, from /home/bryan/src/sh/kernel/include/linux/capability.h:17, from /home/bryan/src/sh/kernel/include/linux/binfmts.h:5, from /home/bryan/src/sh/kernel/include/linux/sched.h:9, from /home/bryan/src/sh/kernel/include/linux/mm.h:4, from /home/bryan/src/sh/kernel/include/linux/slab.h:14, from /home/bryan/src/sh/kernel/include/linux/malloc.h:4, from /home/bryan/src/sh/kernel/include/linux/proc_fs.h:5, from init/main.c:15: /home/bryan/src/sh/kernel/include/linux/udf_fs_sb.h:21: warning: ignoring pragma: pack /home/bryan/src/sh/kernel/include/linux/udf_fs_sb.h:76: warning: ignoring pragma: pack --- I've run into the same warning when porting some of our in-house code... does the old toolchain not implement #pragma pack? If not, why not, and will the new one? In the meantime, I've applied my following patch (hack?): --- udf_fs_sb-old.h Thu Jan 4 21:57:34 2001 +++ udf_fs_sb.h Thu Jan 4 21:58:04 2001 @@ -18,7 +18,9 @@ #if !defined(_LINUX_UDF_FS_SB_H) #define _LINUX_UDF_FS_SB_H +#if !defined(__sh__) #pragma pack(1) +#endif #define UDF_MAX_BLOCK_LOADED 8 @@ -73,7 +75,9 @@ __u16 s_partition_flags; }; +#if !defined(__sh__) #pragma pack() +#endif struct udf_sb_info { --- Regards, Bryan -- Bryan Rittmeyer mailto:br...@ix... Ixia Communications 26601 W. Agoura Rd. Calabasas, CA 91302 |