Re: [PATCH] of: remove duplicate declaration of of_iomap()

From: Tom Rix
Date: Tue Sep 28 2021 - 16:42:52 EST



On 9/28/21 1:33 PM, Randy Dunlap wrote:
On 9/28/21 1:12 PM, trix@xxxxxxxxxx wrote:
From: Tom Rix <trix@xxxxxxxxxx>

A ranconfig produces this linker error

randconfig .. on what arch, please?
s390

irq-al-fic.c:252: undefined reference to `of_iomap'

The declaration of of_iomap() is dependent on OF
The definition of of_iomap() is dependent on OF_ADDRESS
These should match.  There are duplicate declarations
of of_iomap(), remove of_iomap() and the
of_address_to_resource() duplicate.

Signed-off-by: Tom Rix <trix@xxxxxxxxxx>
---
  include/linux/of_address.h | 8 +-------
  1 file changed, 1 insertion(+), 7 deletions(-)



thanks.