diff mbox series

[v2] usb: xhci-brcm: Include header file needed for dev_err

Message ID 6a5291600495667bf8d81fb5ec9266cbbebf6a20.1633521927.git.stefan@agner.ch
State Deferred
Delegated to: Tom Rini
Headers show
Series [v2] usb: xhci-brcm: Include header file needed for dev_err | expand

Commit Message

Stefan Agner Oct. 6, 2021, 12:05 p.m. UTC
dev_err seems to be moved to different header file. Include
dm/device_compat.h file to compile properly.

Fixes: 69dae8902b16 ("linux/compat.h: Remove redefinition of dev_xxx macros")
Signed-off-by: Stefan Agner <stefan@agner.ch>
---

Changes in v2:
- Correctly place include

 drivers/usb/host/xhci-brcm.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Simon Glass Oct. 14, 2021, 3:09 p.m. UTC | #1
On Wed, 6 Oct 2021 at 06:05, Stefan Agner <stefan@agner.ch> wrote:
>
> dev_err seems to be moved to different header file. Include
> dm/device_compat.h file to compile properly.
>
> Fixes: 69dae8902b16 ("linux/compat.h: Remove redefinition of dev_xxx macros")
> Signed-off-by: Stefan Agner <stefan@agner.ch>
> ---
>
> Changes in v2:
> - Correctly place include
>
>  drivers/usb/host/xhci-brcm.c | 1 +
>  1 file changed, 1 insertion(+)
>

Reviewed-by: Simon Glass <sjg@chromium.org>


> diff --git a/drivers/usb/host/xhci-brcm.c b/drivers/usb/host/xhci-brcm.c
> index 27c4bbfcba..fe17924028 100644
> --- a/drivers/usb/host/xhci-brcm.c
> +++ b/drivers/usb/host/xhci-brcm.c
> @@ -8,6 +8,7 @@
>  #include <fdtdec.h>
>  #include <usb.h>
>  #include <asm/io.h>
> +#include <dm/device_compat.h>
>  #include <usb/xhci.h>
>
>  #define DRD2U3H_XHC_REGS_AXIWRA        0xC08
> --
> 2.33.0
>
Bin Meng Oct. 27, 2021, 3:41 a.m. UTC | #2
On Wed, Oct 6, 2021 at 8:05 PM Stefan Agner <stefan@agner.ch> wrote:
>
> dev_err seems to be moved to different header file. Include
> dm/device_compat.h file to compile properly.
>
> Fixes: 69dae8902b16 ("linux/compat.h: Remove redefinition of dev_xxx macros")
> Signed-off-by: Stefan Agner <stefan@agner.ch>
> ---
>
> Changes in v2:
> - Correctly place include
>

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Sean Anderson Oct. 27, 2021, 5:12 a.m. UTC | #3
On 10/6/21 8:05 AM, Stefan Agner wrote:
> dev_err seems to be moved to different header file. Include
> dm/device_compat.h file to compile properly.
> 
> Fixes: 69dae8902b16 ("linux/compat.h: Remove redefinition of dev_xxx macros")
> Signed-off-by: Stefan Agner <stefan@agner.ch>
> ---
> 
> Changes in v2:
> - Correctly place include
> 
>   drivers/usb/host/xhci-brcm.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/usb/host/xhci-brcm.c b/drivers/usb/host/xhci-brcm.c
> index 27c4bbfcba..fe17924028 100644
> --- a/drivers/usb/host/xhci-brcm.c
> +++ b/drivers/usb/host/xhci-brcm.c
> @@ -8,6 +8,7 @@
>   #include <fdtdec.h>
>   #include <usb.h>
>   #include <asm/io.h>
> +#include <dm/device_compat.h>
>   #include <usb/xhci.h>
>   
>   #define DRD2U3H_XHC_REGS_AXIWRA	0xC08
> 

Does no defconfig compile this module? How was this include missing for so long?

--Sean
diff mbox series

Patch

diff --git a/drivers/usb/host/xhci-brcm.c b/drivers/usb/host/xhci-brcm.c
index 27c4bbfcba..fe17924028 100644
--- a/drivers/usb/host/xhci-brcm.c
+++ b/drivers/usb/host/xhci-brcm.c
@@ -8,6 +8,7 @@ 
 #include <fdtdec.h>
 #include <usb.h>
 #include <asm/io.h>
+#include <dm/device_compat.h>
 #include <usb/xhci.h>
 
 #define DRD2U3H_XHC_REGS_AXIWRA	0xC08