]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
staging: dgap: Fix mismatch in function argument types
authorHimangi Saraogi <himangi774@gmail.com>
Fri, 14 Mar 2014 11:18:14 +0000 (16:48 +0530)
committerPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Mon, 17 Mar 2014 01:26:24 +0000 (18:26 -0700)
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>
drivers/staging/dgap/dgap.c

index bfafe7e3763a9356eca37ee6e0f119df28777218..aa2928286362e6d0ae2b8f0fda0edb3ff4fae728 100644 (file)
@@ -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;