Skip to content

2 sparse warnings: incorrect type in argument 1 (different address spaces), incorrect type in initializer (incompatible argument 2 (different address spaces)) #201

@RobertBerger

Description

@RobertBerger

I am not sure what impact this has, but someone might want to look at those 2 sparse warnings for the crash memory driver.

USE_SPARSE: yes
+ which sparse
/opt/resy/5.2.66/multi-v7-ml/imx6q-phytec-mira-rdk-nand/sysroots/x86_64-resysdk-linux/usr/bin/sparse
+ make C=1
Building with KERNELDIR = /home/student/imx6q-phytec-mira-rdk-nand/linux-stable-custom 
make -C /home/student/imx6q-phytec-mira-rdk-nand/linux-stable-custom M=/home/student/projects/elin-3.0/yocto-multi-v7-ml/elin-for-trainer/sandbox_work/64_crash_memory_driver modules 
make[1] Entering directory '/home/student/imx6q-phytec-mira-rdk-nand/linux-stable-custom-elin' 
Building with KERNELRELEASE = 6.12.16-custom-student-debug-g054daea628da 
  CC [M]  /home/student/projects/elin-3.0/yocto-multi-v7-ml/elin-for-trainer/sandbox_work/64_crash_memory_driver/crash.o 
  CHECK   /home/student/projects/elin-3.0/yocto-multi-v7-ml/elin-for-trainer/sandbox_work/64_crash_memory_driver/crash.c 
/home/student/projects/elin-3.0/yocto-multi-v7-ml/elin-for-trainer/sandbox_work/64_crash_memory_driver/crash.c:250:26: warning: incorrect type in argument 1 (different address spaces)
/home/student/projects/elin-3.0/yocto-multi-v7-ml/elin-for-trainer/sandbox_work/64_crash_memory_driver/crash.c:250:26:    expected void [noderef] __user *to
/home/student/projects/elin-3.0/yocto-multi-v7-ml/elin-for-trainer/sandbox_work/64_crash_memory_driver/crash.c:250:26:    got char *buf
/home/student/projects/elin-3.0/yocto-multi-v7-ml/elin-for-trainer/sandbox_work/64_crash_memory_driver/crash.c:317:17: warning: incorrect type in initializer (incompatible argument 2 (different address spaces))
/home/student/projects/elin-3.0/yocto-multi-v7-ml/elin-for-trainer/sandbox_work/64_crash_memory_driver/crash.c:317:17:    expected int ( *read )( ... )
/home/student/projects/elin-3.0/yocto-multi-v7-ml/elin-for-trainer/sandbox_work/64_crash_memory_driver/crash.c:317:17:    got int ( * )( ... )
Building with KERNELRELEASE = 6.12.16-custom-student-debug-g054daea628da 
  MODPOST /home/student/projects/elin-3.0/yocto-multi-v7-ml/elin-for-trainer/sandbox_work/64_crash_memory_driver/Module.symvers 
  CC [M]  /home/student/projects/elin-3.0/yocto-multi-v7-ml/elin-for-trainer/sandbox_work/64_crash_memory_driver/crash.mod.o 
  CC [M]  /home/student/projects/elin-3.0/yocto-multi-v7-ml/elin-for-trainer/sandbox_work/64_crash_memory_driver/.module-common.o 
  LD [M]  /home/student/projects/elin-3.0/yocto-multi-v7-ml/elin-for-trainer/sandbox_work/64_crash_memory_driver/crash.ko 
make[1] Leaving directory '/home/student/imx6q-phytec-mira-rdk-nand/linux-stable-custom-elin' 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions