From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756275AbeASTTv (ORCPT ); Fri, 19 Jan 2018 14:19:51 -0500 Received: from merlin.infradead.org ([205.233.59.134]:57420 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755985AbeASTTn (ORCPT ); Fri, 19 Jan 2018 14:19:43 -0500 To: LKML Cc: Ingo Molnar , linux-c6x-dev@linux-c6x.org, Aurelien Jacquiot , Mark Salter , Fengguang Wu From: Randy Dunlap Subject: [PATCH] c6x: fix platforms/plldata.c get_coreid build error Message-ID: <2fe9d4b5-ad6b-8d64-9dc5-4440e23948fc@infradead.org> Date: Fri, 19 Jan 2018 11:19:33 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Randy Dunlap 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 Cc: Mark Salter Cc: Aurelien Jacquiot Cc: linux-c6x-dev@linux-c6x.org Cc: Ingo Molnar Signed-off-by: Randy Dunlap --- arch/c6x/platforms/plldata.c | 1 + 1 file changed, 1 insertion(+) --- lnx-415-rc8.orig/arch/c6x/platforms/plldata.c +++ lnx-415-rc8/arch/c6x/platforms/plldata.c @@ -19,6 +19,7 @@ #include #include +#include #include /*