mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Kejian Yan <yankejian@huawei.com>
To: <rjw@rjwysocki.net>, <lenb@kernel.org>, <davem@davemloft.net>
Cc: <fengguang.wu@intel.com>, <andriy.shevchenko@linux.intel.com>,
	<andrew@lunn.ch>, <ivecera@redhat.com>, <f.fainelli@gmail.com>,
	<haifeng.wei@huawei.com>, <charles.chenxin@huawei.com>,
	<netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	<linux-acpi@vger.kernel.org>, <linuxarm@huawei.com>
Subject: [patch v2 net-next 01/13] ACPI: bus: add stub acpi_dev_found() to linux/acpi.h
Date: Mon, 30 May 2016 10:10:10 +0800	[thread overview]
Message-ID: <1464574222-69608-2-git-send-email-yankejian@huawei.com> (raw)
In-Reply-To: <1464574222-69608-1-git-send-email-yankejian@huawei.com>

acpi_dev_found() will be used to detect if a given ACPI device is in the
system. It will be compiled in non-ACPI case, but the function is in
acpi_bus.h and acpi_bus.h can only be used in ACPI case, so this patch add
the stub function to linux/acpi.h to make compiled successfully in
non-ACPI cases.

Cc: Rafael J. Wysocki <rjw@rjwysocki.net>
Signed-off-by: Kejian Yan <yankejian@huawei.com>
Signed-off-by: Yisen Zhuang <Yisen.Zhuang@huawei.com>
---
 include/linux/acpi.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/linux/acpi.h b/include/linux/acpi.h
index 288fac5..3025d19 100644
--- a/include/linux/acpi.h
+++ b/include/linux/acpi.h
@@ -543,6 +543,11 @@ struct platform_device *acpi_create_platform_device(struct acpi_device *);
 
 struct fwnode_handle;
 
+static inline bool acpi_dev_found(const char *hid)
+{
+	return false;
+}
+
 static inline bool is_acpi_node(struct fwnode_handle *fwnode)
 {
 	return false;
-- 
1.9.1

  reply	other threads:[~2016-05-30  1:58 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-30  2:10 [patch v2 net-next 00/13] net: hns: add support of ACPI Kejian Yan
2016-05-30  2:10 ` Kejian Yan [this message]
2016-05-30  2:10 ` [patch v2 net-next 02/13] ACPI: bus: add stub acpi_evaluate_dsm() to linux/acpi.h Kejian Yan
2016-05-30  2:10 ` [patch v2 net-next 03/13] net: hisilicon: cleanup to prepare for other cases Kejian Yan
2016-05-30  2:10 ` [patch v2 net-next 04/13] net: hisilicon: add support of acpi for hns-mdio Kejian Yan
2016-05-30  2:10 ` [patch v2 net-next 05/13] net: hns: use device_* APIs instead of of_* APIs Kejian Yan
2016-05-30  2:10 ` [patch v2 net-next 06/13] net: hns: use platform_get_irq instead of irq_of_parse_and_map Kejian Yan
2016-05-30  2:10 ` [patch v2 net-next 07/13] net: hns: enet specify a reference to dsaf by fwnode_handle Kejian Yan
2016-05-30  2:10 ` [patch v2 net-next 08/13] net: hns: add uniform interface for phy connection Kejian Yan
2016-05-30  2:10 ` [patch v2 net-next 09/13] net: hns: add dsaf misc operation method Kejian Yan
2016-05-30  2:10 ` [patch v2 net-next 10/13] net: hns: dsaf adds support of acpi Kejian Yan
2016-05-30  2:10 ` [patch v2 net-next 11/13] net: hns: register phy device in each mac initial sequence Kejian Yan
2016-05-30  2:10 ` [patch v2 net-next 12/13] net: hns: implement the miscellaneous operation by asl Kejian Yan
2016-05-30  8:25   ` Andy Shevchenko
2016-05-30  2:10 ` [patch v2 net-next 13/13] net: hns: net: hns: enet adds support of acpi Kejian Yan
2016-05-30  8:28 ` [patch v2 net-next 00/13] net: hns: add support of ACPI Andy Shevchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1464574222-69608-2-git-send-email-yankejian@huawei.com \
    --to=yankejian@huawei.com \
    --cc=andrew@lunn.ch \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=charles.chenxin@huawei.com \
    --cc=davem@davemloft.net \
    --cc=f.fainelli@gmail.com \
    --cc=fengguang.wu@intel.com \
    --cc=haifeng.wei@huawei.com \
    --cc=ivecera@redhat.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxarm@huawei.com \
    --cc=netdev@vger.kernel.org \
    --cc=rjw@rjwysocki.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®