/[packages]/cauldron/kernel/current/PATCHES/patches/0090-of-Add-missing-exports-of-node-name-compare-function.patch
ViewVC logotype

Contents of /cauldron/kernel/current/PATCHES/patches/0090-of-Add-missing-exports-of-node-name-compare-function.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1329221 - (show annotations) (download)
Fri Nov 9 22:05:45 2018 UTC (5 years, 9 months ago) by tmb
File size: 1362 byte(s)
add fixes from sashas autosel queue
1 From 3ef05d43427112fadafdce787ff5efada7f704a5 Mon Sep 17 00:00:00 2001
2 From: Rob Herring <robh@kernel.org>
3 Date: Mon, 22 Oct 2018 09:03:54 -0500
4 Subject: [PATCH 090/145] of: Add missing exports of node name compare
5 functions
6
7 [ Upstream commit 173ee3962959a1985a109f81539a403b5cd07ae7 ]
8
9 Commit f42b0e18f2e5 ("of: add node name compare helper functions")
10 failed to add the module exports to of_node_name_eq() and
11 of_node_name_prefix(). Add them now.
12
13 Fixes: f42b0e18f2e5 ("of: add node name compare helper functions")
14 Signed-off-by: Rob Herring <robh@kernel.org>
15 Signed-off-by: Sasha Levin <sashal@kernel.org>
16 ---
17 drivers/of/base.c | 2 ++
18 1 file changed, 2 insertions(+)
19
20 diff --git a/drivers/of/base.c b/drivers/of/base.c
21 index 74eaedd5b860..70f5fd08891b 100644
22 --- a/drivers/of/base.c
23 +++ b/drivers/of/base.c
24 @@ -67,6 +67,7 @@ bool of_node_name_eq(const struct device_node *np, const char *name)
25
26 return (strlen(name) == len) && (strncmp(node_name, name, len) == 0);
27 }
28 +EXPORT_SYMBOL(of_node_name_eq);
29
30 bool of_node_name_prefix(const struct device_node *np, const char *prefix)
31 {
32 @@ -75,6 +76,7 @@ bool of_node_name_prefix(const struct device_node *np, const char *prefix)
33
34 return strncmp(kbasename(np->full_name), prefix, strlen(prefix)) == 0;
35 }
36 +EXPORT_SYMBOL(of_node_name_prefix);
37
38 int of_n_addr_cells(struct device_node *np)
39 {
40 --
41 2.19.1
42

  ViewVC Help
Powered by ViewVC 1.1.30