Skip to content

Commit

Permalink
staging: dgap: Fix mismatch in function argument types
Browse files Browse the repository at this point in the history
This patch fixes the following error reported by sparse:
drivers/staging/dgap/dgap.c:4428:13: error: symbol 'dgap_do_fep_load' redeclared with different type (originally declared at drivers/staging/dgap/dgap.c:215) - incompatible argument 2 (different address spaces)

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Pablo Neira Ayuso <pablo@gnumonks.org>
Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
  • Loading branch information
Himangi Saraogi authored and Peter P Waskiewicz Jr committed Mar 17, 2014
1 parent 97a84f1 commit e054e2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/dgap/dgap.c
Original file line number Diff line number Diff line change
Expand Up @@ -4426,7 +4426,7 @@ static void dgap_do_wait_for_bios(struct board_t *brd)
* Copies the FEP code from the user to the board,
* and starts the FEP running.
*/
static void dgap_do_fep_load(struct board_t *brd, uchar *ufep, int len)
static void dgap_do_fep_load(struct board_t *brd, uchar __user *ufep, int len)
{
uchar *addr;
uint offset;
Expand Down

0 comments on commit e054e2a

Please sign in to comment.