of: fix a build error to f_graph_get_endpoint_by_regs function
diff mbox

Message ID 1435040094-22793-1-git-send-email-inki.dae@samsung.com
State New
Headers show

Commit Message

Inki Dae June 23, 2015, 6:14 a.m. UTC
This patch fixes the below build error reported by Stephen,
	https://lkml.org/lkml/2015/6/22/665

To fix the error, this patch declares of_graph_get_endpoint_by_regs function
with "static inline".

Signed-off-by: Inki Dae <inki.dae@samsung.com>
---
 include/linux/of_graph.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Stephen Rothwell June 23, 2015, 6:43 a.m. UTC | #1
Hi Inki,

On Tue, 23 Jun 2015 15:14:53 +0900 Inki Dae <inki.dae@samsung.com> wrote:
>
> This patch fixes the below build error reported by Stephen,
> 	https://lkml.org/lkml/2015/6/22/665

Don't do this.  Put the errors explicitly in the mail.  lkml.org URLs
are particularly bad.
Inki Dae June 23, 2015, 7:08 a.m. UTC | #2
Hi Stephen,

On 2015? 06? 23? 15:43, Stephen Rothwell wrote:
> Hi Inki,
> 
> On Tue, 23 Jun 2015 15:14:53 +0900 Inki Dae <inki.dae@samsung.com> wrote:
>>
>> This patch fixes the below build error reported by Stephen,
>> 	https://lkml.org/lkml/2015/6/22/665
> 
> Don't do this.  Put the errors explicitly in the mail.  lkml.org URLs
> are particularly bad.

Posted it again.

Thanks,
Inki Dae

>

Patch
diff mbox

diff --git a/include/linux/of_graph.h b/include/linux/of_graph.h
index 1c1d5b9..f8bcd0e 100644
--- a/include/linux/of_graph.h
+++ b/include/linux/of_graph.h
@@ -71,7 +71,7 @@  static inline struct device_node *of_graph_get_next_endpoint(
 	return NULL;
 }
 
-struct device_node *of_graph_get_endpoint_by_regs(
+static inline struct device_node *of_graph_get_endpoint_by_regs(
 		const struct device_node *parent, int port_reg, int reg)
 {
 	return NULL;