From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Rutland Subject: Re: [PATCH] asm-generic: Fix build when __set_fixmap is absent Date: Tue, 9 Feb 2016 16:33:34 +0000 Message-ID: <20160209163333.GA22110@leverpostej> References: <20160209143554.GA9332@leverpostej> <201602100053.LjML6D6b%fengguang.wu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <201602100053.LjML6D6b%fengguang.wu@intel.com> Sender: linux-next-owner@vger.kernel.org To: kbuild test robot Cc: kbuild-all@01.org, Geert Uytterhoeven , Arnd Bergmann , Catalin Marinas , Sudip Mukherjee , Stephen Rothwell , Linux-Next , "linux-kernel@vger.kernel.org" , Ard Biesheuvel , Jeremy Linton , Linux-Arch , Laura Abbott , Jeff Dike , Richard Weinberger List-Id: linux-arch.vger.kernel.org > >> include/asm-generic/fixmap.h:72:6: error: conflicting types for '__set_fixmap' > void __set_fixmap(enum fixed_addresses idx, phys_addr_t phys, pgprot_t prot); > ^ > In file included from arch/um/include/asm/pgtable.h:11:0, > from include/linux/mm.h:67, > from include/linux/ring_buffer.h:5, > from include/linux/trace_events.h:5, > from include/trace/syscall.h:6, > from include/linux/syscalls.h:81, > from init/main.c:18: > arch/um/include/asm/fixmap.h:39:13: note: previous declaration of '__set_fixmap' was here > extern void __set_fixmap (enum fixed_addresses idx, > ^ The conflict is the type of 'phys'. In arch/um that's an unsigned long rather than a phys_addr_t as it is elsewhere. If I convert that to a phys_addr_t the build goes along happily. Should we change set_fixmap_offset back to a macro function for now, or is it simple/correct to change arch/um to use phys_addr_t in __set_fixmap? Thanks, Mark. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from foss.arm.com ([217.140.101.70]:41606 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756610AbcBIQeS (ORCPT ); Tue, 9 Feb 2016 11:34:18 -0500 Date: Tue, 9 Feb 2016 16:33:34 +0000 From: Mark Rutland Subject: Re: [PATCH] asm-generic: Fix build when __set_fixmap is absent Message-ID: <20160209163333.GA22110@leverpostej> References: <20160209143554.GA9332@leverpostej> <201602100053.LjML6D6b%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201602100053.LjML6D6b%fengguang.wu@intel.com> Sender: linux-arch-owner@vger.kernel.org List-ID: To: kbuild test robot Cc: kbuild-all@01.org, Geert Uytterhoeven , Arnd Bergmann , Catalin Marinas , Sudip Mukherjee , Stephen Rothwell , Linux-Next , "linux-kernel@vger.kernel.org" , Ard Biesheuvel , Jeremy Linton , Linux-Arch , Laura Abbott , Jeff Dike , Richard Weinberger Message-ID: <20160209163334.LlCJmUipwO-K-xaNOotifkyPGYYVWpU8bBEWp8BStnw@z> > >> include/asm-generic/fixmap.h:72:6: error: conflicting types for '__set_fixmap' > void __set_fixmap(enum fixed_addresses idx, phys_addr_t phys, pgprot_t prot); > ^ > In file included from arch/um/include/asm/pgtable.h:11:0, > from include/linux/mm.h:67, > from include/linux/ring_buffer.h:5, > from include/linux/trace_events.h:5, > from include/trace/syscall.h:6, > from include/linux/syscalls.h:81, > from init/main.c:18: > arch/um/include/asm/fixmap.h:39:13: note: previous declaration of '__set_fixmap' was here > extern void __set_fixmap (enum fixed_addresses idx, > ^ The conflict is the type of 'phys'. In arch/um that's an unsigned long rather than a phys_addr_t as it is elsewhere. If I convert that to a phys_addr_t the build goes along happily. Should we change set_fixmap_offset back to a macro function for now, or is it simple/correct to change arch/um to use phys_addr_t in __set_fixmap? Thanks, Mark.