tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: aae703b02f92bde9264366c545e87cec451de471 commit: 9cc205e3c17d5716da7ebb7fa0c985555e95d009 RISC-V: Make port I/O string accessors actually work date: 5 days ago config: riscv-randconfig-r024-20221019 compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920) 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 # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9cc205e3c17d5716da7ebb7fa0c985555e95d009 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 9cc205e3c17d5716da7ebb7fa0c985555e95d009 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash drivers/iio/adc/ drivers/parport/ kernel/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/riscv/include/asm/io.h:136: include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:743:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from drivers/parport/parport_pc.c:51: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/riscv/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/riscv/include/asm/io.h:136: include/asm-generic/io.h:751:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from drivers/parport/parport_pc.c:51: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/riscv/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/riscv/include/asm/io.h:136: include/asm-generic/io.h:759:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from drivers/parport/parport_pc.c:51: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/riscv/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/riscv/include/asm/io.h:136: include/asm-generic/io.h:768:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from drivers/parport/parport_pc.c:51: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/riscv/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/riscv/include/asm/io.h:136: include/asm-generic/io.h:777:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from drivers/parport/parport_pc.c:51: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/riscv/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/riscv/include/asm/io.h:136: include/asm-generic/io.h:786:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from drivers/parport/parport_pc.c:51: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/riscv/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/riscv/include/asm/io.h:136: include/asm-generic/io.h:1134:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ >> drivers/parport/parport_pc.c:278:6: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insl(EPPDATA(port), buf, 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ drivers/parport/parport_pc.c:280:6: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(EPPDATA(port), buf, 16); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ drivers/parport/parport_pc.c:303:4: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insl(EPPDATA(port), buf, (length >> 2)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ drivers/parport/parport_pc.c:305:4: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(EPPDATA(port), buf, length); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ drivers/parport/parport_pc.c:332:4: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] outsl(EPPDATA(port), buf, (length >> 2)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ drivers/parport/parport_pc.c:334:4: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] outsb(EPPDATA(port), buf, length); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ drivers/parport/parport_pc.c:359:3: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(EPPADDR(port), buf, length); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ drivers/parport/parport_pc.c:385:3: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] outsb(EPPADDR(port), buf, length); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ 21 warnings generated. -- In file included from drivers/iio/adc/ad7606_par.c:13: In file included from include/linux/io.h:13: In file included from arch/riscv/include/asm/io.h:136: include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from drivers/iio/adc/ad7606_par.c:13: In file included from include/linux/io.h:13: In file included from arch/riscv/include/asm/io.h:136: include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from drivers/iio/adc/ad7606_par.c:13: In file included from include/linux/io.h:13: In file included from arch/riscv/include/asm/io.h:136: include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:743:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from drivers/iio/adc/ad7606_par.c:13: In file included from include/linux/io.h:13: In file included from arch/riscv/include/asm/io.h:136: include/asm-generic/io.h:751:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from drivers/iio/adc/ad7606_par.c:13: In file included from include/linux/io.h:13: In file included from arch/riscv/include/asm/io.h:136: include/asm-generic/io.h:759:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from drivers/iio/adc/ad7606_par.c:13: In file included from include/linux/io.h:13: In file included from arch/riscv/include/asm/io.h:136: include/asm-generic/io.h:768:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] outsb(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from drivers/iio/adc/ad7606_par.c:13: In file included from include/linux/io.h:13: In file included from arch/riscv/include/asm/io.h:136: include/asm-generic/io.h:777:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] outsw(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from drivers/iio/adc/ad7606_par.c:13: In file included from include/linux/io.h:13: In file included from arch/riscv/include/asm/io.h:136: include/asm-generic/io.h:786:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] outsl(addr, buffer, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ In file included from drivers/iio/adc/ad7606_par.c:13: In file included from include/linux/io.h:13: In file included from arch/riscv/include/asm/io.h:136: include/asm-generic/io.h:1134:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ >> drivers/iio/adc/ad7606_par.c:24:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insw((unsigned long)st->base_address, buf, count); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ drivers/iio/adc/ad7606_par.c:39:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] insb((unsigned long)st->base_address, buf, count * 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) ~~~~~~~~~~ ^ 15 warnings generated. vim +278 drivers/parport/parport_pc.c ^1da177e4c3f4152 Linus Torvalds 2005-04-16 257 ^1da177e4c3f4152 Linus Torvalds 2005-04-16 258 #ifdef CONFIG_PARPORT_1284 ^1da177e4c3f4152 Linus Torvalds 2005-04-16 259 static size_t parport_pc_epp_read_data(struct parport *port, void *buf, ^1da177e4c3f4152 Linus Torvalds 2005-04-16 260 size_t length, int flags) ^1da177e4c3f4152 Linus Torvalds 2005-04-16 261 { ^1da177e4c3f4152 Linus Torvalds 2005-04-16 262 size_t got = 0; ^1da177e4c3f4152 Linus Torvalds 2005-04-16 263 ^1da177e4c3f4152 Linus Torvalds 2005-04-16 264 if (flags & PARPORT_W91284PIC) { ^1da177e4c3f4152 Linus Torvalds 2005-04-16 265 unsigned char status; ^1da177e4c3f4152 Linus Torvalds 2005-04-16 266 size_t left = length; ^1da177e4c3f4152 Linus Torvalds 2005-04-16 267 ^1da177e4c3f4152 Linus Torvalds 2005-04-16 268 /* use knowledge about data lines..: ^1da177e4c3f4152 Linus Torvalds 2005-04-16 269 * nFault is 0 if there is at least 1 byte in the Warp's FIFO ^1da177e4c3f4152 Linus Torvalds 2005-04-16 270 * pError is 1 if there are 16 bytes in the Warp's FIFO ^1da177e4c3f4152 Linus Torvalds 2005-04-16 271 */ ^1da177e4c3f4152 Linus Torvalds 2005-04-16 272 status = inb(STATUS(port)); ^1da177e4c3f4152 Linus Torvalds 2005-04-16 273 3aeda9bc95d06430 Alan Cox 2009-06-11 274 while (!(status & 0x08) && got < length) { 3aeda9bc95d06430 Alan Cox 2009-06-11 275 if (left >= 16 && (status & 0x20) && !(status & 0x08)) { ^1da177e4c3f4152 Linus Torvalds 2005-04-16 276 /* can grab 16 bytes from warp fifo */ 3aeda9bc95d06430 Alan Cox 2009-06-11 277 if (!((long)buf & 0x03)) ^1da177e4c3f4152 Linus Torvalds 2005-04-16 @278 insl(EPPDATA(port), buf, 4); 3aeda9bc95d06430 Alan Cox 2009-06-11 279 else ^1da177e4c3f4152 Linus Torvalds 2005-04-16 280 insb(EPPDATA(port), buf, 16); ^1da177e4c3f4152 Linus Torvalds 2005-04-16 281 buf += 16; ^1da177e4c3f4152 Linus Torvalds 2005-04-16 282 got += 16; ^1da177e4c3f4152 Linus Torvalds 2005-04-16 283 left -= 16; ^1da177e4c3f4152 Linus Torvalds 2005-04-16 284 } else { ^1da177e4c3f4152 Linus Torvalds 2005-04-16 285 /* grab single byte from the warp fifo */ ^1da177e4c3f4152 Linus Torvalds 2005-04-16 286 *((char *)buf) = inb(EPPDATA(port)); ^1da177e4c3f4152 Linus Torvalds 2005-04-16 287 buf++; ^1da177e4c3f4152 Linus Torvalds 2005-04-16 288 got++; ^1da177e4c3f4152 Linus Torvalds 2005-04-16 289 left--; ^1da177e4c3f4152 Linus Torvalds 2005-04-16 290 } ^1da177e4c3f4152 Linus Torvalds 2005-04-16 291 status = inb(STATUS(port)); ^1da177e4c3f4152 Linus Torvalds 2005-04-16 292 if (status & 0x01) { ^1da177e4c3f4152 Linus Torvalds 2005-04-16 293 /* EPP timeout should never occur... */ aa3d6e7c49e3b480 Joe Perches 2020-04-03 294 printk(KERN_DEBUG "%s: EPP timeout occurred while talking to w91284pic (should not have done)\n", aa3d6e7c49e3b480 Joe Perches 2020-04-03 295 port->name); ^1da177e4c3f4152 Linus Torvalds 2005-04-16 296 clear_epp_timeout(port); ^1da177e4c3f4152 Linus Torvalds 2005-04-16 297 } ^1da177e4c3f4152 Linus Torvalds 2005-04-16 298 } ^1da177e4c3f4152 Linus Torvalds 2005-04-16 299 return got; ^1da177e4c3f4152 Linus Torvalds 2005-04-16 300 } ^1da177e4c3f4152 Linus Torvalds 2005-04-16 301 if ((flags & PARPORT_EPP_FAST) && (length > 1)) { 3aeda9bc95d06430 Alan Cox 2009-06-11 302 if (!(((long)buf | length) & 0x03)) ^1da177e4c3f4152 Linus Torvalds 2005-04-16 303 insl(EPPDATA(port), buf, (length >> 2)); 3aeda9bc95d06430 Alan Cox 2009-06-11 304 else ^1da177e4c3f4152 Linus Torvalds 2005-04-16 305 insb(EPPDATA(port), buf, length); ^1da177e4c3f4152 Linus Torvalds 2005-04-16 306 if (inb(STATUS(port)) & 0x01) { ^1da177e4c3f4152 Linus Torvalds 2005-04-16 307 clear_epp_timeout(port); ^1da177e4c3f4152 Linus Torvalds 2005-04-16 308 return -EIO; ^1da177e4c3f4152 Linus Torvalds 2005-04-16 309 } ^1da177e4c3f4152 Linus Torvalds 2005-04-16 310 return length; ^1da177e4c3f4152 Linus Torvalds 2005-04-16 311 } ^1da177e4c3f4152 Linus Torvalds 2005-04-16 312 for (; got < length; got++) { ^1da177e4c3f4152 Linus Torvalds 2005-04-16 313 *((char *)buf) = inb(EPPDATA(port)); ^1da177e4c3f4152 Linus Torvalds 2005-04-16 314 buf++; ^1da177e4c3f4152 Linus Torvalds 2005-04-16 315 if (inb(STATUS(port)) & 0x01) { ^1da177e4c3f4152 Linus Torvalds 2005-04-16 316 /* EPP timeout */ ^1da177e4c3f4152 Linus Torvalds 2005-04-16 317 clear_epp_timeout(port); ^1da177e4c3f4152 Linus Torvalds 2005-04-16 318 break; ^1da177e4c3f4152 Linus Torvalds 2005-04-16 319 } ^1da177e4c3f4152 Linus Torvalds 2005-04-16 320 } ^1da177e4c3f4152 Linus Torvalds 2005-04-16 321 ^1da177e4c3f4152 Linus Torvalds 2005-04-16 322 return got; ^1da177e4c3f4152 Linus Torvalds 2005-04-16 323 } ^1da177e4c3f4152 Linus Torvalds 2005-04-16 324 :::::: The code at line 278 was first introduced by commit :::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2 :::::: TO: Linus Torvalds :::::: CC: Linus Torvalds -- 0-DAY CI Kernel Test Service https://01.org/lkp