]> asedeno.scripts.mit.edu Git - linux.git/commit
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)
commit319938bd6f07e59ba55dff0abb3b51f5230a8f24
tree637091e2ef421a9e9aecb29fd7a759bc15f95d7a
parentf5ad907e31345807c5c2bd0fbb12a120e82e3042
c6x: fix platforms/plldata.c get_coreid build error

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