]> git.baikalelectronics.ru Git - kernel.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)
commitdf1c45d998fd7e7bc21b460bb6a8828bae346450
tree637091e2ef421a9e9aecb29fd7a759bc15f95d7a
parent4e2a6640c43809ef38cc9ae063a95596978c895f
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