arch/sh/kernel/dwarf.c:411:24: sparse: sparse: incorrect type in argument 1 (different address spaces)
From: kernel test robot
Date: Sat Dec 12 2020 - 17:14:03 EST
Hi Luc,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 7b1b868e1d9156484ccce9bf11122c053de82617
commit: e5fc436f06eef54ef512ea55a9db8eb9f2e76959 sparse: use static inline for __chk_{user,io}_ptr()
date: 4 months ago
config: sh-randconfig-s032-20201213 (attached as .config)
compiler: sh4-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-179-ga00755aa-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e5fc436f06eef54ef512ea55a9db8eb9f2e76959
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout e5fc436f06eef54ef512ea55a9db8eb9f2e76959
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=sh
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>
"sparse warnings: (new ones prefixed by >>)"
arch/sh/kernel/dwarf.c:248:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned long *val @@
arch/sh/kernel/dwarf.c:248:17: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:248:17: sparse: got unsigned long *val
arch/sh/kernel/dwarf.c:347:18: sparse: sparse: symbol 'dwarf_lookup_fde' was not declared. Should it be static?
>> arch/sh/kernel/dwarf.c:411:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned char * @@
arch/sh/kernel/dwarf.c:411:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:411:24: sparse: got unsigned char *
>> arch/sh/kernel/dwarf.c:676:38: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned long [assigned] addr @@
arch/sh/kernel/dwarf.c:676:38: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:676:38: sparse: got unsigned long [assigned] addr
arch/sh/kernel/dwarf.c:708:30: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned long [assigned] addr @@
arch/sh/kernel/dwarf.c:708:30: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:708:30: sparse: got unsigned long [assigned] addr
arch/sh/kernel/dwarf.c:775:43: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got void *[assigned] p @@
arch/sh/kernel/dwarf.c:775:43: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:775:43: sparse: got void *[assigned] p
>> arch/sh/kernel/dwarf.c:156:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:156:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:156:24: sparse: got char *addr
>> arch/sh/kernel/dwarf.c:156:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:156:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:156:24: sparse: got char *addr
>> arch/sh/kernel/dwarf.c:156:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:156:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:156:24: sparse: got char *addr
>> arch/sh/kernel/dwarf.c:156:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:156:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:156:24: sparse: got char *addr
>> arch/sh/kernel/dwarf.c:156:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:156:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:156:24: sparse: got char *addr
>> arch/sh/kernel/dwarf.c:156:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:156:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:156:24: sparse: got char *addr
>> arch/sh/kernel/dwarf.c:156:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:156:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:156:24: sparse: got char *addr
>> arch/sh/kernel/dwarf.c:156:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:156:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:156:24: sparse: got char *addr
>> arch/sh/kernel/dwarf.c:156:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:156:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:156:24: sparse: got char *addr
>> arch/sh/kernel/dwarf.c:156:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:156:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:156:24: sparse: got char *addr
>> arch/sh/kernel/dwarf.c:156:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:156:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:156:24: sparse: got char *addr
arch/sh/kernel/dwarf.c:192:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:192:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:192:24: sparse: got char *addr
>> arch/sh/kernel/dwarf.c:156:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:156:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:156:24: sparse: got char *addr
arch/sh/kernel/dwarf.c:192:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:192:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:192:24: sparse: got char *addr
>> arch/sh/kernel/dwarf.c:156:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:156:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:156:24: sparse: got char *addr
>> arch/sh/kernel/dwarf.c:156:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:156:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:156:24: sparse: got char *addr
>> arch/sh/kernel/dwarf.c:156:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:156:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:156:24: sparse: got char *addr
>> arch/sh/kernel/dwarf.c:156:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:156:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:156:24: sparse: got char *addr
arch/sh/kernel/dwarf.c:192:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:192:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:192:24: sparse: got char *addr
>> arch/sh/kernel/dwarf.c:156:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:156:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:156:24: sparse: got char *addr
>> arch/sh/kernel/dwarf.c:156:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:156:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:156:24: sparse: got char *addr
>> arch/sh/kernel/dwarf.c:156:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got char *addr @@
arch/sh/kernel/dwarf.c:156:24: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/dwarf.c:156:24: sparse: got char *addr
--
>> arch/sh/kernel/cpu/sh2a/setup-sh7206.c:284:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/kernel/cpu/sh2a/setup-sh7206.c:284:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/sh2a/setup-sh7206.c:284:9: sparse: got unsigned int
>> arch/sh/kernel/cpu/sh2a/setup-sh7206.c:284:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/kernel/cpu/sh2a/setup-sh7206.c:284:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/sh2a/setup-sh7206.c:284:9: sparse: got unsigned int
arch/sh/kernel/cpu/sh2a/setup-sh7206.c:287:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/kernel/cpu/sh2a/setup-sh7206.c:287:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/sh2a/setup-sh7206.c:287:9: sparse: got unsigned int
arch/sh/kernel/cpu/sh2a/setup-sh7206.c:287:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/kernel/cpu/sh2a/setup-sh7206.c:287:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/sh2a/setup-sh7206.c:287:9: sparse: got unsigned int
--
>> arch/sh/kernel/cpu/sh2a/clock-sh7206.c:26:44: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/kernel/cpu/sh2a/clock-sh7206.c:26:44: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/sh2a/clock-sh7206.c:26:44: sparse: got unsigned int
arch/sh/kernel/cpu/sh2a/clock-sh7206.c:35:20: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/kernel/cpu/sh2a/clock-sh7206.c:35:20: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/sh2a/clock-sh7206.c:35:20: sparse: got unsigned int
arch/sh/kernel/cpu/sh2a/clock-sh7206.c:45:46: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/kernel/cpu/sh2a/clock-sh7206.c:45:46: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/sh2a/clock-sh7206.c:45:46: sparse: got unsigned int
arch/sh/kernel/cpu/sh2a/clock-sh7206.c:54:20: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/kernel/cpu/sh2a/clock-sh7206.c:54:20: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/sh2a/clock-sh7206.c:54:20: sparse: got unsigned int
--
fs/orangefs/file.c:118:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected int open_for_write @@ got restricted fmode_t @@
fs/orangefs/file.c:118:32: sparse: expected int open_for_write
fs/orangefs/file.c:118:32: sparse: got restricted fmode_t
fs/orangefs/file.c:119:31: sparse: sparse: incorrect type in assignment (different base types) @@ expected int open_for_read @@ got restricted fmode_t @@
fs/orangefs/file.c:119:31: sparse: expected int open_for_read
fs/orangefs/file.c:119:31: sparse: got restricted fmode_t
fs/orangefs/file.c:424:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@
fs/orangefs/file.c:424:21: sparse: expected int const *__gu_addr
fs/orangefs/file.c:424:21: sparse: got int [noderef] __user *
>> fs/orangefs/file.c:424:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
fs/orangefs/file.c:424:21: sparse: expected void const volatile [noderef] __user *ptr
fs/orangefs/file.c:424:21: sparse: got int const *__gu_addr
--
fs/ubifs/ioctl.c:162:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@
fs/ubifs/ioctl.c:162:21: sparse: expected int const *__gu_addr
fs/ubifs/ioctl.c:162:21: sparse: got int [noderef] __user *
>> fs/ubifs/ioctl.c:162:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
fs/ubifs/ioctl.c:162:21: sparse: expected void const volatile [noderef] __user *ptr
fs/ubifs/ioctl.c:162:21: sparse: got int const *__gu_addr
--
ipc/syscall.c:48:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned long const *__gu_addr @@ got unsigned long [noderef] __user * @@
ipc/syscall.c:48:21: sparse: expected unsigned long const *__gu_addr
ipc/syscall.c:48:21: sparse: got unsigned long [noderef] __user *
>> ipc/syscall.c:48:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned long const *__gu_addr @@
ipc/syscall.c:48:21: sparse: expected void const volatile [noderef] __user *ptr
ipc/syscall.c:48:21: sparse: got unsigned long const *__gu_addr
--
drivers/spi/spidev.c:401:34: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned char const *__gu_addr @@ got unsigned char [noderef] [usertype] __user * @@
drivers/spi/spidev.c:401:34: sparse: expected unsigned char const *__gu_addr
drivers/spi/spidev.c:401:34: sparse: got unsigned char [noderef] [usertype] __user *
>> drivers/spi/spidev.c:401:34: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned char const *__gu_addr @@
drivers/spi/spidev.c:401:34: sparse: expected void const volatile [noderef] __user *ptr
drivers/spi/spidev.c:401:34: sparse: got unsigned char const *__gu_addr
drivers/spi/spidev.c:403:34: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] [usertype] __user * @@
drivers/spi/spidev.c:403:34: sparse: expected unsigned int const *__gu_addr
drivers/spi/spidev.c:403:34: sparse: got unsigned int [noderef] [usertype] __user *
>> drivers/spi/spidev.c:403:34: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned int const *__gu_addr @@
drivers/spi/spidev.c:403:34: sparse: expected void const volatile [noderef] __user *ptr
drivers/spi/spidev.c:403:34: sparse: got unsigned int const *__gu_addr
drivers/spi/spidev.c:427:26: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned char const *__gu_addr @@ got unsigned char [noderef] [usertype] __user * @@
drivers/spi/spidev.c:427:26: sparse: expected unsigned char const *__gu_addr
drivers/spi/spidev.c:427:26: sparse: got unsigned char [noderef] [usertype] __user *
drivers/spi/spidev.c:427:26: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned char const *__gu_addr @@
drivers/spi/spidev.c:427:26: sparse: expected void const volatile [noderef] __user *ptr
drivers/spi/spidev.c:427:26: sparse: got unsigned char const *__gu_addr
drivers/spi/spidev.c:444:26: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned char const *__gu_addr @@ got unsigned char [noderef] [usertype] __user * @@
drivers/spi/spidev.c:444:26: sparse: expected unsigned char const *__gu_addr
drivers/spi/spidev.c:444:26: sparse: got unsigned char [noderef] [usertype] __user *
drivers/spi/spidev.c:444:26: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned char const *__gu_addr @@
drivers/spi/spidev.c:444:26: sparse: expected void const volatile [noderef] __user *ptr
drivers/spi/spidev.c:444:26: sparse: got unsigned char const *__gu_addr
drivers/spi/spidev.c:457:26: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] [usertype] __user * @@
drivers/spi/spidev.c:457:26: sparse: expected unsigned int const *__gu_addr
drivers/spi/spidev.c:457:26: sparse: got unsigned int [noderef] [usertype] __user *
drivers/spi/spidev.c:457:26: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned int const *__gu_addr @@
drivers/spi/spidev.c:457:26: sparse: expected void const volatile [noderef] __user *ptr
drivers/spi/spidev.c:457:26: sparse: got unsigned int const *__gu_addr
--
drivers/usb/core/devio.c:937:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] __user * @@
drivers/usb/core/devio.c:937:13: sparse: expected unsigned int const *__gu_addr
drivers/usb/core/devio.c:937:13: sparse: got unsigned int [noderef] __user *
drivers/usb/core/devio.c:937:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned int const *__gu_addr @@
drivers/usb/core/devio.c:937:13: sparse: expected void const volatile [noderef] __user *ptr
drivers/usb/core/devio.c:937:13: sparse: got unsigned int const *__gu_addr
drivers/usb/core/devio.c:938:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] __user * @@
drivers/usb/core/devio.c:938:13: sparse: expected unsigned int const *__gu_addr
drivers/usb/core/devio.c:938:13: sparse: got unsigned int [noderef] __user *
drivers/usb/core/devio.c:938:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned int const *__gu_addr @@
drivers/usb/core/devio.c:938:13: sparse: expected void const volatile [noderef] __user *ptr
drivers/usb/core/devio.c:938:13: sparse: got unsigned int const *__gu_addr
drivers/usb/core/devio.c:953:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned char const *__gu_addr @@ got unsigned char [noderef] __user * @@
drivers/usb/core/devio.c:953:21: sparse: expected unsigned char const *__gu_addr
drivers/usb/core/devio.c:953:21: sparse: got unsigned char [noderef] __user *
>> drivers/usb/core/devio.c:953:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned char const *__gu_addr @@
drivers/usb/core/devio.c:953:21: sparse: expected void const volatile [noderef] __user *ptr
drivers/usb/core/devio.c:953:21: sparse: got unsigned char const *__gu_addr
drivers/usb/core/devio.c:1290:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] __user * @@
drivers/usb/core/devio.c:1290:13: sparse: expected unsigned int const *__gu_addr
drivers/usb/core/devio.c:1290:13: sparse: got unsigned int [noderef] __user *
drivers/usb/core/devio.c:1290:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned int const *__gu_addr @@
drivers/usb/core/devio.c:1290:13: sparse: expected void const volatile [noderef] __user *ptr
drivers/usb/core/devio.c:1290:13: sparse: got unsigned int const *__gu_addr
drivers/usb/core/devio.c:1309:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] __user * @@
drivers/usb/core/devio.c:1309:13: sparse: expected unsigned int const *__gu_addr
drivers/usb/core/devio.c:1309:13: sparse: got unsigned int [noderef] __user *
drivers/usb/core/devio.c:1309:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned int const *__gu_addr @@
drivers/usb/core/devio.c:1309:13: sparse: expected void const volatile [noderef] __user *ptr
drivers/usb/core/devio.c:1309:13: sparse: got unsigned int const *__gu_addr
drivers/usb/core/devio.c:1441:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@
drivers/usb/core/devio.c:1441:13: sparse: expected int const *__gu_addr
drivers/usb/core/devio.c:1441:13: sparse: got int [noderef] __user *
drivers/usb/core/devio.c:1441:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
drivers/usb/core/devio.c:1441:13: sparse: expected void const volatile [noderef] __user *ptr
drivers/usb/core/devio.c:1441:13: sparse: got int const *__gu_addr
drivers/usb/core/devio.c:2189:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] __user * @@
drivers/usb/core/devio.c:2189:13: sparse: expected unsigned int const *__gu_addr
drivers/usb/core/devio.c:2189:13: sparse: got unsigned int [noderef] __user *
drivers/usb/core/devio.c:2189:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned int const *__gu_addr @@
drivers/usb/core/devio.c:2189:13: sparse: expected void const volatile [noderef] __user *ptr
drivers/usb/core/devio.c:2189:13: sparse: got unsigned int const *__gu_addr
drivers/usb/core/devio.c:2199:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] __user * @@
drivers/usb/core/devio.c:2199:13: sparse: expected unsigned int const *__gu_addr
drivers/usb/core/devio.c:2199:13: sparse: got unsigned int [noderef] __user *
drivers/usb/core/devio.c:2199:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned int const *__gu_addr @@
drivers/usb/core/devio.c:2199:13: sparse: expected void const volatile [noderef] __user *ptr
drivers/usb/core/devio.c:2199:13: sparse: got unsigned int const *__gu_addr
drivers/usb/core/devio.c:2315:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] __user * @@
drivers/usb/core/devio.c:2315:13: sparse: expected unsigned int const *__gu_addr
drivers/usb/core/devio.c:2315:13: sparse: got unsigned int [noderef] __user *
drivers/usb/core/devio.c:2315:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned int const *__gu_addr @@
drivers/usb/core/devio.c:2315:13: sparse: expected void const volatile [noderef] __user *ptr
drivers/usb/core/devio.c:2315:13: sparse: got unsigned int const *__gu_addr
drivers/usb/core/devio.c:2328:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] __user * @@
drivers/usb/core/devio.c:2328:13: sparse: expected unsigned int const *__gu_addr
drivers/usb/core/devio.c:2328:13: sparse: got unsigned int [noderef] __user *
drivers/usb/core/devio.c:2328:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned int const *__gu_addr @@
drivers/usb/core/devio.c:2328:13: sparse: expected void const volatile [noderef] __user *ptr
drivers/usb/core/devio.c:2328:13: sparse: got unsigned int const *__gu_addr
--
drivers/video/fbdev/tmiofb.c:528:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] [usertype] __user *argp @@
drivers/video/fbdev/tmiofb.c:528:21: sparse: expected unsigned int const *__gu_addr
drivers/video/fbdev/tmiofb.c:528:21: sparse: got unsigned int [noderef] [usertype] __user *argp
>> drivers/video/fbdev/tmiofb.c:528:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned int const *__gu_addr @@
drivers/video/fbdev/tmiofb.c:528:21: sparse: expected void const volatile [noderef] __user *ptr
drivers/video/fbdev/tmiofb.c:528:21: sparse: got unsigned int const *__gu_addr
--
drivers/watchdog/mv64x60_wdt.c:163:37: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected char const *__gu_addr @@ got char const [noderef] __user * @@
drivers/watchdog/mv64x60_wdt.c:163:37: sparse: expected char const *__gu_addr
drivers/watchdog/mv64x60_wdt.c:163:37: sparse: got char const [noderef] __user *
>> drivers/watchdog/mv64x60_wdt.c:163:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got char const *__gu_addr @@
drivers/watchdog/mv64x60_wdt.c:163:37: sparse: expected void const volatile [noderef] __user *ptr
drivers/watchdog/mv64x60_wdt.c:163:37: sparse: got char const *__gu_addr
drivers/watchdog/mv64x60_wdt.c:206:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@
drivers/watchdog/mv64x60_wdt.c:206:21: sparse: expected int const *__gu_addr
drivers/watchdog/mv64x60_wdt.c:206:21: sparse: got int [noderef] __user *
>> drivers/watchdog/mv64x60_wdt.c:206:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
drivers/watchdog/mv64x60_wdt.c:206:21: sparse: expected void const volatile [noderef] __user *ptr
drivers/watchdog/mv64x60_wdt.c:206:21: sparse: got int const *__gu_addr
drivers/watchdog/mv64x60_wdt.c:222:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user * @@
drivers/watchdog/mv64x60_wdt.c:222:21: sparse: expected int const *__gu_addr
drivers/watchdog/mv64x60_wdt.c:222:21: sparse: got int [noderef] __user *
drivers/watchdog/mv64x60_wdt.c:222:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
drivers/watchdog/mv64x60_wdt.c:222:21: sparse: expected void const volatile [noderef] __user *ptr
drivers/watchdog/mv64x60_wdt.c:222:21: sparse: got int const *__gu_addr
--
drivers/watchdog/pcwd_usb.c:375:37: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected char const *__gu_addr @@ got char const [noderef] __user * @@
drivers/watchdog/pcwd_usb.c:375:37: sparse: expected char const *__gu_addr
drivers/watchdog/pcwd_usb.c:375:37: sparse: got char const [noderef] __user *
>> drivers/watchdog/pcwd_usb.c:375:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got char const *__gu_addr @@
drivers/watchdog/pcwd_usb.c:375:37: sparse: expected void const volatile [noderef] __user *ptr
drivers/watchdog/pcwd_usb.c:375:37: sparse: got char const *__gu_addr
drivers/watchdog/pcwd_usb.c:423:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *p @@
drivers/watchdog/pcwd_usb.c:423:21: sparse: expected int const *__gu_addr
drivers/watchdog/pcwd_usb.c:423:21: sparse: got int [noderef] __user *p
>> drivers/watchdog/pcwd_usb.c:423:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
drivers/watchdog/pcwd_usb.c:423:21: sparse: expected void const volatile [noderef] __user *ptr
drivers/watchdog/pcwd_usb.c:423:21: sparse: got int const *__gu_addr
drivers/watchdog/pcwd_usb.c:447:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderef] __user *p @@
drivers/watchdog/pcwd_usb.c:447:21: sparse: expected int const *__gu_addr
drivers/watchdog/pcwd_usb.c:447:21: sparse: got int [noderef] __user *p
drivers/watchdog/pcwd_usb.c:447:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got int const *__gu_addr @@
drivers/watchdog/pcwd_usb.c:447:21: sparse: expected void const volatile [noderef] __user *ptr
drivers/watchdog/pcwd_usb.c:447:21: sparse: got int const *__gu_addr
--
drivers/watchdog/shwdt.c: note: in included file:
arch/sh/include/asm/watchdog.h:144:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:144:16: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:144:16: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:156:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:156:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:156:9: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:134:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:134:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:134:9: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:144:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:144:16: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:144:16: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:156:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:156:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:156:9: sparse: got unsigned int
drivers/watchdog/shwdt.c: note: in included file (through arch/sh/include/cpu-sh2a/cpu/watchdog.h, arch/sh/include/asm/watchdog.h):
>> arch/sh/include/cpu-sh2/cpu/watchdog.h:44:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/cpu-sh2/cpu/watchdog.h:44:16: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/cpu-sh2/cpu/watchdog.h:44:16: sparse: got unsigned int
arch/sh/include/cpu-sh2/cpu/watchdog.h:62:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/cpu-sh2/cpu/watchdog.h:62:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/cpu-sh2/cpu/watchdog.h:62:9: sparse: got unsigned int
drivers/watchdog/shwdt.c: note: in included file:
arch/sh/include/asm/watchdog.h:144:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:144:16: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:144:16: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:156:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:156:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:156:9: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:144:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:144:16: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:144:16: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:156:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:156:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:156:9: sparse: got unsigned int
arch/sh/include/asm/watchdog.h:134:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/include/asm/watchdog.h:134:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/include/asm/watchdog.h:134:9: sparse: got unsigned int
vim +411 arch/sh/kernel/dwarf.c
bd353861c735b22 Matt Fleming 2009-08-14 381
bd353861c735b22 Matt Fleming 2009-08-14 382 /**
bd353861c735b22 Matt Fleming 2009-08-14 383 * dwarf_cfa_execute_insns - execute instructions to calculate a CFA
bd353861c735b22 Matt Fleming 2009-08-14 384 * @insn_start: address of the first instruction
bd353861c735b22 Matt Fleming 2009-08-14 385 * @insn_end: address of the last instruction
bd353861c735b22 Matt Fleming 2009-08-14 386 * @cie: the CIE for this function
bd353861c735b22 Matt Fleming 2009-08-14 387 * @fde: the FDE for this function
bd353861c735b22 Matt Fleming 2009-08-14 388 * @frame: the instructions calculate the CFA for this frame
bd353861c735b22 Matt Fleming 2009-08-14 389 * @pc: the program counter of the address we're interested in
bd353861c735b22 Matt Fleming 2009-08-14 390 *
bd353861c735b22 Matt Fleming 2009-08-14 391 * Execute the Call Frame instruction sequence starting at
bd353861c735b22 Matt Fleming 2009-08-14 392 * @insn_start and ending at @insn_end. The instructions describe
bd353861c735b22 Matt Fleming 2009-08-14 393 * how to calculate the Canonical Frame Address of a stackframe.
bd353861c735b22 Matt Fleming 2009-08-14 394 * Store the results in @frame.
bd353861c735b22 Matt Fleming 2009-08-14 395 */
bd353861c735b22 Matt Fleming 2009-08-14 396 static int dwarf_cfa_execute_insns(unsigned char *insn_start,
bd353861c735b22 Matt Fleming 2009-08-14 397 unsigned char *insn_end,
bd353861c735b22 Matt Fleming 2009-08-14 398 struct dwarf_cie *cie,
bd353861c735b22 Matt Fleming 2009-08-14 399 struct dwarf_fde *fde,
bd353861c735b22 Matt Fleming 2009-08-14 400 struct dwarf_frame *frame,
b955873bf530ee4 Matt Fleming 2009-08-15 401 unsigned long pc)
bd353861c735b22 Matt Fleming 2009-08-14 402 {
bd353861c735b22 Matt Fleming 2009-08-14 403 unsigned char insn;
bd353861c735b22 Matt Fleming 2009-08-14 404 unsigned char *current_insn;
bd353861c735b22 Matt Fleming 2009-08-14 405 unsigned int count, delta, reg, expr_len, offset;
fb3f3e7fc6d4afb Matt Fleming 2009-08-16 406 struct dwarf_reg *regp;
bd353861c735b22 Matt Fleming 2009-08-14 407
bd353861c735b22 Matt Fleming 2009-08-14 408 current_insn = insn_start;
bd353861c735b22 Matt Fleming 2009-08-14 409
b955873bf530ee4 Matt Fleming 2009-08-15 410 while (current_insn < insn_end && frame->pc <= pc) {
bd353861c735b22 Matt Fleming 2009-08-14 @411 insn = __raw_readb(current_insn++);
bd353861c735b22 Matt Fleming 2009-08-14 412
bd353861c735b22 Matt Fleming 2009-08-14 413 /*
bd353861c735b22 Matt Fleming 2009-08-14 414 * Firstly, handle the opcodes that embed their operands
bd353861c735b22 Matt Fleming 2009-08-14 415 * in the instructions.
bd353861c735b22 Matt Fleming 2009-08-14 416 */
bd353861c735b22 Matt Fleming 2009-08-14 417 switch (DW_CFA_opcode(insn)) {
bd353861c735b22 Matt Fleming 2009-08-14 418 case DW_CFA_advance_loc:
bd353861c735b22 Matt Fleming 2009-08-14 419 delta = DW_CFA_operand(insn);
bd353861c735b22 Matt Fleming 2009-08-14 420 delta *= cie->code_alignment_factor;
bd353861c735b22 Matt Fleming 2009-08-14 421 frame->pc += delta;
bd353861c735b22 Matt Fleming 2009-08-14 422 continue;
bd353861c735b22 Matt Fleming 2009-08-14 423 /* NOTREACHED */
bd353861c735b22 Matt Fleming 2009-08-14 424 case DW_CFA_offset:
bd353861c735b22 Matt Fleming 2009-08-14 425 reg = DW_CFA_operand(insn);
bd353861c735b22 Matt Fleming 2009-08-14 426 count = dwarf_read_uleb128(current_insn, &offset);
bd353861c735b22 Matt Fleming 2009-08-14 427 current_insn += count;
bd353861c735b22 Matt Fleming 2009-08-14 428 offset *= cie->data_alignment_factor;
fb3f3e7fc6d4afb Matt Fleming 2009-08-16 429 regp = dwarf_frame_alloc_reg(frame, reg);
fb3f3e7fc6d4afb Matt Fleming 2009-08-16 430 regp->addr = offset;
fb3f3e7fc6d4afb Matt Fleming 2009-08-16 431 regp->flags |= DWARF_REG_OFFSET;
bd353861c735b22 Matt Fleming 2009-08-14 432 continue;
bd353861c735b22 Matt Fleming 2009-08-14 433 /* NOTREACHED */
bd353861c735b22 Matt Fleming 2009-08-14 434 case DW_CFA_restore:
bd353861c735b22 Matt Fleming 2009-08-14 435 reg = DW_CFA_operand(insn);
bd353861c735b22 Matt Fleming 2009-08-14 436 continue;
bd353861c735b22 Matt Fleming 2009-08-14 437 /* NOTREACHED */
bd353861c735b22 Matt Fleming 2009-08-14 438 }
bd353861c735b22 Matt Fleming 2009-08-14 439
bd353861c735b22 Matt Fleming 2009-08-14 440 /*
bd353861c735b22 Matt Fleming 2009-08-14 441 * Secondly, handle the opcodes that don't embed their
bd353861c735b22 Matt Fleming 2009-08-14 442 * operands in the instruction.
bd353861c735b22 Matt Fleming 2009-08-14 443 */
bd353861c735b22 Matt Fleming 2009-08-14 444 switch (insn) {
bd353861c735b22 Matt Fleming 2009-08-14 445 case DW_CFA_nop:
bd353861c735b22 Matt Fleming 2009-08-14 446 continue;
bd353861c735b22 Matt Fleming 2009-08-14 447 case DW_CFA_advance_loc1:
bd353861c735b22 Matt Fleming 2009-08-14 448 delta = *current_insn++;
bd353861c735b22 Matt Fleming 2009-08-14 449 frame->pc += delta * cie->code_alignment_factor;
bd353861c735b22 Matt Fleming 2009-08-14 450 break;
bd353861c735b22 Matt Fleming 2009-08-14 451 case DW_CFA_advance_loc2:
3497447f15485b4 Paul Mundt 2009-08-14 452 delta = get_unaligned((u16 *)current_insn);
bd353861c735b22 Matt Fleming 2009-08-14 453 current_insn += 2;
bd353861c735b22 Matt Fleming 2009-08-14 454 frame->pc += delta * cie->code_alignment_factor;
bd353861c735b22 Matt Fleming 2009-08-14 455 break;
bd353861c735b22 Matt Fleming 2009-08-14 456 case DW_CFA_advance_loc4:
3497447f15485b4 Paul Mundt 2009-08-14 457 delta = get_unaligned((u32 *)current_insn);
bd353861c735b22 Matt Fleming 2009-08-14 458 current_insn += 4;
bd353861c735b22 Matt Fleming 2009-08-14 459 frame->pc += delta * cie->code_alignment_factor;
bd353861c735b22 Matt Fleming 2009-08-14 460 break;
bd353861c735b22 Matt Fleming 2009-08-14 461 case DW_CFA_offset_extended:
bd353861c735b22 Matt Fleming 2009-08-14 462 count = dwarf_read_uleb128(current_insn, ®);
bd353861c735b22 Matt Fleming 2009-08-14 463 current_insn += count;
bd353861c735b22 Matt Fleming 2009-08-14 464 count = dwarf_read_uleb128(current_insn, &offset);
bd353861c735b22 Matt Fleming 2009-08-14 465 current_insn += count;
bd353861c735b22 Matt Fleming 2009-08-14 466 offset *= cie->data_alignment_factor;
bd353861c735b22 Matt Fleming 2009-08-14 467 break;
bd353861c735b22 Matt Fleming 2009-08-14 468 case DW_CFA_restore_extended:
bd353861c735b22 Matt Fleming 2009-08-14 469 count = dwarf_read_uleb128(current_insn, ®);
bd353861c735b22 Matt Fleming 2009-08-14 470 current_insn += count;
bd353861c735b22 Matt Fleming 2009-08-14 471 break;
bd353861c735b22 Matt Fleming 2009-08-14 472 case DW_CFA_undefined:
bd353861c735b22 Matt Fleming 2009-08-14 473 count = dwarf_read_uleb128(current_insn, ®);
bd353861c735b22 Matt Fleming 2009-08-14 474 current_insn += count;
5580e9044df9c0e Matt Fleming 2009-08-20 475 regp = dwarf_frame_alloc_reg(frame, reg);
5580e9044df9c0e Matt Fleming 2009-08-20 476 regp->flags |= DWARF_UNDEFINED;
bd353861c735b22 Matt Fleming 2009-08-14 477 break;
bd353861c735b22 Matt Fleming 2009-08-14 478 case DW_CFA_def_cfa:
bd353861c735b22 Matt Fleming 2009-08-14 479 count = dwarf_read_uleb128(current_insn,
bd353861c735b22 Matt Fleming 2009-08-14 480 &frame->cfa_register);
bd353861c735b22 Matt Fleming 2009-08-14 481 current_insn += count;
bd353861c735b22 Matt Fleming 2009-08-14 482 count = dwarf_read_uleb128(current_insn,
bd353861c735b22 Matt Fleming 2009-08-14 483 &frame->cfa_offset);
bd353861c735b22 Matt Fleming 2009-08-14 484 current_insn += count;
bd353861c735b22 Matt Fleming 2009-08-14 485
bd353861c735b22 Matt Fleming 2009-08-14 486 frame->flags |= DWARF_FRAME_CFA_REG_OFFSET;
bd353861c735b22 Matt Fleming 2009-08-14 487 break;
bd353861c735b22 Matt Fleming 2009-08-14 488 case DW_CFA_def_cfa_register:
bd353861c735b22 Matt Fleming 2009-08-14 489 count = dwarf_read_uleb128(current_insn,
bd353861c735b22 Matt Fleming 2009-08-14 490 &frame->cfa_register);
bd353861c735b22 Matt Fleming 2009-08-14 491 current_insn += count;
bd353861c735b22 Matt Fleming 2009-08-14 492 frame->flags |= DWARF_FRAME_CFA_REG_OFFSET;
bd353861c735b22 Matt Fleming 2009-08-14 493 break;
bd353861c735b22 Matt Fleming 2009-08-14 494 case DW_CFA_def_cfa_offset:
bd353861c735b22 Matt Fleming 2009-08-14 495 count = dwarf_read_uleb128(current_insn, &offset);
bd353861c735b22 Matt Fleming 2009-08-14 496 current_insn += count;
bd353861c735b22 Matt Fleming 2009-08-14 497 frame->cfa_offset = offset;
bd353861c735b22 Matt Fleming 2009-08-14 498 break;
bd353861c735b22 Matt Fleming 2009-08-14 499 case DW_CFA_def_cfa_expression:
bd353861c735b22 Matt Fleming 2009-08-14 500 count = dwarf_read_uleb128(current_insn, &expr_len);
bd353861c735b22 Matt Fleming 2009-08-14 501 current_insn += count;
bd353861c735b22 Matt Fleming 2009-08-14 502
bd353861c735b22 Matt Fleming 2009-08-14 503 frame->cfa_expr = current_insn;
bd353861c735b22 Matt Fleming 2009-08-14 504 frame->cfa_expr_len = expr_len;
bd353861c735b22 Matt Fleming 2009-08-14 505 current_insn += expr_len;
bd353861c735b22 Matt Fleming 2009-08-14 506
bd353861c735b22 Matt Fleming 2009-08-14 507 frame->flags |= DWARF_FRAME_CFA_REG_EXP;
bd353861c735b22 Matt Fleming 2009-08-14 508 break;
bd353861c735b22 Matt Fleming 2009-08-14 509 case DW_CFA_offset_extended_sf:
bd353861c735b22 Matt Fleming 2009-08-14 510 count = dwarf_read_uleb128(current_insn, ®);
bd353861c735b22 Matt Fleming 2009-08-14 511 current_insn += count;
bd353861c735b22 Matt Fleming 2009-08-14 512 count = dwarf_read_leb128(current_insn, &offset);
bd353861c735b22 Matt Fleming 2009-08-14 513 current_insn += count;
bd353861c735b22 Matt Fleming 2009-08-14 514 offset *= cie->data_alignment_factor;
fb3f3e7fc6d4afb Matt Fleming 2009-08-16 515 regp = dwarf_frame_alloc_reg(frame, reg);
fb3f3e7fc6d4afb Matt Fleming 2009-08-16 516 regp->flags |= DWARF_REG_OFFSET;
fb3f3e7fc6d4afb Matt Fleming 2009-08-16 517 regp->addr = offset;
bd353861c735b22 Matt Fleming 2009-08-14 518 break;
bd353861c735b22 Matt Fleming 2009-08-14 519 case DW_CFA_val_offset:
bd353861c735b22 Matt Fleming 2009-08-14 520 count = dwarf_read_uleb128(current_insn, ®);
bd353861c735b22 Matt Fleming 2009-08-14 521 current_insn += count;
bd353861c735b22 Matt Fleming 2009-08-14 522 count = dwarf_read_leb128(current_insn, &offset);
bd353861c735b22 Matt Fleming 2009-08-14 523 offset *= cie->data_alignment_factor;
fb3f3e7fc6d4afb Matt Fleming 2009-08-16 524 regp = dwarf_frame_alloc_reg(frame, reg);
97efbbd5886e27b Matt Fleming 2009-08-16 525 regp->flags |= DWARF_VAL_OFFSET;
fb3f3e7fc6d4afb Matt Fleming 2009-08-16 526 regp->addr = offset;
bd353861c735b22 Matt Fleming 2009-08-14 527 break;
cd7246f0e2747bd Matt Fleming 2009-08-16 528 case DW_CFA_GNU_args_size:
cd7246f0e2747bd Matt Fleming 2009-08-16 529 count = dwarf_read_uleb128(current_insn, &offset);
cd7246f0e2747bd Matt Fleming 2009-08-16 530 current_insn += count;
cd7246f0e2747bd Matt Fleming 2009-08-16 531 break;
cd7246f0e2747bd Matt Fleming 2009-08-16 532 case DW_CFA_GNU_negative_offset_extended:
cd7246f0e2747bd Matt Fleming 2009-08-16 533 count = dwarf_read_uleb128(current_insn, ®);
cd7246f0e2747bd Matt Fleming 2009-08-16 534 current_insn += count;
cd7246f0e2747bd Matt Fleming 2009-08-16 535 count = dwarf_read_uleb128(current_insn, &offset);
cd7246f0e2747bd Matt Fleming 2009-08-16 536 offset *= cie->data_alignment_factor;
fb3f3e7fc6d4afb Matt Fleming 2009-08-16 537
fb3f3e7fc6d4afb Matt Fleming 2009-08-16 538 regp = dwarf_frame_alloc_reg(frame, reg);
fb3f3e7fc6d4afb Matt Fleming 2009-08-16 539 regp->flags |= DWARF_REG_OFFSET;
fb3f3e7fc6d4afb Matt Fleming 2009-08-16 540 regp->addr = -offset;
cd7246f0e2747bd Matt Fleming 2009-08-16 541 break;
bd353861c735b22 Matt Fleming 2009-08-14 542 default:
bd353861c735b22 Matt Fleming 2009-08-14 543 pr_debug("unhandled DWARF instruction 0x%x\n", insn);
b344e24a8e8ceda Matt Fleming 2009-08-16 544 UNWINDER_BUG();
bd353861c735b22 Matt Fleming 2009-08-14 545 break;
bd353861c735b22 Matt Fleming 2009-08-14 546 }
bd353861c735b22 Matt Fleming 2009-08-14 547 }
bd353861c735b22 Matt Fleming 2009-08-14 548
bd353861c735b22 Matt Fleming 2009-08-14 549 return 0;
bd353861c735b22 Matt Fleming 2009-08-14 550 }
bd353861c735b22 Matt Fleming 2009-08-14 551
:::::: The code at line 411 was first introduced by commit
:::::: bd353861c735b2265c9d8b2559960c693e7c68ab sh: dwarf unwinder support.
:::::: TO: Matt Fleming <matt@xxxxxxxxxxxxxxxxx>
:::::: CC: Paul Mundt <lethal@xxxxxxxxxxxx>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip