Re: [RFT v2 02/29] memory: omap-gpmc: Remove unused file-scope phys_base and mem_size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jul 24, 2020 at 09:40:11AM +0200, Krzysztof Kozlowski wrote:
> The file-scope variables phys_base and mem_size are assigned in
> gpmc_probe() but never read.
> 
> This fixes build error when compile testing on x86_64 architecture:
> 
>     drivers/memory/omap-gpmc.c:246:24: error: conflicting types for ‘phys_base’
>      static resource_size_t phys_base, mem_size;
>     In file included from arch/x86/include/asm/page.h:12:0,
>                      from arch/x86/include/asm/thread_info.h:12,
>                      from include/linux/thread_info.h:38,
>                      from arch/x86/include/asm/preempt.h:7,
>                      from include/linux/preempt.h:78,
>                      from include/linux/spinlock.h:51,
>                      from include/linux/irq.h:14,
>                      from drivers/memory/omap-gpmc.c:12:
>     arch/x86/include/asm/page_64.h:12:22: note: previous declaration of ‘phys_base’ was here
>      extern unsigned long phys_base;
> 
> Signed-off-by: Krzysztof Kozlowski <krzk@xxxxxxxxxx>
> ---
>  drivers/memory/omap-gpmc.c | 4 ----
>  1 file changed, 4 deletions(-)

Applied to drivers/memory tree.

Best regards,
Krzysztof



[Index of Archives]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux