error with “pmem.c” compiling linux source code for android

Discussion in 'Android Hacks and Help' started by preetb123, Mar 19, 2011.

  1. preetb123
    Offline

    preetb123 New Member

    Joined:
    Feb 13, 2011
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    I am compiling linux source code for android emulator. When i execute make command(for building and cross-compiling the linux source) i get the following error "pmem.c" file.

    root@ubuntu:~# cd common
    root@ubuntu:~/common# make
    CHK include/linux/version.h
    CHK include/linux/utsrelease.h
    SYMLINK include/asm -> include/asm-x86
    CALL scripts/checksyscalls.sh
    CHK include/linux/compile.h
    CC drivers/misc/pmem.o
    drivers/misc/pmem.c:441: error: conflicting types for ‘phys_mem_access_prot’
    /home/preetam/common/arch/x86/include/asm/pgtable.h:383: note: previous declaration of ‘phys_mem_access_prot’ was here
    drivers/misc/pmem.c: In function ‘flush_pmem_file’:
    drivers/misc/pmem.c:805: error: implicit declaration of function ‘dmac_flush_range’
    drivers/misc/pmem.c: In function ‘pmem_setup’:
    drivers/misc/pmem.c:1265: error: implicit declaration of function ‘ioremap_cached’
    drivers/misc/pmem.c:1266: warning: assignment makes pointer from integer without a cast
    make[2]: *** [drivers/misc/pmem.o] Error 1
    make[1]: *** [drivers/misc] Error 2
    make: *** [drivers] Error 2
    root@ubuntu:~/common#


    how to resolve this error. It seems that there may some problems in the "pmem.c" file and i'll have to choose different git repository. but that would be a very complex thing, as now i have already done most of the things till here. I might have to see correct version of this file. please someone tell what should i do?

    how to solve this errors.

    please help..thankyou!
     
  2. jeffv2
    Offline

    jeffv2 Developer Developer

    Joined:
    Dec 23, 2010
    Messages:
    1,240
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    south jersey
    Ratings:
    +0
    You didn't setup your make correctly, you need to Specify what board to make for even if its just the emulator.

    Sent from my Droid using Tapatalk
     
  3. preetb123
    Offline

    preetb123 New Member

    Joined:
    Feb 13, 2011
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    actually pmem.c file has some errors, so i deleted the file and removed it from the makefile reference... and i got it.

    thank you very much.
     
Search tags for this page

[drivers/misc/pmem.o]