On 2015-11-24, Fred <[email protected]> wrote:
> Hi Misc@
>
> I'm trying to build a debug kernel for sparc64 but keep getting the 
> following errors in iommu.c:

You wouldn't normally define DEBUG for everything, just for the
particular files/areas you're interested in (and in many cases they're
called "<subsystem>_DEBUG" rather than just "DEBUG").

Are you just after a kernel with debug symbols? If so, that's done with
makeoptions DEBUG="-g" in kernel config. Otherwise target the particular
area, it's usually simplest to edit the relevant source files.

If you are actually wanting to debug iommu, the DPRINTF format strings
will need fixing up, I expect they haven't been built this way since at
least the time_t/off_t changes.

> ../../../../arch/sparc64/dev/iommu.c:569: warning: format '%lx' expects 
> type 'long unsigned int', but argument 4 has type 'time_t'
> ../../../../arch/sparc64/dev/iommu.c:569: warning: format '%lx' expects 
> type 'long unsigned int', but argument 6 has type 'time_t'

%llx

> ../../../../arch/sparc64/dev/iommu.c: In function 'iommu_dvmamap_load_raw':
> ../../../../arch/sparc64/dev/iommu.c:1020: warning: format '%ld' expects 
> type 'long int', but argument 5 has type 'int'

%d

> ../../../../arch/sparc64/dev/iommu.c:1020: warning: format '%lx' expects 
> type 'long unsigned int', but argument 6 has type 'int'

%x

> expects type 'long long unsigned int', but argument 2 has type 'bus_addr_t'
> ../../../../arch/sparc64/dev/iommu.c:1352: warning: format '%llx' 

%lx

> expects type 'long long unsigned int', but argument 2 has type 'bus_size_t'
> ../../../../arch/sparc64/dev/iommu.c:1360: warning: format '%llx' 

%lx

etc.

Reply via email to