Getting this warning compiling on an alpha, is it a problem? 2.4.15-pre4 gcc -D__KERNEL__ -I/usr/users/donjr/linux-2.4.15-pre4/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mno-fp-regs -ffixed-8 -mcpu=ev5 -Wa,-mev6 -DEXPORT_SYMTAB -c journal.c journal.c: In function `journal_init_inode': journal.c:758: warning: long long int format, loff_t arg (arg 5) rm -f jbd.o
Since Alphas are 64-bit, 'long long int' is probably just there for code compatibility with x86's, etc. 'long long int' is an emulated 64-bit integer on a 32-bit x86. On Mon, 12 Nov 2001, Donald Maner wrote:> Getting this warning compiling on an alpha, is it a problem? > 2.4.15-pre4 > > > > gcc -D__KERNEL__ -I/usr/users/donjr/linux-2.4.15-pre4/include -Wall > -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer > -fno-strict-aliasing -fno-common -pipe -mno-fp-regs -ffixed-8 -mcpu=ev5 > -Wa,-mev6 -DEXPORT_SYMTAB -c journal.c > journal.c: In function `journal_init_inode': > journal.c:758: warning: long long int format, loff_t arg (arg 5) > rm -f jbd.o > > > > _______________________________________________ > Ext3-users mailing list > Ext3-users@redhat.com > https://listman.redhat.com/mailman/listinfo/ext3-users >-- -Statux
Hi, On Mon, Nov 12, 2001 at 07:10:04PM -0600, Donald Maner wrote:> Getting this warning compiling on an alpha, is it a problem?No.> gcc -D__KERNEL__ -I/usr/users/donjr/linux-2.4.15-pre4/include -Wall > -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer > -fno-strict-aliasing -fno-common -pipe -mno-fp-regs -ffixed-8 -mcpu=ev5 > -Wa,-mev6 -DEXPORT_SYMTAB -c journal.c > journal.c: In function `journal_init_inode': > journal.c:758: warning: long long int format, loff_t arg (arg 5)loff_t is 64 bits, and so is long long. The difference is that on Alpha, longs are 64-bits already, so loff_t just gets defined as a long, not a long long. So, on Alpha, gcc is warning about the type difference between long and long long, but in practice both are already 64 bits so there's no danger. We could clean up the warning by casting the loff_t value into a (long long) explicitly during the printk. Cheers, Stephen
On Mon, Nov 12, 2001 at 07:10:04PM -0600, Donald Maner wrote:> gcc -D__KERNEL__ -I/usr/users/donjr/linux-2.4.15-pre4/include -Wall > -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer > -fno-strict-aliasing -fno-common -pipe -mno-fp-regs -ffixed-8 -mcpu=ev5 > -Wa,-mev6 -DEXPORT_SYMTAB -c journal.c > journal.c: In function `journal_init_inode': > journal.c:758: warning: long long int format, loff_t arg (arg 5)Does this patch fix it for you? --Stephen