Re: [PATCH] of: Add empty of_get_next_parent() for !OF

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hi,

On Wed, April 29, 2015 16:03, Rob Herring wrote:
> On Wed, Apr 29, 2015 at 5:44 PM, Ilkka Koskinen
> <ilkka.koskinen@xxxxxxxxxxxxxxx> wrote:
>> From: Ilkka Koskinen <ilkka.koskinen@xxxxxxxxx>
>>
>> Add an empty version of of_get_next_parent() in order to avoid
>> build error.
>
> Some details on the build error and what introduced it please.

I agree. I'll add a better description of the issue in the commit message.

Some background: I'm basically implementing a parser that deals
with both device tree and ACPI. If OF hasn't been enabled, there's no
declaration or implementation of the function. I'm not aware if any
existing code in the kernel introduces the bug though.

Thanks,
Ilkka

>> Signed-off-by: Ilkka Koskinen <ilkka.koskinen@xxxxxxxxxxxxxxx>
>> ---
>>  include/linux/of.h | 5 +++++
>>  1 file changed, 5 insertions(+)
>>
>> diff --git a/include/linux/of.h b/include/linux/of.h
>> index dfde07e..416158f 100644
>> --- a/include/linux/of.h
>> +++ b/include/linux/of.h
>> @@ -425,6 +425,11 @@ static inline struct device_node
>> *of_get_parent(const struct device_node *node)
>>         return NULL;
>>  }
>>
>> +static inline struct device_node *of_get_next_parent(struct device_node
>> *node)
>> +{
>> +       return NULL;
>> +}
>> +
>>  static inline struct device_node *of_get_next_child(
>>         const struct device_node *node, struct device_node *prev)
>>  {
>> --
>> 1.9.1
>>
>

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux