From patchwork Sat Sep 24 05:34:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 76923 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp201229qgf; Fri, 23 Sep 2016 22:35:07 -0700 (PDT) X-Received: by 10.66.249.134 with SMTP id yu6mr19078733pac.44.1474695307778; Fri, 23 Sep 2016 22:35:07 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xu9si11624527pab.203.2016.09.23.22.35.07; Fri, 23 Sep 2016 22:35:07 -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 S1760359AbcIXFfE (ORCPT + 27 others); Sat, 24 Sep 2016 01:35:04 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:34183 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751324AbcIXFfC (ORCPT ); Sat, 24 Sep 2016 01:35:02 -0400 Received: by mail-pa0-f47.google.com with SMTP id wk8so46215135pab.1 for ; Fri, 23 Sep 2016 22:35:02 -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=YGeVDtAzTepWQgpO5MqaQW1A1Mih/gc0lHsv4Qwyhng=; b=MoPMkZc1la0wcpr+RGllHklqc1EisIXeSe2FugflKJfKc1rC7RX1gM4l45uHXet64l fA93H3Y3612TsGIXQ4pAMAk+NF+QdrFqTyb592/7sByywM9nBtLKtEhSE73+0h9r0MVZ /havXQcUihIb6QFLllES7W3rA2HCeWKA7PDFo= 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=YGeVDtAzTepWQgpO5MqaQW1A1Mih/gc0lHsv4Qwyhng=; b=kYaJRz1ragX4v+hP+sjm3nTjhjVJMj29plGotU1Sr+X0Hi8HYuK39nvOHNzuc7s4TQ KXMM3XXggRF7p39y5cP9KzIpN4A8q7TNa0JMtpFWts/glAin7DGBjREMsjx2ZOBBmN4+ GY7AM/3Y2LdgcoSVvubWJxgCW/vxPYmn9cvPmY3T1Ra0KHVlrFYvDXmrZQYoCAVxXd+3 fdC90K3/EPsE5VWT6W7swFX4igFG4NlJ7OtSwtLWjZTvkIQXV9kyI/RtthTIZC3ImazY Ts48pfThWt2Ifg+ujMckksgE8TB//N41wcXyec45kKdDXjzV5NDenED34e/OYSgAnei8 hHyQ== X-Gm-Message-State: AE9vXwNGZWNOsahQdZImHG8Zj5NNbPWjVCwL8HVdMWxthYcfT+X+JjodBuBr9njWlhsUX1mq X-Received: by 10.66.232.164 with SMTP id tp4mr18886784pac.29.1474695302034; Fri, 23 Sep 2016 22:35:02 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.27]) by smtp.gmail.com with ESMTPSA id c145sm15219739pfb.15.2016.09.23.22.34.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Sep 2016 22:35:01 -0700 (PDT) From: Baoyou Xie To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH 1/2] mfd: ab8500-debugfs: add function declaration Date: Sat, 24 Sep 2016 13:34:50 +0800 Message-Id: <1474695290-21619-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/mfd/ab8500-debugfs.c:1587:28: warning: no previous prototype for 'suspend_test_wake_cause_interrupt_is_mine' [-Wmissing-prototypes] In fact, this function need be declared in a header files. So this patch adds function declaration in include/linux/mfd/abx500/ab8500.h. Signed-off-by: Baoyou Xie --- include/linux/mfd/abx500/ab8500.h | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 diff --git a/include/linux/mfd/abx500/ab8500.h b/include/linux/mfd/abx500/ab8500.h index 9475fee..a496120 100644 --- a/include/linux/mfd/abx500/ab8500.h +++ b/include/linux/mfd/abx500/ab8500.h @@ -508,6 +508,7 @@ void ab8500_override_turn_on_stat(u8 mask, u8 set); extern int prcmu_abb_read(u8 slave, u8 reg, u8 *value, u8 size); void ab8500_dump_all_banks(struct device *dev); void ab8500_debug_register_interrupt(int line); +bool suspend_test_wake_cause_interrupt_is_mine(u32 my_int); #else static inline void ab8500_dump_all_banks(struct device *dev) {} static inline void ab8500_debug_register_interrupt(int line) {}