Re: [PATCH -next] net: hisilicon: Never build on SPARC
From: David Miller
Date: Wed Oct 21 2015 - 11:16:51 EST
From: Guenter Roeck <linux@xxxxxxxxxxxx>
Date: Wed, 21 Oct 2015 07:56:18 -0700
>> @@ -57,6 +57,11 @@ extern int of_dma_get_range(struct device_node *np,
>> u64 *dma_addr,
>> u64 *paddr, u64 *size);
>> extern bool of_dma_is_coherent(struct device_node *np);
>> #else /* CONFIG_OF_ADDRESS */
>> +static inline u64 of_translate_address(struct device_node *np, const
>> __be32 *addr)
>> +{
>> + return 0;
>
> Maybe return OF_BAD_ADDR ?
The thing to really do on sparc, is just return the address raw untranslated
because that just works.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/