Re: [PATCH v2] AF_PACKET doesnt strip VLAN information
by kernel test robot
Hi Sriram,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on hnaz-linux-mm/master]
[also build test WARNING on sparc-next/master linus/master v5.8-rc5 next-20200717]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Sriram-Krishnan/AF_PACKET-doesnt...
base: https://github.com/hnaz/linux-mm master
config: s390-randconfig-s031-20200719 (attached as .config)
compiler: s390-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
# 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=s390
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> net/packet/af_packet.c:1877:52: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected unsigned short [usertype] *vlan_tci @@ got restricted __be16 * @@
>> net/packet/af_packet.c:1877:52: sparse: expected unsigned short [usertype] *vlan_tci
>> net/packet/af_packet.c:1877:52: sparse: got restricted __be16 *
>> net/packet/af_packet.c:1881:64: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected unsigned short [usertype] vlan_tci @@ got restricted __be16 [addressable] [usertype] vlan_tci @@
net/packet/af_packet.c:1881:64: sparse: expected unsigned short [usertype] vlan_tci
>> net/packet/af_packet.c:1881:64: sparse: got restricted __be16 [addressable] [usertype] vlan_tci
vim +1877 net/packet/af_packet.c
1859
1860 static int packet_parse_headers(struct sk_buff *skb, struct socket *sock)
1861 {
1862 if ((!skb->protocol || skb->protocol == htons(ETH_P_ALL)) &&
1863 sock->type == SOCK_RAW) {
1864 __be16 ethertype;
1865
1866 skb_reset_mac_header(skb);
1867
1868 ethertype = eth_hdr(skb)->h_proto;
1869 /*
1870 * If Vlan tag is present in the packet
1871 * move it to skb
1872 */
1873 if (eth_type_vlan(ethertype)) {
1874 int err;
1875 __be16 vlan_tci;
1876
> 1877 err = __skb_vlan_pop(skb, &vlan_tci);
1878 if (unlikely(err))
1879 return err;
1880
> 1881 __vlan_hwaccel_put_tag(skb, ethertype, vlan_tci);
1882 }
1883
1884 skb->protocol = dev_parse_header_protocol(skb);
1885 }
1886
1887 skb_probe_transport_header(skb);
1888 return 0;
1889 }
1890
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
Re: [Intel-gfx] [PATCH 3/3] drm/i915/perf: Map OA buffer to user space for gen12 performance query
by kernel test robot
Hi Umesh,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on drm-tip/drm-tip v5.8-rc5 next-20200717]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Umesh-Nerlige-Ramappa/drm-i915-p...
base: git://anongit.freedesktop.org/drm-intel for-linux-next
config: i386-randconfig-r011-20200719 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce (this is a W=1 build):
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/i915/i915_perf.c:1642:5: error: no previous prototype for 'i915_perf_mmap' [-Werror=missing-prototypes]
1642 | int i915_perf_mmap(struct file *file, struct vm_area_struct *vma)
| ^~~~~~~~~~~~~~
cc1: all warnings being treated as errors
vim +/i915_perf_mmap +1642 drivers/gpu/drm/i915/i915_perf.c
1641
> 1642 int i915_perf_mmap(struct file *file, struct vm_area_struct *vma)
1643 {
1644 struct i915_perf_stream *stream = file->private_data;
1645
1646 if (vma->vm_end < vma->vm_start)
1647 return -EINVAL;
1648
1649 if ((vma->vm_end - vma->vm_start) > OA_BUFFER_SIZE)
1650 return -EINVAL;
1651
1652 if (vma->vm_flags & VM_WRITE)
1653 return -EINVAL;
1654
1655 if (vma->vm_pgoff != I915_PERF_OA_BUFFER_MMAP_OFFSET)
1656 return -EINVAL;
1657
1658 vma->vm_flags &= ~(VM_MAYWRITE | VM_MAYEXEC | VM_MAYSHARE);
1659 vma->vm_flags |= VM_PFNMAP | VM_DONTEXPAND | VM_DONTDUMP;
1660 vma->vm_page_prot = vm_get_page_prot(vma->vm_flags);
1661 vma->vm_private_data = stream;
1662 vma->vm_ops = &vm_ops_oa;
1663
1664 return 0;
1665 }
1666
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[linux-stable-rc:linux-4.19.y 7465/9999] arm-linux-gnueabi-ld: section __ksymtab_gpl VMA overlaps section .bss VMA
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.19.y
head: e864f43593ccf9180c61738abdf1c1dde091367d
commit: 5c1187d168953838fceb281fadc404621a5a091b [7465/9999] rsi: fix non-atomic allocation in completion handler
config: arm-randconfig-r015-20200717 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 5c1187d168953838fceb281fadc404621a5a091b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arm-linux-gnueabi-ld: section .data VMA [0000000040008000,0000000040386967] overlaps section .text VMA [000000003f080180,000000004010f037]
arm-linux-gnueabi-ld: section .fixup VMA [000000004010f038,000000004010f053] overlaps section .data VMA [0000000040008000,0000000040386967]
arm-linux-gnueabi-ld: section __bug_table VMA [0000000040386968,000000004038b9e3] overlaps section .rodata VMA [0000000040110000,00000000403947bf]
arm-linux-gnueabi-ld: section .pci_fixup VMA [00000000403947c0,000000004039681f] overlaps section .init.data VMA [000000004038d000,000000004039b48b]
arm-linux-gnueabi-ld: section .exit.data VMA [000000004039b48c,000000004039d9cf] overlaps section __ksymtab VMA [0000000040396820,000000004039e7ef]
>> arm-linux-gnueabi-ld: section __ksymtab_gpl VMA [000000004039e7f0,00000000403a687f] overlaps section .bss VMA [000000004039e000,00000000411c2a1f]
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
arch/powerpc/platforms/powermac/setup.c:215:25: sparse: sparse: cast removes address space '__iomem' of expression
by kernel test robot
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(a)intel.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(a)samba.org>
:::::: CC: Paul Mackerras <paulus(a)samba.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
fs/zonefs/super.c:1110:6: warning: Variable 'ret' is reassigned a value before the old one has been used.
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 6cf7ccba29dcf39ab27630c383a3844078a6d5cd
commit: 8dcc1a9d90c10fa4143e5c17821082e5e60e46a1 fs: New zonefs file system
date: 5 months ago
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
cppcheck warnings: (new ones prefixed by >>)
>> fs/zonefs/super.c:1110:6: warning: Variable 'ret' is reassigned a value before the old one has been used. [redundantAssignment]
ret = 0;
^
fs/zonefs/super.c:1045:0: note: Variable 'ret' is reassigned a value before the old one has been used.
int ret = -ENOMEM;
^
fs/zonefs/super.c:1110:6: note: Variable 'ret' is reassigned a value before the old one has been used.
ret = 0;
^
fs/zonefs/super.c:1257:6: warning: Variable 'ret' is reassigned a value before the old one has been used. [redundantAssignment]
ret = 0;
^
fs/zonefs/super.c:1210:6: note: Variable 'ret' is reassigned a value before the old one has been used.
ret = -EINVAL;
^
fs/zonefs/super.c:1257:6: note: Variable 'ret' is reassigned a value before the old one has been used.
ret = 0;
^
vim +/ret +1110 fs/zonefs/super.c
1031
1032 /*
1033 * Create a zone group and populate it with zone files.
1034 */
1035 static int zonefs_create_zgroup(struct zonefs_zone_data *zd,
1036 enum zonefs_ztype type)
1037 {
1038 struct super_block *sb = zd->sb;
1039 struct zonefs_sb_info *sbi = ZONEFS_SB(sb);
1040 struct blk_zone *zone, *next, *end;
1041 const char *zgroup_name;
1042 char *file_name;
1043 struct dentry *dir;
1044 unsigned int n = 0;
1045 int ret = -ENOMEM;
1046
1047 /* If the group is empty, there is nothing to do */
1048 if (!zd->nr_zones[type])
1049 return 0;
1050
1051 file_name = kmalloc(ZONEFS_NAME_MAX, GFP_KERNEL);
1052 if (!file_name)
1053 return -ENOMEM;
1054
1055 if (type == ZONEFS_ZTYPE_CNV)
1056 zgroup_name = "cnv";
1057 else
1058 zgroup_name = "seq";
1059
1060 dir = zonefs_create_inode(sb->s_root, zgroup_name, NULL, type);
1061 if (!dir)
1062 goto free;
1063
1064 /*
1065 * The first zone contains the super block: skip it.
1066 */
1067 end = zd->zones + blkdev_nr_zones(sb->s_bdev->bd_disk);
1068 for (zone = &zd->zones[1]; zone < end; zone = next) {
1069
1070 next = zone + 1;
1071 if (zonefs_zone_type(zone) != type)
1072 continue;
1073
1074 /*
1075 * For conventional zones, contiguous zones can be aggregated
1076 * together to form larger files. Note that this overwrites the
1077 * length of the first zone of the set of contiguous zones
1078 * aggregated together. If one offline or read-only zone is
1079 * found, assume that all zones aggregated have the same
1080 * condition.
1081 */
1082 if (type == ZONEFS_ZTYPE_CNV &&
1083 (sbi->s_features & ZONEFS_F_AGGRCNV)) {
1084 for (; next < end; next++) {
1085 if (zonefs_zone_type(next) != type)
1086 break;
1087 zone->len += next->len;
1088 if (next->cond == BLK_ZONE_COND_READONLY &&
1089 zone->cond != BLK_ZONE_COND_OFFLINE)
1090 zone->cond = BLK_ZONE_COND_READONLY;
1091 else if (next->cond == BLK_ZONE_COND_OFFLINE)
1092 zone->cond = BLK_ZONE_COND_OFFLINE;
1093 }
1094 }
1095
1096 /*
1097 * Use the file number within its group as file name.
1098 */
1099 snprintf(file_name, ZONEFS_NAME_MAX - 1, "%u", n);
1100 if (!zonefs_create_inode(dir, file_name, zone, type))
1101 goto free;
1102
1103 n++;
1104 }
1105
1106 zonefs_info(sb, "Zone group \"%s\" has %u file%s\n",
1107 zgroup_name, n, n > 1 ? "s" : "");
1108
1109 sbi->s_nr_files[type] = n;
> 1110 ret = 0;
1111
1112 free:
1113 kfree(file_name);
1114
1115 return ret;
1116 }
1117
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
Re: [PATCH V2] hwmon: add fan/pwm driver for corsair h100i platinum
by kernel test robot
Hi jaap,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on hwmon/hwmon-next]
[also build test ERROR on v5.8-rc5 next-20200717]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/jaap-aarts/hwmon-add-fan-pwm-dri...
base: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next
config: xtensa-randconfig-r011-20200719 (attached as .config)
compiler: xtensa-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=xtensa
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
>> ERROR: modpost: "usb_deregister" [drivers/hwmon/corsair_hydro_i_pro.ko] undefined!
>> ERROR: modpost: "usb_register_driver" [drivers/hwmon/corsair_hydro_i_pro.ko] undefined!
>> ERROR: modpost: "usb_put_dev" [drivers/hwmon/corsair_hydro_i_pro.ko] undefined!
>> ERROR: modpost: "usb_put_intf" [drivers/hwmon/corsair_hydro_i_pro.ko] undefined!
>> ERROR: modpost: "usb_get_intf" [drivers/hwmon/corsair_hydro_i_pro.ko] undefined!
>> ERROR: modpost: "usb_get_dev" [drivers/hwmon/corsair_hydro_i_pro.ko] undefined!
>> ERROR: modpost: "usb_find_common_endpoints" [drivers/hwmon/corsair_hydro_i_pro.ko] undefined!
>> ERROR: modpost: "usb_control_msg" [drivers/hwmon/corsair_hydro_i_pro.ko] undefined!
>> ERROR: modpost: "usb_autopm_put_interface" [drivers/hwmon/corsair_hydro_i_pro.ko] undefined!
>> ERROR: modpost: "usb_autopm_get_interface" [drivers/hwmon/corsair_hydro_i_pro.ko] undefined!
>> ERROR: modpost: "usb_bulk_msg" [drivers/hwmon/corsair_hydro_i_pro.ko] undefined!
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
Re: [PATCH] USB: serial: add support for MaxLinear XR21V1412
by kernel test robot
Hi Angelo,
I love your patch! Perhaps something to improve:
[auto build test WARNING on usb-serial/usb-next]
[also build test WARNING on peter.chen-usb/ci-for-usb-next balbi-usb/testing/next usb/usb-testing v5.8-rc5 next-20200717]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Angelo-Dureghello/USB-serial-add...
base: https://git.kernel.org/pub/scm/linux/kernel/git/johan/usb-serial.git usb-next
config: s390-randconfig-s032-20200719 (attached as .config)
compiler: s390-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
# 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=s390
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
drivers/usb/serial/xr21v1412.c:71:9: sparse: sparse: preprocessor token PARITY_NONE redefined
>> include/uapi/linux/hdlc/ioctl.h:24:9: sparse: this was the original definition
drivers/usb/serial/xr21v1412.c:149:42: sparse: sparse: Using plain integer as NULL pointer
vim +24 include/uapi/linux/hdlc/ioctl.h
eb2a2fd91f7c8a include/linux/hdlc/ioctl.h Krzysztof Halasa 2006-09-26 21
eb2a2fd91f7c8a include/linux/hdlc/ioctl.h Krzysztof Halasa 2006-09-26 22
eb2a2fd91f7c8a include/linux/hdlc/ioctl.h Krzysztof Halasa 2006-09-26 23 #define PARITY_DEFAULT 0 /* Default setting */
eb2a2fd91f7c8a include/linux/hdlc/ioctl.h Krzysztof Halasa 2006-09-26 @24 #define PARITY_NONE 1 /* No parity */
eb2a2fd91f7c8a include/linux/hdlc/ioctl.h Krzysztof Halasa 2006-09-26 25 #define PARITY_CRC16_PR0 2 /* CRC16, initial value 0x0000 */
eb2a2fd91f7c8a include/linux/hdlc/ioctl.h Krzysztof Halasa 2006-09-26 26 #define PARITY_CRC16_PR1 3 /* CRC16, initial value 0xFFFF */
eb2a2fd91f7c8a include/linux/hdlc/ioctl.h Krzysztof Halasa 2006-09-26 27 #define PARITY_CRC16_PR0_CCITT 4 /* CRC16, initial 0x0000, ITU-T version */
eb2a2fd91f7c8a include/linux/hdlc/ioctl.h Krzysztof Halasa 2006-09-26 28 #define PARITY_CRC16_PR1_CCITT 5 /* CRC16, initial 0xFFFF, ITU-T version */
eb2a2fd91f7c8a include/linux/hdlc/ioctl.h Krzysztof Halasa 2006-09-26 29 #define PARITY_CRC32_PR0_CCITT 6 /* CRC32, initial value 0x00000000 */
eb2a2fd91f7c8a include/linux/hdlc/ioctl.h Krzysztof Halasa 2006-09-26 30 #define PARITY_CRC32_PR1_CCITT 7 /* CRC32, initial value 0xFFFFFFFF */
eb2a2fd91f7c8a include/linux/hdlc/ioctl.h Krzysztof Halasa 2006-09-26 31
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[lkp] [+3057 bytes kernel size regression] [i386-tinyconfig] [8f0a240d4c] mm: introduce secretmemfd system call to create "secret" memory areas
by kernel test robot
FYI, we noticed a +3057 bytes kernel size regression due to commit:
commit: 8f0a240d4c7c0d1b3c9fadf3fee023f94fa3c745 (mm: introduce secretmemfd system call to create "secret" memory areas)
https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git secretmemfd/v0
Details as below (size data is obtained by `nm --size-sort vmlinux`):
f56cf703: mmap: make mlock_future_check() global
8f0a240d: mm: introduce secretmemfd system call to create "secret" memory areas
+-------------------------------------+----------+----------+-------+
| symbol | f56cf703 | 8f0a240d | delta |
+-------------------------------------+----------+----------+-------+
| bzImage | 442560 | 444032 | 1472 |
| nm.T.gen_pool_alloc_algo_owner | 0 | 425 | 425 |
| nm.T.__ia32_sys_secretmemfd | 0 | 285 | 285 |
| nm.t.secretmem_fault | 0 | 254 | 254 |
| nm.t.bitmap_clear_ll | 0 | 172 | 172 |
| nm.T.devm_gen_pool_create | 0 | 157 | 157 |
| nm.T.gen_pool_free_owner | 0 | 139 | 139 |
| nm.R.secretmem_fops | 0 | 128 | 128 |
| nm.T.gen_pool_best_fit | 0 | 110 | 110 |
| nm.T.gen_pool_destroy | 0 | 110 | 110 |
| nm.t.secretmem_mmap | 0 | 110 | 110 |
| nm.T.gen_pool_add_owner | 0 | 96 | 96 |
| nm.r.secretmem_super_ops | 0 | 92 | 92 |
| nm.r.secretmem_aops | 0 | 88 | 88 |
| nm.T.gen_pool_fixed_alloc | 0 | 70 | 70 |
| nm.T.gen_pool_first_fit_align | 0 | 59 | 59 |
| nm.T.gen_pool_dma_alloc_algo | 0 | 56 | 56 |
| nm.T.gen_pool_create | 0 | 53 | 53 |
| nm.T.gen_pool_first_fit_order_align | 0 | 52 | 52 |
| nm.r.secretmem_vm_ops | 0 | 52 | 52 |
| nm.T.gen_pool_virt_to_phys | 0 | 43 | 43 |
| nm.T.gen_pool_has_addr | 0 | 42 | 42 |
| nm.T.gen_pool_dma_zalloc_algo | 0 | 40 | 40 |
| nm.t.devm_gen_pool_match | 0 | 39 | 39 |
| nm.t.secretmem_evict_inode | 0 | 37 | 37 |
| nm.d.secretmem_fs | 0 | 36 | 36 |
| nm.T.gen_pool_for_each_chunk | 0 | 33 | 33 |
| nm.T.gen_pool_size | 0 | 30 | 30 |
| nm.t.secretmem_init | 0 | 29 | 29 |
| nm.t.secretmem_init_fs_context | 0 | 29 | 29 |
| nm.T.gen_pool_avail | 0 | 27 | 27 |
| nm.T.gen_pool_dma_alloc_align | 0 | 25 | 25 |
| nm.T.gen_pool_dma_zalloc_align | 0 | 25 | 25 |
| nm.T.gen_pool_get | 0 | 24 | 24 |
| nm.T.gen_pool_first_fit | 0 | 21 | 21 |
| nm.T.gen_pool_set_algo | 0 | 19 | 19 |
| nm.T.gen_pool_dma_alloc | 0 | 14 | 14 |
| nm.T.gen_pool_dma_zalloc | 0 | 14 | 14 |
| nm.t.secretmem_migratepage | 0 | 6 | 6 |
| nm.t.secretmem_freepage | 0 | 5 | 5 |
| nm.t.devm_gen_pool_release | 0 | 4 | 4 |
| nm.b.secretmem_mnt | 0 | 4 | 4 |
| nm.t.secretmem_isolate_page | 0 | 3 | 3 |
+-------------------------------------+----------+----------+-------+
Thanks
2 years, 2 months
[ljones-mfd:for-mfd-next 56/66] drivers/mfd/mfd-core.c:168:1: warning: non-void function does not return a value
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git for-mfd-next
head: c23452e6a319bc607b54a1cce9c74c9033565af3
commit: c509ed7e7d376a7bc3aeb17133c0d117a887916a [56/66] mfd: core: Make a best effort attempt to match devices with the correct of_nodes
config: x86_64-randconfig-r025-20200719 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project ed6b578040a85977026c93bf4188f996148f3218)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout c509ed7e7d376a7bc3aeb17133c0d117a887916a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/mfd/mfd-core.c:168:1: warning: non-void function does not return a value [-Wreturn-type]
}
^
1 warning generated.
vim +168 drivers/mfd/mfd-core.c
119
120 static int mfd_match_of_node_to_dev(struct platform_device *pdev,
121 struct device_node *np,
122 const struct mfd_cell *cell)
123 {
124 #if IS_ENABLED(CONFIG_OF)
125 struct mfd_of_node_entry *of_entry;
126 const __be32 *reg;
127 u64 of_node_addr;
128
129 /* Skip devices 'disabled' by Device Tree */
130 if (!of_device_is_available(np))
131 return -ENODEV;
132
133 /* Skip if OF node has previously been allocated to a device */
134 list_for_each_entry(of_entry, &mfd_of_node_list, list)
135 if (of_entry->np == np)
136 return -EAGAIN;
137
138 if (!cell->use_of_reg)
139 /* No of_reg defined - allocate first free compatible match */
140 goto allocate_of_node;
141
142 /* We only care about each node's first defined address */
143 reg = of_get_address(np, 0, NULL, NULL);
144 if (!reg)
145 /* OF node does not contatin a 'reg' property to match to */
146 return -EAGAIN;
147
148 of_node_addr = of_read_number(reg, of_n_addr_cells(np));
149
150 if (cell->of_reg != of_node_addr)
151 /* No match */
152 return -EAGAIN;
153
154 allocate_of_node:
155 of_entry = kzalloc(sizeof(*of_entry), GFP_KERNEL);
156 if (!of_entry)
157 return -ENOMEM;
158
159 of_entry->dev = &pdev->dev;
160 of_entry->np = np;
161 list_add_tail(&of_entry->list, &mfd_of_node_list);
162
163 pdev->dev.of_node = np;
164 pdev->dev.fwnode = &np->fwnode;
165
166 return 0;
167 #endif
> 168 }
169
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months