From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758817AbcIWMu1 (ORCPT ); Fri, 23 Sep 2016 08:50:27 -0400 Received: from mail-pa0-f45.google.com ([209.85.220.45]:33127 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752772AbcIWMu0 (ORCPT ); Fri, 23 Sep 2016 08:50:26 -0400 From: Baoyou Xie To: lgirdwood@gmail.com, broonie@kernel.org Cc: linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH 2/2] regulator: dbx500: add missing header dependencies Date: Fri, 23 Sep 2016 20:50:10 +0800 Message-Id: <1474635010-4993-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We get 1 warning when building kernel with W=1: drivers/regulator/dbx500-prcmu.c:158:27: warning: no previous prototype for 'dbx500_regulator_testcase' [-Wmissing-prototypes] In fact, this function is not declared in any file, but should be declared in a header file. thus can be recognized in other file. So this patch adds the declaration into drivers/regulator/dbx500-prcmu.h. Signed-off-by: Baoyou Xie --- drivers/regulator/dbx500-prcmu.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/regulator/dbx500-prcmu.h b/drivers/regulator/dbx500-prcmu.h index c8e51ac..644cb9e 100644 --- a/drivers/regulator/dbx500-prcmu.h +++ b/drivers/regulator/dbx500-prcmu.h @@ -35,7 +35,8 @@ struct dbx500_regulator_info { void power_state_active_enable(void); int power_state_active_disable(void); - +int dbx500_regulator_testcase(struct dbx500_regulator_info *regulator_info, + int num_regulators); #ifdef CONFIG_REGULATOR_DEBUG int ux500_regulator_debug_init(struct platform_device *pdev, -- 2.7.4