lkml.org 
[lkml]   [2011]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
Subject2.6.37 kernel compilation warning with gcc-4.5.2
While compiling 2.6.37 kernel with gcc-4.5.2 based toolchain for MIPS, there are a few warnings

CC kernel/async.o
kernel/async.c: In function 'async_synchronize_cookie_domain':
kernel/async.c:270:10: warning: 'starttime.tv64' may be used uninitialized in this function
kernel/async.c: In function 'async_run_entry_fn':
kernel/async.c:122:10: warning: 'calltime.tv64' may be used uninitialized in this function
...
CC fs/ubifs/super.o
fs/ubifs/super.c: In function 'ubifs_umount':
fs/ubifs/super.c:1491:2: warning: statement with no effect
CC fs/ubifs/sb.o
CC fs/ubifs/io.o
CC fs/ubifs/tnc.o
CC fs/ubifs/master.o
CC fs/ubifs/scan.o
CC fs/ubifs/replay.o
CC fs/ubifs/log.o
CC fs/ubifs/commit.o
CC fs/ubifs/gc.o
CC fs/ubifs/orphan.o
CC fs/ubifs/budget.o
CC fs/ubifs/find.o
CC fs/ubifs/tnc_commit.o
CC fs/ubifs/compress.o
CC fs/ubifs/lpt.o
CC fs/ubifs/lprops.o
CC fs/ubifs/recovery.o
CC fs/ubifs/ioctl.o
CC fs/ubifs/lpt_commit.o
c/lpt_commit.c: In function 'layout_cnodes':
fs/ubifs/lpt_commit.c:211:3: warning: statement with no effect
fs/ubifs/lpt_commit.c:219:3: warning: statement with no effect
fs/ubifs/lpt_commit.c:233:4: warning: statement with no effect
fs/ubifs/lpt_commit.c:246:5: warning: statement with no effect
fs/ubifs/lpt_commit.c:254:5: warning: statement with no effect
fs/ubifs/lpt_commit.c:267:3: warning: statement with no effect
fs/ubifs/lpt_commit.c:276:4: warning: statement with no effect
fs/ubifs/lpt_commit.c:288:3: warning: statement with no effect
fs/ubifs/lpt_commit.c:296:4: warning: statement with no effect
fs/ubifs/lpt_commit.c:308:3: warning: statement with no effect
fs/ubifs/lpt_commit.c:313:2: warning: statement with no effect
fs/ubifs/lpt_commit.c: In function 'write_cnodes':
fs/ubifs/lpt_commit.c:395:3: warning: statement with no effect
fs/ubifs/lpt_commit.c:402:3: warning: statement with no effect
fs/ubifs/lpt_commit.c:421:4: warning: statement with no effect
fs/ubifs/lpt_commit.c:436:5: warning: statement with no effect
fs/ubifs/lpt_commit.c:443:5: warning: statement with no effect
fs/ubifs/lpt_commit.c:465:3: warning: statement with no effect
fs/ubifs/lpt_commit.c:479:4: warning: statement with no effect
fs/ubifs/lpt_commit.c:493:3: warning: statement with no effect
fs/ubifs/lpt_commit.c:506:4: warning: statement with no effect
fs/ubifs/lpt_commit.c:520:3: warning: statement with no effect
fs/ubifs/lpt_commit.c:531:2: warning: statement with no effect
...
CC drivers/base/power/sysfs.o
CC drivers/base/power/main.o
drivers/base/power/main.c: In function 'pm_noirq_op.clone.17':
drivers/base/power/main.c:306:10: warning: 'calltime.tv64' may be used uninitialized in this function
...

Those in fs/ubifs really bothers me since all of them are for debugging and gcc dislike them.

Did anyone fix it in either changing Makefile or C codes? If not, I will post my patch to get rid of them.

Thanks,
Jian



\
 
 \ /
  Last update: 2011-03-03 02:19    [W:0.351 / U:0.192 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site