lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202007191049.4vkJocE8%lkp@intel.com>
Date:   Sun, 19 Jul 2020 10:35:59 +0800
From:   kernel test robot <lkp@...el.com>
To:     Luc Van Oostenryck <luc.vanoostenryck@...il.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: arch/powerpc/platforms/powermac/setup.c:215:25: sparse: sparse: cast
 removes address space '__iomem' of expression

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   f932d58abc38c898d7d3fe635ecb2b821a256f54
commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces
date:   4 weeks ago
config: powerpc64-randconfig-s031-20200719 (attached as .config)
compiler: powerpc-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.2-49-g707c5017-dirty
        git checkout 670d0a4b10704667765f7d18f7592993d02783aa
        # 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=powerpc64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>


sparse warnings: (new ones prefixed by >>)

   arch/powerpc/platforms/powermac/setup.c:74:5: sparse: sparse: symbol 'ppc_override_l2cr' was not declared. Should it be static?
   arch/powerpc/platforms/powermac/setup.c:75:5: sparse: sparse: symbol 'ppc_override_l2cr_value' was not declared. Should it be static?
   arch/powerpc/platforms/powermac/setup.c:76:5: sparse: sparse: symbol 'has_l2cache' was not declared. Should it be static?
>> arch/powerpc/platforms/powermac/setup.c:215:25: sparse: sparse: cast removes address space '__iomem' of expression
--
>> drivers/char/agp/uninorth-agp.c:174:15: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/char/agp/uninorth-agp.c:188:31: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] @@     got restricted __le32 [usertype] @@
   drivers/char/agp/uninorth-agp.c:188:31: sparse:     expected unsigned int [usertype]
   drivers/char/agp/uninorth-agp.c:188:31: sparse:     got restricted __le32 [usertype]
   drivers/char/agp/uninorth-agp.c:217:15: sparse: sparse: cast removes address space '__iomem' of expression
>> drivers/char/agp/uninorth-agp.c:424:28: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [noderef] [usertype] __iomem *gatt_table @@     got void * @@
>> drivers/char/agp/uninorth-agp.c:424:28: sparse:     expected unsigned int [noderef] [usertype] __iomem *gatt_table
   drivers/char/agp/uninorth-agp.c:424:28: sparse:     got void *
   drivers/char/agp/uninorth-agp.c:434:31: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int static [assigned] [toplevel] [usertype] scratch_value @@     got restricted __le32 [usertype] @@
   drivers/char/agp/uninorth-agp.c:434:31: sparse:     expected unsigned int static [assigned] [toplevel] [usertype] scratch_value
   drivers/char/agp/uninorth-agp.c:434:31: sparse:     got restricted __le32 [usertype]
>> drivers/char/agp/uninorth-agp.c:463:22: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const *addr @@     got unsigned int [noderef] [usertype] __iomem *gatt_table @@
   drivers/char/agp/uninorth-agp.c:463:22: sparse:     expected void const *addr
>> drivers/char/agp/uninorth-agp.c:463:22: sparse:     got unsigned int [noderef] [usertype] __iomem *gatt_table
   drivers/char/agp/uninorth-agp.c:510:32: sparse: sparse: symbol 'uninorth_agp_driver' was not declared. Should it be static?
   drivers/char/agp/uninorth-agp.c:538:32: sparse: sparse: symbol 'u3_agp_driver' was not declared. Should it be static?
   drivers/char/agp/uninorth-agp.c:437:35: sparse: sparse: dereference of noderef expression
--
>> drivers/i2c/busses/i2c-hydra.c:112:29: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void *static [addressable] [toplevel] data @@     got void [noderef] __iomem * @@
   drivers/i2c/busses/i2c-hydra.c:112:29: sparse:     expected void *static [addressable] [toplevel] data
>> drivers/i2c/busses/i2c-hydra.c:112:29: sparse:     got void [noderef] __iomem *
>> drivers/i2c/busses/i2c-hydra.c:122:39: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got void *static [addressable] [toplevel] data @@
>> drivers/i2c/busses/i2c-hydra.c:122:39: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/i2c/busses/i2c-hydra.c:122:39: sparse:     got void *static [addressable] [toplevel] data
   drivers/i2c/busses/i2c-hydra.c:133:31: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got void *static [addressable] [toplevel] data @@
   drivers/i2c/busses/i2c-hydra.c:133:31: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/i2c/busses/i2c-hydra.c:133:31: sparse:     got void *static [addressable] [toplevel] data
>> drivers/i2c/busses/i2c-hydra.c:41:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
>> drivers/i2c/busses/i2c-hydra.c:41:23: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/i2c/busses/i2c-hydra.c:41:23: sparse:     got unsigned int *
>> drivers/i2c/busses/i2c-hydra.c:35:22: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/i2c/busses/i2c-hydra.c:35:22: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/i2c/busses/i2c-hydra.c:35:22: sparse:     got unsigned int *
>> drivers/i2c/busses/i2c-hydra.c:41:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
>> drivers/i2c/busses/i2c-hydra.c:41:23: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/i2c/busses/i2c-hydra.c:41:23: sparse:     got unsigned int *
>> drivers/i2c/busses/i2c-hydra.c:35:22: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/i2c/busses/i2c-hydra.c:35:22: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/i2c/busses/i2c-hydra.c:35:22: sparse:     got unsigned int *
>> drivers/i2c/busses/i2c-hydra.c:41:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
>> drivers/i2c/busses/i2c-hydra.c:41:23: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/i2c/busses/i2c-hydra.c:41:23: sparse:     got unsigned int *
>> drivers/i2c/busses/i2c-hydra.c:41:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
>> drivers/i2c/busses/i2c-hydra.c:41:23: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/i2c/busses/i2c-hydra.c:41:23: sparse:     got unsigned int *
>> drivers/i2c/busses/i2c-hydra.c:35:22: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/i2c/busses/i2c-hydra.c:35:22: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/i2c/busses/i2c-hydra.c:35:22: sparse:     got unsigned int *
>> drivers/i2c/busses/i2c-hydra.c:35:22: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/i2c/busses/i2c-hydra.c:35:22: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/i2c/busses/i2c-hydra.c:35:22: sparse:     got unsigned int *
--
>> sound/ppc/pmac.c:61:54: sparse: sparse: cast removes address space '__iomem' of expression
   sound/ppc/pmac.c:145:58: sparse: sparse: restricted snd_pcm_format_t degrades to integer
   sound/ppc/pmac.c:199:41: sparse: sparse: restricted snd_pcm_format_t degrades to integer
   sound/ppc/pmac.c:201:22: sparse: sparse: incorrect type in assignment (different base types) @@     expected int format @@     got restricted snd_pcm_format_t [usertype] format @@
   sound/ppc/pmac.c:201:22: sparse:     expected int format
   sound/ppc/pmac.c:201:22: sparse:     got restricted snd_pcm_format_t [usertype] format
>> sound/ppc/pmac.c:260:35: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short volatile [noderef] [usertype] __iomem *addr @@     got restricted __le16 volatile [noderef] __iomem * @@
>> sound/ppc/pmac.c:260:35: sparse:     expected unsigned short volatile [noderef] [usertype] __iomem *addr
>> sound/ppc/pmac.c:260:35: sparse:     got restricted __le16 volatile [noderef] __iomem *
   sound/ppc/pmac.c:275:35: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short volatile [noderef] [usertype] __iomem *addr @@     got restricted __le16 volatile [noderef] __iomem * @@
   sound/ppc/pmac.c:275:35: sparse:     expected unsigned short volatile [noderef] [usertype] __iomem *addr
   sound/ppc/pmac.c:275:35: sparse:     got restricted __le16 volatile [noderef] __iomem *
   sound/ppc/pmac.c:446:32: sparse: sparse: dereference of noderef expression
   sound/ppc/pmac.c:211:24: sparse: sparse: dereference of noderef expression
   sound/ppc/pmac.c:222:17: sparse: sparse: dereference of noderef expression
   sound/ppc/pmac.c:223:17: sparse: sparse: dereference of noderef expression
   sound/ppc/pmac.c:225:17: sparse: sparse: dereference of noderef expression
   sound/ppc/pmac.c:229:9: sparse: sparse: dereference of noderef expression
   sound/ppc/pmac.c:230:9: sparse: sparse: dereference of noderef expression
   sound/ppc/pmac.c:299:16: sparse: sparse: dereference of noderef expression
>> sound/ppc/pmac.c:301:34: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short const volatile [noderef] [usertype] __iomem *addr @@     got restricted __le16 volatile [noderef] __iomem * @@
>> sound/ppc/pmac.c:301:34: sparse:     expected unsigned short const volatile [noderef] [usertype] __iomem *addr
   sound/ppc/pmac.c:301:34: sparse:     got restricted __le16 volatile [noderef] __iomem *
   sound/ppc/pmac.c:299:16: sparse: sparse: dereference of noderef expression
   sound/ppc/pmac.c:299:16: sparse: sparse: dereference of noderef expression
   sound/ppc/pmac.c:299:16: sparse: sparse: dereference of noderef expression
>> sound/ppc/pmac.c:301:34: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short const volatile [noderef] [usertype] __iomem *addr @@     got restricted __le16 volatile [noderef] __iomem * @@
>> sound/ppc/pmac.c:301:34: sparse:     expected unsigned short const volatile [noderef] [usertype] __iomem *addr
   sound/ppc/pmac.c:301:34: sparse:     got restricted __le16 volatile [noderef] __iomem *
   sound/ppc/pmac.c:299:16: sparse: sparse: dereference of noderef expression
   sound/ppc/pmac.c:299:16: sparse: sparse: dereference of noderef expression
   sound/ppc/pmac.c:446:32: sparse: sparse: dereference of noderef expression
   sound/ppc/pmac.c:446:32: sparse: sparse: dereference of noderef expression
   sound/ppc/pmac.c:395:17: sparse: sparse: cast removes address space '__iomem' of expression
   sound/ppc/pmac.c:395:17: sparse: sparse: cast removes address space '__iomem' of expression
   sound/ppc/pmac.c:405:15: sparse: sparse: dereference of noderef expression
   sound/ppc/pmac.c:406:15: sparse: sparse: dereference of noderef expression
   sound/ppc/pmac.c:407:15: sparse: sparse: dereference of noderef expression
   sound/ppc/pmac.c:398:17: sparse: sparse: dereference of noderef expression
   sound/ppc/pmac.c:399:17: sparse: sparse: dereference of noderef expression
   sound/ppc/pmac.c:405:15: sparse: sparse: dereference of noderef expression
   sound/ppc/pmac.c:405:15: sparse: sparse: dereference of noderef expression
   sound/ppc/pmac.c:406:15: sparse: sparse: dereference of noderef expression
   sound/ppc/pmac.c:406:15: sparse: sparse: dereference of noderef expression
   sound/ppc/pmac.c:407:15: sparse: sparse: dereference of noderef expression
   sound/ppc/pmac.c:407:15: sparse: sparse: dereference of noderef expression
   sound/ppc/pmac.c:409:9: sparse: sparse: dereference of noderef expression
   sound/ppc/pmac.c:410:9: sparse: sparse: dereference of noderef expression
   sound/ppc/pmac.c:411:9: sparse: sparse: dereference of noderef expression
   sound/ppc/pmac.c:412:9: sparse: sparse: dereference of noderef expression
   sound/ppc/pmac.c:414:9: sparse: sparse: dereference of noderef expression
   sound/ppc/pmac.c:417:9: sparse: sparse: dereference of noderef expression
   sound/ppc/pmac.c:460:25: sparse: sparse: dereference of noderef expression
   sound/ppc/pmac.c:461:25: sparse: sparse: dereference of noderef expression
   sound/ppc/pmac.c:725:24: sparse: sparse: dereference of noderef expression
   sound/ppc/pmac.c:726:24: sparse: sparse: dereference of noderef expression
   sound/ppc/pmac.c:727:24: sparse: sparse: dereference of noderef expression
   sound/ppc/pmac.c:728:24: sparse: sparse: dereference of noderef expression
   sound/ppc/pmac.c:729:24: sparse: sparse: dereference of noderef expression
   sound/ppc/pmac.c:741:24: sparse: sparse: dereference of noderef expression
--
   drivers/video/fbdev/platinumfb.h:346:19: sparse: sparse: symbol 'vmode_attrs' was not declared. Should it be static?
>> drivers/video/fbdev/platinumfb.c:588:17: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned char volatile [usertype] *fbuffer @@     got unsigned char volatile [noderef] [usertype] __iomem *base_frame_buffer @@
   drivers/video/fbdev/platinumfb.c:588:17: sparse:     expected unsigned char volatile [usertype] *fbuffer
>> drivers/video/fbdev/platinumfb.c:588:17: sparse:     got unsigned char volatile [noderef] [usertype] __iomem *base_frame_buffer
--
   drivers/usb/host/ehci-dbg.c:381:44: sparse: sparse: incorrect type in initializer (different base types) @@     expected restricted __le32 [usertype] list_end @@     got restricted __hc32 @@
   drivers/usb/host/ehci-dbg.c:381:44: sparse:     expected restricted __le32 [usertype] list_end
   drivers/usb/host/ehci-dbg.c:381:44: sparse:     got restricted __hc32
   drivers/usb/host/ehci-dbg.c:384:15: sparse: sparse: restricted __hc32 degrades to integer
   drivers/usb/host/ehci-dbg.c:384:32: sparse: sparse: restricted __le32 degrades to integer
   drivers/usb/host/ehci-dbg.c:392:28: sparse: sparse: restricted __hc32 degrades to integer
   drivers/usb/host/ehci-dbg.c:392:45: sparse: sparse: restricted __le32 degrades to integer
   drivers/usb/host/ehci-dbg.c:429:36: sparse: sparse: restricted __hc32 degrades to integer
   drivers/usb/host/ehci-dbg.c:429:53: sparse: sparse: restricted __le32 degrades to integer
   drivers/usb/host/ehci-q.c:1389:27: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __hc32 [usertype] old_current @@     got int @@
   drivers/usb/host/ehci-q.c:1389:27: sparse:     expected restricted __hc32 [usertype] old_current
   drivers/usb/host/ehci-q.c:1389:27: sparse:     got int
   drivers/usb/host/ehci-mem.c:188:24: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __hc32 [usertype] *periodic @@     got restricted __le32 [usertype] * @@
   drivers/usb/host/ehci-mem.c:188:24: sparse:     expected restricted __hc32 [usertype] *periodic
   drivers/usb/host/ehci-mem.c:188:24: sparse:     got restricted __le32 [usertype] *
   drivers/usb/host/ehci-hcd.c:566:27: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __hc32 [usertype] old_current @@     got int @@
   drivers/usb/host/ehci-hcd.c:566:27: sparse:     expected restricted __hc32 [usertype] old_current
   drivers/usb/host/ehci-hcd.c:566:27: sparse:     got int
>> drivers/usb/host/ehci-ppc-of.c:140:47: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected restricted __hc32 [usertype] *ohci_hcctrl_reg @@     got void [noderef] __iomem * @@
   drivers/usb/host/ehci-ppc-of.c:140:47: sparse:     expected restricted __hc32 [usertype] *ohci_hcctrl_reg
>> drivers/usb/host/ehci-ppc-of.c:140:47: sparse:     got void [noderef] __iomem *
--
>> sound/aoa/soundbus/i2sbus/core.c:96:30: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int const volatile [noderef] [usertype] __iomem *addr @@     got restricted __le32 volatile [noderef] __iomem * @@
>> sound/aoa/soundbus/i2sbus/core.c:96:30: sparse:     expected unsigned int const volatile [noderef] [usertype] __iomem *addr
>> sound/aoa/soundbus/i2sbus/core.c:96:30: sparse:     got restricted __le32 volatile [noderef] __iomem *
>> sound/aoa/soundbus/i2sbus/core.c:99:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int volatile [noderef] [usertype] __iomem *addr @@     got restricted __le32 volatile [noderef] __iomem * @@
>> sound/aoa/soundbus/i2sbus/core.c:99:22: sparse:     expected unsigned int volatile [noderef] [usertype] __iomem *addr
   sound/aoa/soundbus/i2sbus/core.c:99:22: sparse:     got restricted __le32 volatile [noderef] __iomem *
--
>> sound/aoa/soundbus/i2sbus/pcm.c:478:28: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int const volatile [noderef] [usertype] __iomem *addr @@     got restricted __le32 volatile [noderef] __iomem * @@
>> sound/aoa/soundbus/i2sbus/pcm.c:478:28: sparse:     expected unsigned int const volatile [noderef] [usertype] __iomem *addr
>> sound/aoa/soundbus/i2sbus/pcm.c:478:28: sparse:     got restricted __le32 volatile [noderef] __iomem *
   sound/aoa/soundbus/i2sbus/pcm.c:479:28: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int const volatile [noderef] [usertype] __iomem *addr @@     got restricted __le32 volatile [noderef] __iomem * @@
   sound/aoa/soundbus/i2sbus/pcm.c:479:28: sparse:     expected unsigned int const volatile [noderef] [usertype] __iomem *addr
   sound/aoa/soundbus/i2sbus/pcm.c:479:28: sparse:     got restricted __le32 volatile [noderef] __iomem *
>> sound/aoa/soundbus/i2sbus/pcm.c:491:25: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int volatile [noderef] [usertype] __iomem *addr @@     got restricted __le32 volatile [noderef] __iomem * @@
>> sound/aoa/soundbus/i2sbus/pcm.c:491:25: sparse:     expected unsigned int volatile [noderef] [usertype] __iomem *addr
   sound/aoa/soundbus/i2sbus/pcm.c:491:25: sparse:     got restricted __le32 volatile [noderef] __iomem *
   sound/aoa/soundbus/i2sbus/pcm.c:500:30: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int const volatile [noderef] [usertype] __iomem *addr @@     got restricted __le32 volatile [noderef] __iomem * @@
   sound/aoa/soundbus/i2sbus/pcm.c:500:30: sparse:     expected unsigned int const volatile [noderef] [usertype] __iomem *addr
   sound/aoa/soundbus/i2sbus/pcm.c:500:30: sparse:     got restricted __le32 volatile [noderef] __iomem *
   sound/aoa/soundbus/i2sbus/pcm.c:503:25: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int volatile [noderef] [usertype] __iomem *addr @@     got restricted __le32 volatile [noderef] __iomem * @@
   sound/aoa/soundbus/i2sbus/pcm.c:503:25: sparse:     expected unsigned int volatile [noderef] [usertype] __iomem *addr
   sound/aoa/soundbus/i2sbus/pcm.c:503:25: sparse:     got restricted __le32 volatile [noderef] __iomem *
   sound/aoa/soundbus/i2sbus/pcm.c:506:25: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int volatile [noderef] [usertype] __iomem *addr @@     got restricted __le32 volatile [noderef] __iomem * @@
   sound/aoa/soundbus/i2sbus/pcm.c:506:25: sparse:     expected unsigned int volatile [noderef] [usertype] __iomem *addr
   sound/aoa/soundbus/i2sbus/pcm.c:506:25: sparse:     got restricted __le32 volatile [noderef] __iomem *
   sound/aoa/soundbus/i2sbus/pcm.c:507:25: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int volatile [noderef] [usertype] __iomem *addr @@     got restricted __le32 volatile [noderef] __iomem * @@
   sound/aoa/soundbus/i2sbus/pcm.c:507:25: sparse:     expected unsigned int volatile [noderef] [usertype] __iomem *addr
   sound/aoa/soundbus/i2sbus/pcm.c:507:25: sparse:     got restricted __le32 volatile [noderef] __iomem *
   sound/aoa/soundbus/i2sbus/pcm.c:578:50: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int const volatile [noderef] [usertype] __iomem *addr @@     got restricted __le32 volatile [noderef] __iomem * @@
   sound/aoa/soundbus/i2sbus/pcm.c:578:50: sparse:     expected unsigned int const volatile [noderef] [usertype] __iomem *addr
   sound/aoa/soundbus/i2sbus/pcm.c:578:50: sparse:     got restricted __le32 volatile [noderef] __iomem *
   sound/aoa/soundbus/i2sbus/pcm.c:619:29: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int const volatile [noderef] [usertype] __iomem *addr @@     got restricted __le32 volatile [noderef] __iomem * @@
   sound/aoa/soundbus/i2sbus/pcm.c:619:29: sparse:     expected unsigned int const volatile [noderef] [usertype] __iomem *addr
   sound/aoa/soundbus/i2sbus/pcm.c:619:29: sparse:     got restricted __le32 volatile [noderef] __iomem *
   sound/aoa/soundbus/i2sbus/pcm.c:663:37: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int const volatile [noderef] [usertype] __iomem *addr @@     got restricted __le32 volatile [noderef] __iomem * @@
   sound/aoa/soundbus/i2sbus/pcm.c:663:37: sparse:     expected unsigned int const volatile [noderef] [usertype] __iomem *addr
   sound/aoa/soundbus/i2sbus/pcm.c:663:37: sparse:     got restricted __le32 volatile [noderef] __iomem *
   sound/aoa/soundbus/i2sbus/pcm.c:663:37: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int const volatile [noderef] [usertype] __iomem *addr @@     got restricted __le32 volatile [noderef] __iomem * @@
   sound/aoa/soundbus/i2sbus/pcm.c:663:37: sparse:     expected unsigned int const volatile [noderef] [usertype] __iomem *addr
   sound/aoa/soundbus/i2sbus/pcm.c:663:37: sparse:     got restricted __le32 volatile [noderef] __iomem *

vim +/__iomem +215 arch/powerpc/platforms/powermac/setup.c

14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26   73  
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  @74  int ppc_override_l2cr = 0;
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26   75  int ppc_override_l2cr_value;
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26   76  int has_l2cache = 0;
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26   77  
d2515c806ea2b60 arch/powerpc/platforms/powermac/setup.c      Olaf Hering       2006-01-22   78  int pmac_newworld;
9b6b563c0d2d25e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-10-06   79  
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26   80  static int current_root_goodness = -1;
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26   81  
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22   82  extern struct machdep_calls pmac_md;
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26   83  
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26   84  #define DEFAULT_ROOT_DEVICE Root_SDA1	/* sda1 - slightly silly choice */
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26   85  
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22   86  #ifdef CONFIG_PPC64
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22   87  int sccdbg;
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26   88  #endif
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26   89  
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26   90  sys_ctrler_t sys_ctrler = SYS_CTRLER_UNKNOWN;
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22   91  EXPORT_SYMBOL(sys_ctrler);
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22   92  
0dd194d02d2584c arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-20   93  static void pmac_show_cpuinfo(struct seq_file *m)
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26   94  {
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26   95  	struct device_node *np;
018a3d1db7cdb61 arch/powerpc/platforms/powermac/setup.c      Jeremy Kerr       2006-07-12   96  	const char *pp;
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26   97  	int plen;
0dd194d02d2584c arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-20   98  	int mbmodel;
0dd194d02d2584c arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-20   99  	unsigned int mbflags;
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  100  	char* mbname;
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  101  
0dd194d02d2584c arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-20  102  	mbmodel = pmac_call_feature(PMAC_FTR_GET_MB_INFO, NULL,
0dd194d02d2584c arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-20  103  				    PMAC_MB_INFO_MODEL, 0);
0dd194d02d2584c arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-20  104  	mbflags = pmac_call_feature(PMAC_FTR_GET_MB_INFO, NULL,
0dd194d02d2584c arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-20  105  				    PMAC_MB_INFO_FLAGS, 0);
0dd194d02d2584c arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-20  106  	if (pmac_call_feature(PMAC_FTR_GET_MB_INFO, NULL, PMAC_MB_INFO_NAME,
0dd194d02d2584c arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-20  107  			      (long) &mbname) != 0)
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  108  		mbname = "Unknown";
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  109  
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  110  	/* find motherboard type */
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  111  	seq_printf(m, "machine\t\t: ");
0dd194d02d2584c arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-20  112  	np = of_find_node_by_path("/");
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  113  	if (np != NULL) {
e2eb63927bfcb54 arch/powerpc/platforms/powermac/setup.c      Stephen Rothwell  2007-04-03  114  		pp = of_get_property(np, "model", NULL);
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  115  		if (pp != NULL)
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  116  			seq_printf(m, "%s\n", pp);
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  117  		else
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  118  			seq_printf(m, "PowerMac\n");
e2eb63927bfcb54 arch/powerpc/platforms/powermac/setup.c      Stephen Rothwell  2007-04-03  119  		pp = of_get_property(np, "compatible", &plen);
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  120  		if (pp != NULL) {
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  121  			seq_printf(m, "motherboard\t:");
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  122  			while (plen > 0) {
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  123  				int l = strlen(pp) + 1;
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  124  				seq_printf(m, " %s", pp);
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  125  				plen -= l;
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  126  				pp += l;
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  127  			}
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  128  			seq_printf(m, "\n");
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  129  		}
0dd194d02d2584c arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-20  130  		of_node_put(np);
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  131  	} else
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  132  		seq_printf(m, "PowerMac\n");
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  133  
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  134  	/* print parsed model */
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  135  	seq_printf(m, "detected as\t: %d (%s)\n", mbmodel, mbname);
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  136  	seq_printf(m, "pmac flags\t: %08x\n", mbflags);
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  137  
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  138  	/* find l2 cache info */
0dd194d02d2584c arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-20  139  	np = of_find_node_by_name(NULL, "l2-cache");
0dd194d02d2584c arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-20  140  	if (np == NULL)
0dd194d02d2584c arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-20  141  		np = of_find_node_by_type(NULL, "cache");
0dd194d02d2584c arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-20  142  	if (np != NULL) {
e2eb63927bfcb54 arch/powerpc/platforms/powermac/setup.c      Stephen Rothwell  2007-04-03  143  		const unsigned int *ic =
e2eb63927bfcb54 arch/powerpc/platforms/powermac/setup.c      Stephen Rothwell  2007-04-03  144  			of_get_property(np, "i-cache-size", NULL);
e2eb63927bfcb54 arch/powerpc/platforms/powermac/setup.c      Stephen Rothwell  2007-04-03  145  		const unsigned int *dc =
e2eb63927bfcb54 arch/powerpc/platforms/powermac/setup.c      Stephen Rothwell  2007-04-03  146  			of_get_property(np, "d-cache-size", NULL);
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  147  		seq_printf(m, "L2 cache\t:");
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  148  		has_l2cache = 1;
d8731527acee53b arch/powerpc/platforms/powermac/setup.c      Mathieu Malaterre 2018-04-13  149  		if (of_get_property(np, "cache-unified", NULL) && dc) {
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  150  			seq_printf(m, " %dK unified", *dc / 1024);
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  151  		} else {
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  152  			if (ic)
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  153  				seq_printf(m, " %dK instruction", *ic / 1024);
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  154  			if (dc)
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  155  				seq_printf(m, "%s %dK data",
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  156  					   (ic? " +": ""), *dc / 1024);
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  157  		}
e2eb63927bfcb54 arch/powerpc/platforms/powermac/setup.c      Stephen Rothwell  2007-04-03  158  		pp = of_get_property(np, "ram-type", NULL);
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  159  		if (pp)
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  160  			seq_printf(m, " %s", pp);
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  161  		seq_printf(m, "\n");
0dd194d02d2584c arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-20  162  		of_node_put(np);
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  163  	}
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  164  
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  165  	/* Indicate newworld/oldworld */
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  166  	seq_printf(m, "pmac-generation\t: %s\n",
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  167  		   pmac_newworld ? "NewWorld" : "OldWorld");
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  168  }
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  169  
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22  170  #ifndef CONFIG_ADB_CUDA
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22  171  int find_via_cuda(void)
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  172  {
30686ba6d568586 arch/powerpc/platforms/powermac/setup.c      Stephen Rothwell  2007-04-24  173  	struct device_node *dn = of_find_node_by_name(NULL, "via-cuda");
30686ba6d568586 arch/powerpc/platforms/powermac/setup.c      Stephen Rothwell  2007-04-24  174  
30686ba6d568586 arch/powerpc/platforms/powermac/setup.c      Stephen Rothwell  2007-04-24  175  	if (!dn)
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22  176  		return 0;
30686ba6d568586 arch/powerpc/platforms/powermac/setup.c      Stephen Rothwell  2007-04-24  177  	of_node_put(dn);
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22  178  	printk("WARNING ! Your machine is CUDA-based but your kernel\n");
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22  179  	printk("          wasn't compiled with CONFIG_ADB_CUDA option !\n");
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22  180  	return 0;
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22  181  }
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22  182  #endif
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  183  
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22  184  #ifndef CONFIG_ADB_PMU
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22  185  int find_via_pmu(void)
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22  186  {
30686ba6d568586 arch/powerpc/platforms/powermac/setup.c      Stephen Rothwell  2007-04-24  187  	struct device_node *dn = of_find_node_by_name(NULL, "via-pmu");
30686ba6d568586 arch/powerpc/platforms/powermac/setup.c      Stephen Rothwell  2007-04-24  188  
30686ba6d568586 arch/powerpc/platforms/powermac/setup.c      Stephen Rothwell  2007-04-24  189  	if (!dn)
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22  190  		return 0;
30686ba6d568586 arch/powerpc/platforms/powermac/setup.c      Stephen Rothwell  2007-04-24  191  	of_node_put(dn);
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22  192  	printk("WARNING ! Your machine is PMU-based but your kernel\n");
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22  193  	printk("          wasn't compiled with CONFIG_ADB_PMU option !\n");
a575b807172ca7d arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-23  194  	return 0;
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22  195  }
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22  196  #endif
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  197  
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22  198  #ifndef CONFIG_PMAC_SMU
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22  199  int smu_init(void)
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22  200  {
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22  201  	/* should check and warn if SMU is present */
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22  202  	return 0;
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  203  }
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22  204  #endif
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  205  
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22  206  #ifdef CONFIG_PPC32
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22  207  static volatile u32 *sysctrl_regs;
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22  208  
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22  209  static void __init ohare_init(void)
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22  210  {
30686ba6d568586 arch/powerpc/platforms/powermac/setup.c      Stephen Rothwell  2007-04-24  211  	struct device_node *dn;
30686ba6d568586 arch/powerpc/platforms/powermac/setup.c      Stephen Rothwell  2007-04-24  212  
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  213  	/* this area has the CPU identification register
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  214  	   and some registers used by smp boards */
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26 @215  	sysctrl_regs = (volatile u32 *) ioremap(0xf8000000, 0x1000);
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  216  
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22  217  	/*
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22  218  	 * Turn on the L2 cache.
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22  219  	 * We assume that we have a PSX memory controller iff
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22  220  	 * we have an ohare I/O controller.
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22  221  	 */
30686ba6d568586 arch/powerpc/platforms/powermac/setup.c      Stephen Rothwell  2007-04-24  222  	dn = of_find_node_by_name(NULL, "ohare");
30686ba6d568586 arch/powerpc/platforms/powermac/setup.c      Stephen Rothwell  2007-04-24  223  	if (dn) {
30686ba6d568586 arch/powerpc/platforms/powermac/setup.c      Stephen Rothwell  2007-04-24  224  		of_node_put(dn);
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22  225  		if (((sysctrl_regs[2] >> 24) & 0xf) >= 3) {
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22  226  			if (sysctrl_regs[4] & 0x10)
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22  227  				sysctrl_regs[4] |= 0x04000020;
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22  228  			else
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22  229  				sysctrl_regs[4] |= 0x04000000;
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22  230  			if(has_l2cache)
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22  231  				printk(KERN_INFO "Level 2 cache enabled\n");
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22  232  		}
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22  233  	}
35499c0195e46f4 arch/powerpc/platforms/powermac/setup.c      Paul Mackerras    2005-10-22  234  }
14cf11af6cf608e arch/powerpc/platforms/powermac/pmac_setup.c Paul Mackerras    2005-09-26  235  

:::::: The code at line 215 was first introduced by commit
:::::: 14cf11af6cf608eb8c23e989ddb17a715ddce109 powerpc: Merge enough to start building in arch/powerpc.

:::::: TO: Paul Mackerras <paulus@...ba.org>
:::::: CC: Paul Mackerras <paulus@...ba.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (33876 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ