drivers/base: fix compiler warning in SoC export driver - idr should be ida
PATCH 1/1 drivers/base: fix compiler warning in SoC export driver - idr should be ida
This fixes:
note: expected ?struct ida *? but argument is of type ?struct idr *?
warning: passing argument 1 of ?ida_pre_get? from incompatible pointer type
--- drivers/base/soc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/base/soc.c +1 -1
@@ -15,7 +15,7 @@#include <linux/sys_soc.h> #include <linux/err.h> -static DEFINE_IDR (soc_ida); +static DEFINE_IDA (soc_ida);static DEFINE_SPINLOCK (soc_lock); static ssize_t soc_info_get(struct device *dev,
Signature · 1 line
1.7.5.4
PATCH 1/1 drivers/base: fix compiler warning in SoC export driver - idr should be ida
Quoted 10 lines · Lee Jones
This fixes:
note: expected ?struct ida *? but argument is of type ?struct idr *?
warning: passing argument 1 of ?ida_pre_get? from incompatible pointer typeReported-by Arnd Bergman <[email protected]>Cc Greg Kroah-Hartman <[email protected]>Signed-off-by Lee Jones <[email protected]>drivers/base/soc.c | 2 +-
Greg, are you taking this through your tree?
Arnd
PATCH 1/1 drivers/base: fix compiler warning in SoC export driver - idr should be ida
Quoted 10 lines · Arnd Bergmann
Quoted 9 lines · Lee Jones
This fixes:
note: expected ?struct ida *? but argument is of type ?struct idr *?
warning: passing argument 1 of ?ida_pre_get? from incompatible pointer typeReported-by Arnd Bergman <[email protected]>Cc Greg Kroah-Hartman <[email protected]>Signed-off-by Lee Jones <[email protected]>
Quoted 5 lines
Quoted 1 line
drivers/base/soc.c | 2 +-Acked-by Arnd Bergmann <[email protected]>Greg, are you taking this through your tree?
I've applied it to arm-soc/fixes now. Greg, if you have any objections, tell me before the weekend and I'll take it out again, otherwise I'll submit it before -rc1.
Arnd