From patchwork Fri Sep 23 12:50:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 76845 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp552110qgf; Fri, 23 Sep 2016 05:50:30 -0700 (PDT) X-Received: by 10.98.69.73 with SMTP id s70mr11992361pfa.115.1474635030280; Fri, 23 Sep 2016 05:50:30 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id sk1si7551345pab.236.2016.09.23.05.50.29; Fri, 23 Sep 2016 05:50:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758823AbcIWMu1 (ORCPT + 27 others); 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 Received: by mail-pa0-f45.google.com with SMTP id hm5so40198812pac.0 for ; Fri, 23 Sep 2016 05:50:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=Okb4mWNNxZ2S1IjXzOrD5c5cAD2CO3rAbahMqAPgNjU=; b=Qo9bO2JDsQRbBVhPglMPi8EwcbV0qBev9DybjcPD05JXKPojDHFX95/UEp/fyWAd1i nc227AnSvCTG7pwJ2JzBL8gN6YVKPYcBsNjsOCrujT4XRbU2nIpJrSwGLfgFG+zcB9AP 1aQ0wlM7XwQbjl2pbQ3Kqf4Tz1wwDhlZFfWlQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Okb4mWNNxZ2S1IjXzOrD5c5cAD2CO3rAbahMqAPgNjU=; b=HqzYGjwY887n+lOAK7ZkLm0N9+yLn+chj3SHBxLO6FHyLDyKrDtyDdhnj4eaUT5eLH byQ/cpM/rnBVXgqdTf7nT3Q495aCncWWcY/VL9ptXznf8AI854IWJAgi854rzy6wjT3Q gTssHTY4JFHVRdf0sA+L/wR46gAH4C784jAVsOZAadHbxv0nMRKvZI/APVtTzvrAaveP l0EbOVlma8QVncvcM4O2Ab/osYfKsyI3mhip/DknIZzVCIXpPYwcwv9+7vhqqURVTz30 IQDCK4qJae1fepQ5FCgZupJdGqjkehXOCzgtF3oGQhjoMRUqd00inSCNALPFY/XFhtSN oLiw== X-Gm-Message-State: AE9vXwPuNkvd87/C1ruxPT57cp2uV2B8cxTVsh3XGU7QMGFqDg0HkSZn98tnhx+QJFNDhOvn X-Received: by 10.66.254.102 with SMTP id ah6mr11961022pad.59.1474635025468; Fri, 23 Sep 2016 05:50:25 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.27]) by smtp.gmail.com with ESMTPSA id s82sm7068214pfg.42.2016.09.23.05.50.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Sep 2016 05:50:25 -0700 (PDT) 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 Precedence: bulk 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(-) -- 2.7.4 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,