of/device: Fix up of_dma_configure_id() stub
PATCH 1/1 of/device: Fix up of_dma_configure_id() stub
From: Thierry Reding <[email protected]>
Since the stub version of of_dma_configure_id() was added in commit a081bd4af4ce ("of/device: Add input id to of_dma_configure()"), it has not matched the signature of the full function, leading to build failure reports when code using this function is built on !OF configurations.
--- include/linux/of_device.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
include/linux/of_device.h +3 -2
@@ -101,8 +101,9 @@ static inline struct device_node *of_cpu_device_node_get(int cpu) }static inline int of_dma_configure_id (struct device *dev, -struct device_node *np, -bool force_dma) +struct device_node *np, +bool force_dma, +const u32 *id) {return 0 ; }
Signature · 1 line
2.37.2
Quoted 7 lines · Thierry Reding
From: Thierry Reding <[email protected]>
Since the stub version of
of_dma_configure_id()was added in commita081bd4af4ce("of/device: Add input id toof_dma_configure()"), it has not matched the signature of the full function, leading to build failure reports when code using this function is built on !OF configurations.
Quoted 5 lines
Fixes a081bd4af4ce ("of/device: Add input id to of_dma_configure()")Signed-off-by Thierry Reding <[email protected]>--- include/linux/of_device.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
Quoted 19 lines
include/linux/of_device.h +3
-2@@ -101,8 +101,9 @@ static inline struct device_node *of_cpu_device_node_get(int cpu) }static inline int of_dma_configure_id (struct device *dev, -struct device_node *np, -bool force_dma) +struct device_node *np, +bool force_dma, +const u32 *id) {return 0 ; }Signature · 1 line
2.37.2
Quoted 19 lines · Thierry Reding
From: Thierry Reding <[email protected]>
Since the stub version of
of_dma_configure_id()was added in commita081bd4af4ce("of/device: Add input id toof_dma_configure()"), it has not matched the signature of the full function, leading to build failure reports when code using this function is built on !OF configurations.Fixes a081bd4af4ce ("of/device: Add input id to of_dma_configure()")Signed-off-by Thierry Reding <[email protected]>--- include/linux/of_device.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)include/linux/of_device.h +0
-0@@ -101,8 +101,9 @@ static inline struct device_node *of_cpu_device_node_get(int cpu) }
include/linux/of_device.h static inline struct device_node *of_cpu_device_node_get(int cpu) · line 109
Quoted 10 lines
include/linux/of_device.h +3
-2static inline int of_dma_configure_id (struct device *dev, -struct device_node *np, -bool force_dma) +struct device_node *np, +bool force_dma, +const u32 *id) {return 0 ; }
Quoted 7 lines · Thierry Reding
From: Thierry Reding <[email protected]>
Since the stub version of
of_dma_configure_id()was added in commita081bd4af4ce("of/device: Add input id toof_dma_configure()"), it has not matched the signature of the full function, leading to build failure reports when code using this function is built on !OF configurations.
Quoted 6 lines
Fixes a081bd4af4ce ("of/device: Add input id to of_dma_configure()")Signed-off-by Thierry Reding <[email protected]>--- include/linux/of_device.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
Applied, thanks!