Re: [PATCH v2] isdn: eicon: fix a missing-check bug
From: Wenwen Wang
Date: Mon May 21 2018 - 01:54:20 EST
On Sun, May 20, 2018 at 5:37 PM, David Miller <davem@xxxxxxxxxxxxx> wrote:
> From: Wenwen Wang <wang6495@xxxxxxx>
> Date: Fri, 18 May 2018 16:33:47 -0500
>
>> In divasmain.c, the function divas_write() firstly invokes the function
>> diva_xdi_open_adapter() to open the adapter that matches with the adapter
>> number provided by the user, and then invokes the function diva_xdi_write()
>> to perform the write operation using the matched adapter. The two functions
>> diva_xdi_open_adapter() and diva_xdi_write() are located in diva.c.
>
> This doesn't even compile:
>
> In file included from drivers/isdn/hardware/eicon/divasmain.c:30:
> drivers/isdn/hardware/eicon/diva.h:23:18: error: unknown type name âdiva_xdi_um_cfg_cmd_tâ
> int length, diva_xdi_um_cfg_cmd_t *msg,
> ^~~~~~~~~~~~~~~~~~~~~
> drivers/isdn/hardware/eicon/diva.h:27:20: error: unknown type name âdiva_xdi_um_cfg_cmd_tâ
> int length, diva_xdi_um_cfg_cmd_t *msg,
> ^~~~~~~~~~~~~~~~~~~~~
Sorry. I will correct the compilation errors and resubmit the patch.
Wenwen