How to build the kernel without any optimization?

2010-08-21 Thread Shawn Jin
Hi, I'm tracing the execution of ds1307_probe() and find that some of variables or function arguments cannot be printed in gdb because they are optimized out or not in the current context. This really gives some headache. Is there a way to build the kernel without any optimization? What gcc

Re: How to build the kernel without any optimization?

2010-08-21 Thread Nicholas Mc Guire
On Fri, 20 Aug 2010, Shawn Jin wrote: Hi, I'm tracing the execution of ds1307_probe() and find that some of variables or function arguments cannot be printed in gdb because they are optimized out or not in the current context. This really gives some headache. Is there a way to build the

[PATCH] pmu: add compat_pmu_ioctl

2010-08-21 Thread Andreas Schwab
The ioctls are actually compatible, but due to historical mistake the numbers differ between 32bit and 64bit. Signed-off-by: Andreas Schwab sch...@linux-m68k.org --- drivers/macintosh/via-pmu.c | 41 + 1 files changed, 41 insertions(+), 0 deletions(-)

[PATCH] powerpc: remove fpscr use from [kvm_]cvt_{fd,df}

2010-08-21 Thread Andreas Schwab
Neither lfs nor stfs touch the fpscr, so remove the restore/save of it around them. Signed-off-by: Andreas Schwab sch...@linux-m68k.org --- arch/powerpc/include/asm/kvm_fpu.h |4 +- arch/powerpc/include/asm/system.h|4 +- arch/powerpc/kernel/align.c |4 +-