[dhowells-fs:rxrpc-rxgk 18/18] net/rxrpc/rxgk.c:1057:3: error: non-void function 'rxgk_decode_ticket' should return a value
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git rxrpc-rxgk
head: 7f002a9b47c3c704b8ccdd1e900b04cd10a44285
commit: 7f002a9b47c3c704b8ccdd1e900b04cd10a44285 [18/18] rxrpc: Implement the yfs-rxgk transport class (security index 6)
config: riscv-randconfig-r031-20200917 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 0ff28fa6a75617d61b1aeea77463d6a1684c3c89)
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 riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
git checkout 7f002a9b47c3c704b8ccdd1e900b04cd10a44285
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from net/rxrpc/rxgk.c:13:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/riscv/include/asm/io.h:148:
include/asm-generic/io.h:556:9: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return inb(addr);
^~~~~~~~~
arch/riscv/include/asm/io.h:54:76: note: expanded from macro 'inb'
#define inb(c) ({ u8 __v; __io_pbr(); __v = readb_cpu((void*)(PCI_IOBASE + (c))); __io_par(__v); __v; })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:87:48: note: expanded from macro 'readb_cpu'
#define readb_cpu(c) ({ u8 __r = __raw_readb(c); __r; })
^
In file included from net/rxrpc/rxgk.c:13:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/riscv/include/asm/io.h:148:
include/asm-generic/io.h:564:9: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return inw(addr);
^~~~~~~~~
arch/riscv/include/asm/io.h:55:76: note: expanded from macro 'inw'
#define inw(c) ({ u16 __v; __io_pbr(); __v = readw_cpu((void*)(PCI_IOBASE + (c))); __io_par(__v); __v; })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:88:76: note: expanded from macro 'readw_cpu'
#define readw_cpu(c) ({ u16 __r = le16_to_cpu((__force __le16)__raw_readw(c)); __r; })
^
include/uapi/linux/byteorder/little_endian.h:36:51: note: expanded from macro '__le16_to_cpu'
#define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
^
In file included from net/rxrpc/rxgk.c:13:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/riscv/include/asm/io.h:148:
include/asm-generic/io.h:572:9: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return inl(addr);
^~~~~~~~~
arch/riscv/include/asm/io.h:56:76: note: expanded from macro 'inl'
#define inl(c) ({ u32 __v; __io_pbr(); __v = readl_cpu((void*)(PCI_IOBASE + (c))); __io_par(__v); __v; })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:89:76: note: expanded from macro 'readl_cpu'
#define readl_cpu(c) ({ u32 __r = le32_to_cpu((__force __le32)__raw_readl(c)); __r; })
^
include/uapi/linux/byteorder/little_endian.h:34:51: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
^
In file included from net/rxrpc/rxgk.c:13:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/riscv/include/asm/io.h:148:
include/asm-generic/io.h:580:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
outb(value, addr);
^~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:58:68: note: expanded from macro 'outb'
#define outb(v,c) ({ __io_pbw(); writeb_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:91:52: note: expanded from macro 'writeb_cpu'
#define writeb_cpu(v, c) ((void)__raw_writeb((v), (c)))
^
In file included from net/rxrpc/rxgk.c:13:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/riscv/include/asm/io.h:148:
include/asm-generic/io.h:588:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
outw(value, addr);
^~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:59:68: note: expanded from macro 'outw'
#define outw(v,c) ({ __io_pbw(); writew_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:92:76: note: expanded from macro 'writew_cpu'
#define writew_cpu(v, c) ((void)__raw_writew((__force u16)cpu_to_le16(v), (c)))
^
In file included from net/rxrpc/rxgk.c:13:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/riscv/include/asm/io.h:148:
include/asm-generic/io.h:596:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
outl(value, addr);
^~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:60:68: note: expanded from macro 'outl'
#define outl(v,c) ({ __io_pbw(); writel_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:93:76: note: expanded from macro 'writel_cpu'
#define writel_cpu(v, c) ((void)__raw_writel((__force u32)cpu_to_le32(v), (c)))
^
In file included from net/rxrpc/rxgk.c:13:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/riscv/include/asm/io.h:148:
include/asm-generic/io.h:1017:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
~~~~~~~~~~ ^
>> net/rxrpc/rxgk.c:1057:3: error: non-void function 'rxgk_decode_ticket' should return a value [-Wreturn-type]
return;
^
>> net/rxrpc/rxgk.c:1059:2: warning: TODO [-W#warnings]
#warning TODO
^
net/rxrpc/rxgk.c:1047:14: warning: unused variable 'key' [-Wunused-variable]
struct key *key;
^
net/rxrpc/rxgk.c:1048:16: warning: unused variable 'p' [-Wunused-variable]
__be32 *xdr, *p;
^
net/rxrpc/rxgk.c:1171:2: warning: TODO [-W#warnings]
#warning TODO
^
11 warnings and 1 error generated.
--
In file included from net/rxrpc/rxgk.c:13:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/riscv/include/asm/io.h:148:
include/asm-generic/io.h:556:9: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return inb(addr);
^~~~~~~~~
arch/riscv/include/asm/io.h:54:76: note: expanded from macro 'inb'
#define inb(c) ({ u8 __v; __io_pbr(); __v = readb_cpu((void*)(PCI_IOBASE + (c))); __io_par(__v); __v; })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:87:48: note: expanded from macro 'readb_cpu'
#define readb_cpu(c) ({ u8 __r = __raw_readb(c); __r; })
^
In file included from net/rxrpc/rxgk.c:13:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/riscv/include/asm/io.h:148:
include/asm-generic/io.h:564:9: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return inw(addr);
^~~~~~~~~
arch/riscv/include/asm/io.h:55:76: note: expanded from macro 'inw'
#define inw(c) ({ u16 __v; __io_pbr(); __v = readw_cpu((void*)(PCI_IOBASE + (c))); __io_par(__v); __v; })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:88:76: note: expanded from macro 'readw_cpu'
#define readw_cpu(c) ({ u16 __r = le16_to_cpu((__force __le16)__raw_readw(c)); __r; })
^
include/uapi/linux/byteorder/little_endian.h:36:51: note: expanded from macro '__le16_to_cpu'
#define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
^
In file included from net/rxrpc/rxgk.c:13:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/riscv/include/asm/io.h:148:
include/asm-generic/io.h:572:9: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return inl(addr);
^~~~~~~~~
arch/riscv/include/asm/io.h:56:76: note: expanded from macro 'inl'
#define inl(c) ({ u32 __v; __io_pbr(); __v = readl_cpu((void*)(PCI_IOBASE + (c))); __io_par(__v); __v; })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:89:76: note: expanded from macro 'readl_cpu'
#define readl_cpu(c) ({ u32 __r = le32_to_cpu((__force __le32)__raw_readl(c)); __r; })
^
include/uapi/linux/byteorder/little_endian.h:34:51: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
^
In file included from net/rxrpc/rxgk.c:13:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/riscv/include/asm/io.h:148:
include/asm-generic/io.h:580:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
outb(value, addr);
^~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:58:68: note: expanded from macro 'outb'
#define outb(v,c) ({ __io_pbw(); writeb_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:91:52: note: expanded from macro 'writeb_cpu'
#define writeb_cpu(v, c) ((void)__raw_writeb((v), (c)))
^
In file included from net/rxrpc/rxgk.c:13:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/riscv/include/asm/io.h:148:
include/asm-generic/io.h:588:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
outw(value, addr);
^~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:59:68: note: expanded from macro 'outw'
#define outw(v,c) ({ __io_pbw(); writew_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:92:76: note: expanded from macro 'writew_cpu'
#define writew_cpu(v, c) ((void)__raw_writew((__force u16)cpu_to_le16(v), (c)))
^
In file included from net/rxrpc/rxgk.c:13:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/riscv/include/asm/io.h:148:
include/asm-generic/io.h:596:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
outl(value, addr);
^~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:60:68: note: expanded from macro 'outl'
#define outl(v,c) ({ __io_pbw(); writel_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:93:76: note: expanded from macro 'writel_cpu'
#define writel_cpu(v, c) ((void)__raw_writel((__force u32)cpu_to_le32(v), (c)))
^
In file included from net/rxrpc/rxgk.c:13:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/riscv/include/asm/io.h:148:
include/asm-generic/io.h:1017:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
~~~~~~~~~~ ^
>> net/rxrpc/rxgk.c:1057:3: error: non-void function 'rxgk_decode_ticket' should return a value [-Wreturn-type]
return;
^
>> net/rxrpc/rxgk.c:1059:2: warning: TODO [-W#warnings]
#warning TODO
^
net/rxrpc/rxgk.c:1048:16: warning: unused variable 'p' [-Wunused-variable]
__be32 *xdr, *p;
^
net/rxrpc/rxgk.c:1047:14: warning: unused variable 'key' [-Wunused-variable]
struct key *key;
^
net/rxrpc/rxgk.c:1171:2: warning: TODO [-W#warnings]
#warning TODO
^
11 warnings and 1 error generated.
# https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/com...
git remote add dhowells-fs https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git
git fetch --no-tags dhowells-fs rxrpc-rxgk
git checkout 7f002a9b47c3c704b8ccdd1e900b04cd10a44285
vim +/rxgk_decode_ticket +1057 net/rxrpc/rxgk.c
1023
1024 /*
1025 * Decode the ticket in a response.
1026 *
1027 * struct RXGK_AuthName {
1028 * afs_int32 kind;
1029 * opaque data<AUTHDATAMAX>;
1030 * opaque display<AUTHPRINTABLEMAX>;
1031 * };
1032 *
1033 * struct RXGK_Token {
1034 * rxgk_key K0;
1035 * RXGK_Level level;
1036 * rxgkTime starttime;
1037 * afs_int32 lifetime;
1038 * afs_int32 bytelife;
1039 * rxgkTime expirationtime;
1040 * struct RXGK_AuthName identities<>;
1041 * };
1042 */
1043 static int rxgk_decode_ticket(struct sk_buff *skb,
1044 unsigned int ticket_offset, unsigned int ticket_len,
1045 u32 *_abort_code)
1046 {
1047 struct key *key;
1048 __be32 *xdr, *p;
1049 int ret;
1050
1051 xdr = kmalloc(ticket_len, GFP_NOFS);
1052 if (!xdr)
1053 return -ENOMEM;
1054
1055 ret = skb_copy_bits(skb, ticket_offset, xdr, ticket_len);
1056 if (ret < 0)
> 1057 return;
1058
> 1059 #warning TODO
1060 }
1061
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
sound/soc/sof/sof-audio.c:375 sof_machine_check() warn: inconsistent indenting
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 4cbffc461ec91287c4cb1d0e27b01b988d0b8fba
commit: 285880a23d105e5d34b311b0c44061dffb07e405 ASoC: SOF: Make creation of machine device from SOF core optional
date: 9 months ago
config: s390-randconfig-m031-20200917 (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
smatch warnings:
sound/soc/sof/sof-audio.c:375 sof_machine_check() warn: inconsistent indenting
sound/soc/sof/sof-audio.c:380 sof_machine_check() warn: ignoring unreachable code.
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 285880a23d105e5d34b311b0c44061dffb07e405
vim +375 sound/soc/sof/sof-audio.c
362
363 /*
364 * SOF Driver enumeration.
365 */
366 int sof_machine_check(struct snd_sof_dev *sdev)
367 {
368 struct snd_sof_pdata *sof_pdata = sdev->pdata;
369 const struct sof_dev_desc *desc = sof_pdata->desc;
370 struct snd_soc_acpi_mach *mach;
371 int ret;
372
373 /* force nocodec mode */
374 #if IS_ENABLED(CONFIG_SND_SOC_SOF_FORCE_NOCODEC_MODE)
> 375 dev_warn(sdev->dev, "Force to use nocodec mode\n");
376 goto nocodec;
377 #endif
378
379 /* find machine */
> 380 snd_sof_machine_select(sdev);
381 if (sof_pdata->machine) {
382 snd_sof_set_mach_params(sof_pdata->machine, sdev->dev);
383 return 0;
384 }
385
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
Re: [PATCH leds v2 38/50] leds: ns2: support OF probing only, forget platdata
by kernel test robot
Hi "Marek,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on pavel-linux-leds/for-next]
[also build test WARNING on next-20200918]
[cannot apply to powerpc/next j.anaszewski-leds/for-next v5.9-rc5]
[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/Marek-Beh-n/Start-moving-parsing...
base: git://git.kernel.org/pub/scm/linux/kernel/git/pavel/linux-leds.git for-next
config: x86_64-randconfig-a011-20200918 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 0ff28fa6a75617d61b1aeea77463d6a1684c3c89)
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
# 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/leds/leds-ns2.c:329:34: warning: unused variable 'of_ns2_leds_match' [-Wunused-const-variable]
static const struct of_device_id of_ns2_leds_match[] = {
^
1 warning generated.
# https://github.com/0day-ci/linux/commit/a01a08dc1961ec2e494b57258544eeb6e...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Marek-Beh-n/Start-moving-parsing-of-linux-default-trigger-to-LED-core-a-cleanup-of-LED-drivers/20200918-063850
git checkout a01a08dc1961ec2e494b57258544eeb6e4d01b87
vim +/of_ns2_leds_match +329 drivers/leds/leds-ns2.c
72052fcc102638 Simon Guinot 2012-10-17 328
72052fcc102638 Simon Guinot 2012-10-17 @329 static const struct of_device_id of_ns2_leds_match[] = {
72052fcc102638 Simon Guinot 2012-10-17 330 { .compatible = "lacie,ns2-leds", },
72052fcc102638 Simon Guinot 2012-10-17 331 {},
72052fcc102638 Simon Guinot 2012-10-17 332 };
98f9cc7ffcf2cb Luis de Bethencourt 2015-09-01 333 MODULE_DEVICE_TABLE(of, of_ns2_leds_match);
72052fcc102638 Simon Guinot 2012-10-17 334
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
Re: [PATCH v3] ptp: mark symbols static where possible
by kernel test robot
Hi Herrington,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on linus/master]
[also build test WARNING on v5.9-rc5 next-20200918]
[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/Herrington/ptp-mark-symbols-stat...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 10b82d5176488acee2820e5a2cf0f2ec5c3488b6
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-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=arc
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 >>):
In file included from drivers/net/ethernet/aquantia/atlantic/aq_ptp.c:12:
>> include/linux/ptp_clock_kernel.h:310:34: warning: 'struct pci_dev' declared inside parameter list will not be visible outside of this definition or declaration
310 | void pch_ch_control_write(struct pci_dev *pdev, u32 val);
| ^~~~~~~
include/linux/ptp_clock_kernel.h:311:30: warning: 'struct pci_dev' declared inside parameter list will not be visible outside of this definition or declaration
311 | u32 pch_ch_event_read(struct pci_dev *pdev);
| ^~~~~~~
include/linux/ptp_clock_kernel.h:312:32: warning: 'struct pci_dev' declared inside parameter list will not be visible outside of this definition or declaration
312 | void pch_ch_event_write(struct pci_dev *pdev, u32 val);
| ^~~~~~~
include/linux/ptp_clock_kernel.h:313:33: warning: 'struct pci_dev' declared inside parameter list will not be visible outside of this definition or declaration
313 | u32 pch_src_uuid_lo_read(struct pci_dev *pdev);
| ^~~~~~~
include/linux/ptp_clock_kernel.h:314:33: warning: 'struct pci_dev' declared inside parameter list will not be visible outside of this definition or declaration
314 | u32 pch_src_uuid_hi_read(struct pci_dev *pdev);
| ^~~~~~~
include/linux/ptp_clock_kernel.h:315:29: warning: 'struct pci_dev' declared inside parameter list will not be visible outside of this definition or declaration
315 | u64 pch_rx_snap_read(struct pci_dev *pdev);
| ^~~~~~~
include/linux/ptp_clock_kernel.h:316:29: warning: 'struct pci_dev' declared inside parameter list will not be visible outside of this definition or declaration
316 | u64 pch_tx_snap_read(struct pci_dev *pdev);
| ^~~~~~~
include/linux/ptp_clock_kernel.h:317:46: warning: 'struct pci_dev' declared inside parameter list will not be visible outside of this definition or declaration
317 | int pch_set_station_address(u8 *addr, struct pci_dev *pdev);
| ^~~~~~~
# https://github.com/0day-ci/linux/commit/d5fd7587ec0ce30118654a4b5c38a41a1...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Herrington/ptp-mark-symbols-static-where-possible/20200918-181139
git checkout d5fd7587ec0ce30118654a4b5c38a41a19ea5920
vim +310 include/linux/ptp_clock_kernel.h
309
> 310 void pch_ch_control_write(struct pci_dev *pdev, u32 val);
311 u32 pch_ch_event_read(struct pci_dev *pdev);
312 void pch_ch_event_write(struct pci_dev *pdev, u32 val);
313 u32 pch_src_uuid_lo_read(struct pci_dev *pdev);
314 u32 pch_src_uuid_hi_read(struct pci_dev *pdev);
315 u64 pch_rx_snap_read(struct pci_dev *pdev);
316 u64 pch_tx_snap_read(struct pci_dev *pdev);
317 int pch_set_station_address(u8 *addr, struct pci_dev *pdev);
318
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
[hverkuil-media:tegrav5 17/18] drivers/media/i2c/.tmp_gl_tc358840.o:undefined reference to `__udivdi3'
by kernel test robot
tree: git://linuxtv.org/hverkuil/media_tree.git tegrav5
head: 3ab57682384cccc052812543e535ba545b50d3c0
commit: 2c516ed27b465084be43e9f459e19c80ad729d26 [17/18] tc358840: various fixes
config: microblaze-allyesconfig (attached as .config)
compiler: microblaze-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
git checkout 2c516ed27b465084be43e9f459e19c80ad729d26
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=microblaze
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 >>):
microblaze-linux-ld: drivers/media/i2c/tc358840.o: in function `tc358840_get_detected_timings':
>> drivers/media/i2c/.tmp_gl_tc358840.o:(.text+0x6324): undefined reference to `__udivdi3'
microblaze-linux-ld: drivers/media/test-drivers/vidtv/vidtv_s302m.o: in function `vidtv_s302m_encode':
drivers/media/test-drivers/vidtv/vidtv_s302m.o:(.text+0x534): undefined reference to `__udivdi3'
microblaze-linux-ld: drivers/media/test-drivers/vidtv/vidtv_mux.o: in function `vidtv_mux_tick':
drivers/media/test-drivers/vidtv/vidtv_mux.o:(.text+0xcd0): undefined reference to `__udivdi3'
microblaze-linux-ld: drivers/media/test-drivers/vidtv/vidtv_mux.o:(.text+0xd00): undefined reference to `__udivdi3'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
[rdma:wip/jgg-for-next 112/113] drivers/infiniband/core/uverbs_std_types_device.c:169:54: error: 'IB_SPEED_NDR' undeclared; did you mean
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git wip/jgg-for-next
head: d677f424c78cf2ae42e97127fa1a4077476da781
commit: 2a49a50546427ee595cac0916295001d2384f416 [112/113] RDMA: Fix link active_speed size
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-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 2a49a50546427ee595cac0916295001d2384f416
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
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 >>):
In file included from include/rdma/uverbs_types.h:9,
from include/rdma/uverbs_std_types.h:9,
from drivers/infiniband/core/uverbs_std_types_device.c:6:
drivers/infiniband/core/uverbs_std_types_device.c: In function 'copy_port_attr_to_resp':
>> drivers/infiniband/core/uverbs_std_types_device.c:169:54: error: 'IB_SPEED_NDR' undeclared (first use in this function); did you mean 'IB_SPEED_HDR'?
169 | resp->active_speed = min_t(u16, attr->active_speed, IB_SPEED_NDR);
| ^~~~~~~~~~~~
include/linux/kernel.h:850:40: note: in definition of macro '__typecheck'
850 | (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
| ^
include/linux/kernel.h:874:24: note: in expansion of macro '__safe_cmp'
874 | __builtin_choose_expr(__safe_cmp(x, y), \
| ^~~~~~~~~~
include/linux/kernel.h:942:27: note: in expansion of macro '__careful_cmp'
942 | #define min_t(type, x, y) __careful_cmp((type)(x), (type)(y), <)
| ^~~~~~~~~~~~~
drivers/infiniband/core/uverbs_std_types_device.c:169:23: note: in expansion of macro 'min_t'
169 | resp->active_speed = min_t(u16, attr->active_speed, IB_SPEED_NDR);
| ^~~~~
drivers/infiniband/core/uverbs_std_types_device.c:169:54: note: each undeclared identifier is reported only once for each function it appears in
169 | resp->active_speed = min_t(u16, attr->active_speed, IB_SPEED_NDR);
| ^~~~~~~~~~~~
include/linux/kernel.h:850:40: note: in definition of macro '__typecheck'
850 | (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
| ^
include/linux/kernel.h:874:24: note: in expansion of macro '__safe_cmp'
874 | __builtin_choose_expr(__safe_cmp(x, y), \
| ^~~~~~~~~~
include/linux/kernel.h:942:27: note: in expansion of macro '__careful_cmp'
942 | #define min_t(type, x, y) __careful_cmp((type)(x), (type)(y), <)
| ^~~~~~~~~~~~~
drivers/infiniband/core/uverbs_std_types_device.c:169:23: note: in expansion of macro 'min_t'
169 | resp->active_speed = min_t(u16, attr->active_speed, IB_SPEED_NDR);
| ^~~~~
>> include/linux/kernel.h:874:2: error: first argument to '__builtin_choose_expr' not a constant
874 | __builtin_choose_expr(__safe_cmp(x, y), \
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/kernel.h:942:27: note: in expansion of macro '__careful_cmp'
942 | #define min_t(type, x, y) __careful_cmp((type)(x), (type)(y), <)
| ^~~~~~~~~~~~~
drivers/infiniband/core/uverbs_std_types_device.c:169:23: note: in expansion of macro 'min_t'
169 | resp->active_speed = min_t(u16, attr->active_speed, IB_SPEED_NDR);
| ^~~~~
# https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git/commit/?id=...
git remote add rdma https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git
git fetch --no-tags rdma wip/jgg-for-next
git checkout 2a49a50546427ee595cac0916295001d2384f416
vim +169 drivers/infiniband/core/uverbs_std_types_device.c
> 6 #include <rdma/uverbs_std_types.h>
7 #include "rdma_core.h"
8 #include "uverbs.h"
9 #include <rdma/uverbs_ioctl.h>
10 #include <rdma/opa_addr.h>
11
12 /*
13 * This ioctl method allows calling any defined write or write_ex
14 * handler. This essentially replaces the hdr/ex_hdr system with the ioctl
15 * marshalling, and brings the non-ex path into the same marshalling as the ex
16 * path.
17 */
18 static int UVERBS_HANDLER(UVERBS_METHOD_INVOKE_WRITE)(
19 struct uverbs_attr_bundle *attrs)
20 {
21 struct uverbs_api *uapi = attrs->ufile->device->uapi;
22 const struct uverbs_api_write_method *method_elm;
23 u32 cmd;
24 int rc;
25
26 rc = uverbs_get_const(&cmd, attrs, UVERBS_ATTR_WRITE_CMD);
27 if (rc)
28 return rc;
29
30 method_elm = uapi_get_method(uapi, cmd);
31 if (IS_ERR(method_elm))
32 return PTR_ERR(method_elm);
33
34 uverbs_fill_udata(attrs, &attrs->ucore, UVERBS_ATTR_CORE_IN,
35 UVERBS_ATTR_CORE_OUT);
36
37 if (attrs->ucore.inlen < method_elm->req_size ||
38 attrs->ucore.outlen < method_elm->resp_size)
39 return -ENOSPC;
40
41 attrs->uobject = NULL;
42 rc = method_elm->handler(attrs);
43 if (attrs->uobject)
44 uverbs_finalize_object(attrs->uobject, UVERBS_ACCESS_NEW, true,
45 !rc, attrs);
46 return rc;
47 }
48
49 DECLARE_UVERBS_NAMED_METHOD(UVERBS_METHOD_INVOKE_WRITE,
50 UVERBS_ATTR_CONST_IN(UVERBS_ATTR_WRITE_CMD,
51 enum ib_uverbs_write_cmds,
52 UA_MANDATORY),
53 UVERBS_ATTR_PTR_IN(UVERBS_ATTR_CORE_IN,
54 UVERBS_ATTR_MIN_SIZE(sizeof(u32)),
55 UA_OPTIONAL),
56 UVERBS_ATTR_PTR_OUT(UVERBS_ATTR_CORE_OUT,
57 UVERBS_ATTR_MIN_SIZE(0),
58 UA_OPTIONAL),
59 UVERBS_ATTR_UHW());
60
61 static uint32_t *
62 gather_objects_handle(struct ib_uverbs_file *ufile,
63 const struct uverbs_api_object *uapi_object,
64 struct uverbs_attr_bundle *attrs,
65 ssize_t out_len,
66 u64 *total)
67 {
68 u64 max_count = out_len / sizeof(u32);
69 struct ib_uobject *obj;
70 u64 count = 0;
71 u32 *handles;
72
73 /* Allocated memory that cannot page out where we gather
74 * all object ids under a spin_lock.
75 */
76 handles = uverbs_zalloc(attrs, out_len);
77 if (IS_ERR(handles))
78 return handles;
79
80 spin_lock_irq(&ufile->uobjects_lock);
81 list_for_each_entry(obj, &ufile->uobjects, list) {
82 u32 obj_id = obj->id;
83
84 if (obj->uapi_object != uapi_object)
85 continue;
86
87 if (count >= max_count)
88 break;
89
90 handles[count] = obj_id;
91 count++;
92 }
93 spin_unlock_irq(&ufile->uobjects_lock);
94
95 *total = count;
96 return handles;
97 }
98
99 static int UVERBS_HANDLER(UVERBS_METHOD_INFO_HANDLES)(
100 struct uverbs_attr_bundle *attrs)
101 {
102 const struct uverbs_api_object *uapi_object;
103 ssize_t out_len;
104 u64 total = 0;
105 u16 object_id;
106 u32 *handles;
107 int ret;
108
109 out_len = uverbs_attr_get_len(attrs, UVERBS_ATTR_INFO_HANDLES_LIST);
110 if (out_len <= 0 || (out_len % sizeof(u32) != 0))
111 return -EINVAL;
112
113 ret = uverbs_get_const(&object_id, attrs, UVERBS_ATTR_INFO_OBJECT_ID);
114 if (ret)
115 return ret;
116
117 uapi_object = uapi_get_object(attrs->ufile->device->uapi, object_id);
118 if (!uapi_object)
119 return -EINVAL;
120
121 handles = gather_objects_handle(attrs->ufile, uapi_object, attrs,
122 out_len, &total);
123 if (IS_ERR(handles))
124 return PTR_ERR(handles);
125
126 ret = uverbs_copy_to(attrs, UVERBS_ATTR_INFO_HANDLES_LIST, handles,
127 sizeof(u32) * total);
128 if (ret)
129 goto err;
130
131 ret = uverbs_copy_to(attrs, UVERBS_ATTR_INFO_TOTAL_HANDLES, &total,
132 sizeof(total));
133 err:
134 return ret;
135 }
136
137 void copy_port_attr_to_resp(struct ib_port_attr *attr,
138 struct ib_uverbs_query_port_resp *resp,
139 struct ib_device *ib_dev, u8 port_num)
140 {
141 resp->state = attr->state;
142 resp->max_mtu = attr->max_mtu;
143 resp->active_mtu = attr->active_mtu;
144 resp->gid_tbl_len = attr->gid_tbl_len;
145 resp->port_cap_flags = make_port_cap_flags(attr);
146 resp->max_msg_sz = attr->max_msg_sz;
147 resp->bad_pkey_cntr = attr->bad_pkey_cntr;
148 resp->qkey_viol_cntr = attr->qkey_viol_cntr;
149 resp->pkey_tbl_len = attr->pkey_tbl_len;
150
151 if (rdma_is_grh_required(ib_dev, port_num))
152 resp->flags |= IB_UVERBS_QPF_GRH_REQUIRED;
153
154 if (rdma_cap_opa_ah(ib_dev, port_num)) {
155 resp->lid = OPA_TO_IB_UCAST_LID(attr->lid);
156 resp->sm_lid = OPA_TO_IB_UCAST_LID(attr->sm_lid);
157 } else {
158 resp->lid = ib_lid_cpu16(attr->lid);
159 resp->sm_lid = ib_lid_cpu16(attr->sm_lid);
160 }
161
162 resp->lmc = attr->lmc;
163 resp->max_vl_num = attr->max_vl_num;
164 resp->sm_sl = attr->sm_sl;
165 resp->subnet_timeout = attr->subnet_timeout;
166 resp->init_type_reply = attr->init_type_reply;
167 resp->active_width = attr->active_width;
168 /* This ABI needs to be extended to provide any speed more than IB_SPEED_NDR */
> 169 resp->active_speed = min_t(u16, attr->active_speed, IB_SPEED_NDR);
170 resp->phys_state = attr->phys_state;
171 resp->link_layer = rdma_port_get_link_layer(ib_dev, port_num);
172 }
173
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
[linux-nvdimm:libnvdimm-fixes 1/2] drivers/md/dm-table.c:866: undefined reference to `dax_read_lock'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm.git libnvdimm-fixes
head: 3305ce9e90c8f1fefdf75acfbb814574c12bfcc5
commit: ec5f196ad972cd740bcbe6ef9c89a8a92d54ba44 [1/2] dm: Call proper helper to determine dax support
config: openrisc-randconfig-r022-20200918 (attached as .config)
compiler: or1k-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
git checkout ec5f196ad972cd740bcbe6ef9c89a8a92d54ba44
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=openrisc
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 >>):
or1k-linux-ld: drivers/md/dm-table.o: in function `device_supports_dax':
>> drivers/md/dm-table.c:866: undefined reference to `dax_read_lock'
drivers/md/dm-table.c:866:(.text+0x84c): relocation truncated to fit: R_OR1K_INSN_REL_26 against undefined symbol `dax_read_lock'
>> or1k-linux-ld: drivers/md/dm-table.c:868: undefined reference to `dax_read_unlock'
drivers/md/dm-table.c:868:(.text+0x854): relocation truncated to fit: R_OR1K_INSN_REL_26 against undefined symbol `dax_read_unlock'
# https://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm.git/commit/...
git remote add linux-nvdimm https://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm.git
git fetch --no-tags linux-nvdimm libnvdimm-fixes
git checkout ec5f196ad972cd740bcbe6ef9c89a8a92d54ba44
vim +866 drivers/md/dm-table.c
858
859 /* validate the dax capability of the target device span */
860 int device_supports_dax(struct dm_target *ti, struct dm_dev *dev,
861 sector_t start, sector_t len, void *data)
862 {
863 int blocksize = *(int *) data, id;
864 bool rc;
865
> 866 id = dax_read_lock();
867 rc = dax_supported(dev->dax_dev, dev->bdev, blocksize, start, len);
> 868 dax_read_unlock(id);
869
870 return rc;
871 }
872
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
[linux-next:master 1797/8629] drivers/tty/ipwireless/hardware.c:872:43: sparse: sparse: incorrect type in initializer (different base types)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 860461e4fcaa76200d2d1a53523e0ff7be92e6e8
commit: 98c2922ec8f0601321428be8c59ae1df255478d1 [1797/8629] ARM: s3c24xx: simplify mach/io.h
config: arm-randconfig-s031-20200917 (attached as .config)
compiler: arm-linux-gnueabi-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-201-g24bdaac6-dirty
git checkout 98c2922ec8f0601321428be8c59ae1df255478d1
# 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=arm
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/tty/ipwireless/hardware.c:431:25: sparse: sparse: cast from restricted __le16
drivers/tty/ipwireless/hardware.c:445:25: sparse: sparse: cast from restricted __le16
>> drivers/tty/ipwireless/hardware.c:872:43: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __le16 [usertype] raw_data @@ got unsigned short [usertype] __v @@
drivers/tty/ipwireless/hardware.c:872:43: sparse: expected restricted __le16 [usertype] raw_data
>> drivers/tty/ipwireless/hardware.c:872:43: sparse: got unsigned short [usertype] __v
drivers/tty/ipwireless/hardware.c:889:43: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __le16 [usertype] raw_data @@ got unsigned short [usertype] __v @@
drivers/tty/ipwireless/hardware.c:889:43: sparse: expected restricted __le16 [usertype] raw_data
drivers/tty/ipwireless/hardware.c:889:43: sparse: got unsigned short [usertype] __v
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 98c2922ec8f0601321428be8c59ae1df255478d1
vim +872 drivers/tty/ipwireless/hardware.c
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 850
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 851 /*
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 852 * Retrieve a packet from the IPW hardware.
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 853 */
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 854 static void do_receive_packet(struct ipw_hardware *hw)
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 855 {
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 856 unsigned len;
d4c0deb7009217 drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-07-28 857 unsigned i;
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 858 unsigned char pkt[LL_MTU_MAX];
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 859
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 860 start_timing();
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 861
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 862 if (hw->hw_version == HW_VERSION_1) {
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 863 len = inw(hw->base_port + IODRR);
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 864 if (len > hw->ll_mtu) {
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 865 printk(KERN_INFO IPWIRELESS_PCCARD_NAME
622e713e8e207a drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-07-28 866 ": received a packet of %u bytes - longer than the MTU!\n", len);
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 867 outw(DCR_RXDONE | DCR_RXRESET, hw->base_port + IODCR);
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 868 return;
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 869 }
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 870
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 871 for (i = 0; i < len; i += 2) {
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 @872 __le16 raw_data = inw(hw->base_port + IODRR);
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 873 unsigned short data = le16_to_cpu(raw_data);
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 874
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 875 pkt[i] = (unsigned char) data;
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 876 pkt[i + 1] = (unsigned char) (data >> 8);
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 877 }
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 878 } else {
2e713165f892c8 drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-07-28 879 len = inw(hw->base_port);
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 880 if (len > hw->ll_mtu) {
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 881 printk(KERN_INFO IPWIRELESS_PCCARD_NAME
622e713e8e207a drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-07-28 882 ": received a packet of %u bytes - longer than the MTU!\n", len);
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 883 writew(MEMRX_PCINTACKK,
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 884 &hw->memory_info_regs->memreg_pc_interrupt_ack);
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 885 return;
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 886 }
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 887
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 888 for (i = 0; i < len; i += 2) {
2e713165f892c8 drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-07-28 889 __le16 raw_data = inw(hw->base_port);
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 890 unsigned short data = le16_to_cpu(raw_data);
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 891
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 892 pkt[i] = (unsigned char) data;
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 893 pkt[i + 1] = (unsigned char) (data >> 8);
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 894 }
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 895
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 896 while ((i & 3) != 2) {
2e713165f892c8 drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-07-28 897 inw(hw->base_port);
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 898 i += 2;
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 899 }
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 900 }
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 901
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 902 acknowledge_data_read(hw);
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 903
d54c2752f6bb6c drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-07-28 904 swap_packet_bitfield_from_le(pkt);
d54c2752f6bb6c drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-07-28 905
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 906 if (ipwireless_debug)
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 907 dump_data_bytes("recv", pkt, len);
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 908
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 909 handle_received_packet(hw, (union nl_packet *) pkt, len);
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 910
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 911 end_read_timing(len);
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 912 }
099dc4fb62653f drivers/char/pcmcia/ipwireless/hardware.c David Sterba 2008-02-07 913
:::::: The code at line 872 was first introduced by commit
:::::: 099dc4fb62653f6019d78db55fba7a18ef02d65b ipwireless: driver for PC Card 3G/UMTS modem
:::::: TO: David Sterba <dsterba(a)suse.cz>
:::::: CC: Linus Torvalds <torvalds(a)woody.linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
Re: [PATCH 2/2] arm64/mm: Enable color zero pages
by kernel test robot
Hi Gavin,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on arm64/for-next/core]
[also build test ERROR on soc/for-next arm/for-next kvmarm/next v5.9-rc5 next-20200917]
[cannot apply to xlnx/master]
[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/Gavin-Shan/arm64-mm-Enable-color...
base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core
config: arm64-randconfig-r002-20200917 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 0ff28fa6a75617d61b1aeea77463d6a1684c3c89)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
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 >>):
>> arch/arm64/kernel/cacheinfo.c:62:8: error: implicit declaration of function 'FIELD_PREP' [-Werror,-Wimplicit-function-declaration]
val = FIELD_PREP(CSSELR_LEVEL_MASK, 0) |
^
>> arch/arm64/kernel/cacheinfo.c:68:16: error: implicit declaration of function 'FIELD_GET' [-Werror,-Wimplicit-function-declaration]
size = (1 << FIELD_GET(CCSIDR_64_LS_MASK, val)) *
^
arch/arm64/kernel/cacheinfo.c:68:16: note: did you mean 'FIELD_PREP'?
arch/arm64/kernel/cacheinfo.c:62:8: note: 'FIELD_PREP' declared here
val = FIELD_PREP(CSSELR_LEVEL_MASK, 0) |
^
arch/arm64/kernel/cacheinfo.c:72:16: error: implicit declaration of function 'FIELD_GET' [-Werror,-Wimplicit-function-declaration]
size = (1 << FIELD_GET(CCSIDR_32_LS_MASK, val)) *
^
3 errors generated.
# https://github.com/0day-ci/linux/commit/ab02baff46e4889747f134626f5cd3566...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Gavin-Shan/arm64-mm-Enable-color-zero-pages/20200916-112710
git checkout ab02baff46e4889747f134626f5cd3566fd90582
vim +/FIELD_PREP +62 arch/arm64/kernel/cacheinfo.c
45
46 int cache_total_size(void)
47 {
48 unsigned int ctype, size;
49 unsigned long val;
50 bool ccidx = false;
51
52 /* Check first level cache is supported */
53 ctype = get_cache_type(1);
54 if (ctype == CACHE_TYPE_NOCACHE)
55 return 0;
56
57 /* ARMv8.3-CCIDX is supported or not */
58 val = read_sanitised_ftr_reg(SYS_ID_MMFR4_EL1);
59 ccidx = !!(val & (UL(0xF) << ID_AA64MMFR2_CCIDX_SHIFT));
60
61 /* Retrieve the information and calculate the total size */
> 62 val = FIELD_PREP(CSSELR_LEVEL_MASK, 0) |
63 FIELD_PREP(CSSERL_IND_MASK, 0);
64 write_sysreg(val, csselr_el1);
65
66 val = read_sysreg(ccsidr_el1);
67 if (ccidx) {
> 68 size = (1 << FIELD_GET(CCSIDR_64_LS_MASK, val)) *
69 (FIELD_GET(CCSIDR_64_ASSOC_MASK, val) + 1) *
70 (FIELD_GET(CCSIDR_64_SET_MASK, val) + 1);
71 } else {
72 size = (1 << FIELD_GET(CCSIDR_32_LS_MASK, val)) *
73 (FIELD_GET(CCSIDR_32_ASSOC_MASK, val) + 1) *
74 (FIELD_GET(CCSIDR_32_SET_MASK, val) + 1);
75 }
76
77 return size;
78 }
79
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years