Re: [RFC][PATCH] Btrfs-progs: Fix compiler warnings on PPC64.
From: David Sterba <hidden>
Date: 2012-09-14 13:59:36
From: David Sterba <hidden>
Date: 2012-09-14 13:59:36
On Wed, Sep 12, 2012 at 04:21:56PM -0700, clinew@linux.vnet.ibm.com wrote:
Defining __KERNEL__ before the file <asm/types.h>, or any file that includes this file, will let PPC64 know to use unsigned long long for u64 instead. This patch adds the defines and fixes the print warnings on PPC64.
Defining __KERNEL__ in random places does not seem clean, I understand it in kerncompat.h which should transparently fix any compatibility issues, and the files like cmd-receive.c should include this instead of the explicit defines. david