]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
c6x: fix platforms/plldata.c get_coreid build error
authorRandy Dunlap <rdunlap@infradead.org>
Fri, 19 Jan 2018 19:19:33 +0000 (11:19 -0800)
committerMark Salter <msalter@redhat.com>
Tue, 10 Apr 2018 13:58:38 +0000 (09:58 -0400)
Fix build error reported by the 0day bot by including the header
file for that macro.

Fixes this build error: (should fix; not tested)
arch/c6x/platforms/plldata.c: In function 'c6472_setup_clocks':
arch/c6x/platforms/plldata.c:279:33: error: implicit declaration of function 'get_coreid'; did you mean 'get_order'? [-Werror=implicit-function-declaration]
      c6x_core_clk.parent = &sysclks[get_coreid() + 1];

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Cc: Mark Salter <msalter@redhat.com>
Cc: Aurelien Jacquiot <jacquiot.aurelien@gmail.com>
Cc: linux-c6x-dev@linux-c6x.org
Cc: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Mark Salter <msalter@redhat.com>
arch/c6x/platforms/plldata.c

index e8b6cc6a7b5ac4e97f20877e05817e209fff7e91..1ef04b5ab93fa731a6cff93ada07452fbcd9fbce 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <asm/clock.h>
 #include <asm/setup.h>
+#include <asm/special_insns.h>
 #include <asm/irq.h>
 
 /*