* [jpoimboe:objtool-diff 5/13] crypto/xor.c:98:4: error: expected ')'
@ 2024-09-02 11:36 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-09-02 11:36 UTC (permalink / raw)
To: Josh Poimboeuf; +Cc: llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jpoimboe/linux.git objtool-diff
head: d63894f7f2633e98788b1a74a983e9dbea49d1b7
commit: 919add2736f64cbcbf2a7ec537e95ee652c9f8c3 [5/13] x86/alternative: Create symbols for special section entries
config: um-randconfig-002-20240902 (https://download.01.org/0day-ci/archive/20240902/202409021941.ThGglQhp-lkp@intel.com/config)
compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240902/202409021941.ThGglQhp-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202409021941.ThGglQhp-lkp@intel.com/
All errors (new ones prefixed by >>):
>> crypto/xor.c:98:4: error: expected ')'
mb(); /* prevent loop optimization */
^
arch/x86/um/asm/barrier.h:15:14: note: expanded from macro 'mb'
#define mb() alternative("lock; addl $0,0(%%esp)", "mfence", X86_FEATURE_XMM2)
^
arch/x86/include/asm/alternative.h:277:23: note: expanded from macro 'alternative'
asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, ft_flags) : : : "memory")
^
arch/x86/include/asm/alternative.h:228:2: note: expanded from macro 'ALTERNATIVE'
ALTINSTR_ENTRY(ft_flags, 1) \
^
arch/x86/include/asm/alternative.h:208:2: note: expanded from macro 'ALTINSTR_ENTRY'
FAKE_SYMBOL(__alt_, 681f) \
^
crypto/xor.c:100:4: error: expected ')'
mb();
^
arch/x86/um/asm/barrier.h:15:14: note: expanded from macro 'mb'
#define mb() alternative("lock; addl $0,0(%%esp)", "mfence", X86_FEATURE_XMM2)
^
arch/x86/include/asm/alternative.h:277:23: note: expanded from macro 'alternative'
asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, ft_flags) : : : "memory")
^
arch/x86/include/asm/alternative.h:228:2: note: expanded from macro 'ALTERNATIVE'
ALTINSTR_ENTRY(ft_flags, 1) \
^
arch/x86/include/asm/alternative.h:208:2: note: expanded from macro 'ALTINSTR_ENTRY'
FAKE_SYMBOL(__alt_, 681f) \
^
2 errors generated.
--
include/asm-generic/io.h:51:24: note: expanded from macro '__io_pbw'
#define __io_pbw() __io_bw()
^
include/asm-generic/io.h:39:24: note: expanded from macro '__io_bw'
#define __io_bw() wmb()
^
arch/x86/um/asm/barrier.h:17:15: note: expanded from macro 'wmb'
#define wmb() alternative("lock; addl $0,0(%%esp)", "sfence", X86_FEATURE_XMM)
^
arch/x86/include/asm/alternative.h:277:23: note: expanded from macro 'alternative'
asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, ft_flags) : : : "memory")
^
arch/x86/include/asm/alternative.h:228:2: note: expanded from macro 'ALTERNATIVE'
ALTINSTR_ENTRY(ft_flags, 1) \
^
arch/x86/include/asm/alternative.h:208:2: note: expanded from macro 'ALTINSTR_ENTRY'
FAKE_SYMBOL(__alt_, 681f) \
^
In file included from drivers/virtio/virtio_ring.c:6:
In file included from include/linux/virtio.h:7:
In file included from include/linux/scatterlist.h:9:
In file included from arch/um/include/asm/io.h:24:
include/asm-generic/io.h:585: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:2: error: expected ')'
__io_pbw();
^
include/asm-generic/io.h:51:24: note: expanded from macro '__io_pbw'
#define __io_pbw() __io_bw()
^
include/asm-generic/io.h:39:24: note: expanded from macro '__io_bw'
#define __io_bw() wmb()
^
arch/x86/um/asm/barrier.h:17:15: note: expanded from macro 'wmb'
#define wmb() alternative("lock; addl $0,0(%%esp)", "sfence", X86_FEATURE_XMM)
^
arch/x86/include/asm/alternative.h:277:23: note: expanded from macro 'alternative'
asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, ft_flags) : : : "memory")
^
arch/x86/include/asm/alternative.h:228:2: note: expanded from macro 'ALTERNATIVE'
ALTINSTR_ENTRY(ft_flags, 1) \
^
arch/x86/include/asm/alternative.h:208:2: note: expanded from macro 'ALTINSTR_ENTRY'
FAKE_SYMBOL(__alt_, 681f) \
^
In file included from drivers/virtio/virtio_ring.c:6:
In file included from include/linux/virtio.h:7:
In file included from include/linux/scatterlist.h:9:
In file included from arch/um/include/asm/io.h:24:
include/asm-generic/io.h:595: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:2: error: expected ')'
__io_pbw();
^
include/asm-generic/io.h:51:24: note: expanded from macro '__io_pbw'
#define __io_pbw() __io_bw()
^
include/asm-generic/io.h:39:24: note: expanded from macro '__io_bw'
#define __io_bw() wmb()
^
arch/x86/um/asm/barrier.h:17:15: note: expanded from macro 'wmb'
#define wmb() alternative("lock; addl $0,0(%%esp)", "sfence", X86_FEATURE_XMM)
^
arch/x86/include/asm/alternative.h:277:23: note: expanded from macro 'alternative'
asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, ft_flags) : : : "memory")
^
arch/x86/include/asm/alternative.h:228:2: note: expanded from macro 'ALTERNATIVE'
ALTINSTR_ENTRY(ft_flags, 1) \
^
arch/x86/include/asm/alternative.h:208:2: note: expanded from macro 'ALTINSTR_ENTRY'
FAKE_SYMBOL(__alt_, 681f) \
^
In file included from drivers/virtio/virtio_ring.c:6:
In file included from include/linux/virtio.h:7:
In file included from include/linux/scatterlist.h:9:
In file included from arch/um/include/asm/io.h:24:
include/asm-generic/io.h:605: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:693:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:701:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:709:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:718:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:727:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:736:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
In file included from drivers/virtio/virtio_ring.c:7:
>> include/linux/virtio_ring.h:28:3: error: expected ')'
virt_mb();
^
include/asm-generic/barrier.h:213:36: note: expanded from macro 'virt_mb'
#define virt_mb() do { kcsan_mb(); __smp_mb(); } while (0)
^
include/asm-generic/barrier.h:85:20: note: expanded from macro '__smp_mb'
#define __smp_mb() mb()
^
arch/x86/um/asm/barrier.h:15:14: note: expanded from macro 'mb'
#define mb() alternative("lock; addl $0,0(%%esp)", "mfence", X86_FEATURE_XMM2)
^
arch/x86/include/asm/alternative.h:277:23: note: expanded from macro 'alternative'
asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, ft_flags) : : : "memory")
^
arch/x86/include/asm/alternative.h:228:2: note: expanded from macro 'ALTERNATIVE'
ALTINSTR_ENTRY(ft_flags, 1) \
^
arch/x86/include/asm/alternative.h:208:2: note: expanded from macro 'ALTINSTR_ENTRY'
FAKE_SYMBOL(__alt_, 681f) \
^
In file included from drivers/virtio/virtio_ring.c:7:
include/linux/virtio_ring.h:30:3: error: expected ')'
mb();
^
arch/x86/um/asm/barrier.h:15:14: note: expanded from macro 'mb'
#define mb() alternative("lock; addl $0,0(%%esp)", "mfence", X86_FEATURE_XMM2)
^
arch/x86/include/asm/alternative.h:277:23: note: expanded from macro 'alternative'
asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, ft_flags) : : : "memory")
^
arch/x86/include/asm/alternative.h:228:2: note: expanded from macro 'ALTERNATIVE'
ALTINSTR_ENTRY(ft_flags, 1) \
^
arch/x86/include/asm/alternative.h:208:2: note: expanded from macro 'ALTINSTR_ENTRY'
FAKE_SYMBOL(__alt_, 681f) \
^
In file included from drivers/virtio/virtio_ring.c:7:
include/linux/virtio_ring.h:36:3: error: expected ')'
virt_rmb();
^
include/asm-generic/barrier.h:214:38: note: expanded from macro 'virt_rmb'
#define virt_rmb() do { kcsan_rmb(); __smp_rmb(); } while (0)
^
include/asm-generic/barrier.h:89:21: note: expanded from macro '__smp_rmb'
#define __smp_rmb() rmb()
^
arch/x86/um/asm/barrier.h:16:15: note: expanded from macro 'rmb'
#define rmb() alternative("lock; addl $0,0(%%esp)", "lfence", X86_FEATURE_XMM2)
^
arch/x86/include/asm/alternative.h:277:23: note: expanded from macro 'alternative'
asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, ft_flags) : : : "memory")
^
arch/x86/include/asm/alternative.h:228:2: note: expanded from macro 'ALTERNATIVE'
ALTINSTR_ENTRY(ft_flags, 1) \
^
arch/x86/include/asm/alternative.h:208:2: note: expanded from macro 'ALTINSTR_ENTRY'
FAKE_SYMBOL(__alt_, 681f) \
^
In file included from drivers/virtio/virtio_ring.c:7:
include/linux/virtio_ring.h:38:3: error: expected ')'
dma_rmb();
^
include/asm-generic/barrier.h:77:19: note: expanded from macro 'dma_rmb'
#define dma_rmb() rmb()
^
arch/x86/um/asm/barrier.h:16:15: note: expanded from macro 'rmb'
#define rmb() alternative("lock; addl $0,0(%%esp)", "lfence", X86_FEATURE_XMM2)
^
arch/x86/include/asm/alternative.h:277:23: note: expanded from macro 'alternative'
asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, ft_flags) : : : "memory")
^
arch/x86/include/asm/alternative.h:228:2: note: expanded from macro 'ALTERNATIVE'
ALTINSTR_ENTRY(ft_flags, 1) \
^
arch/x86/include/asm/alternative.h:208:2: note: expanded from macro 'ALTINSTR_ENTRY'
FAKE_SYMBOL(__alt_, 681f) \
^
In file included from drivers/virtio/virtio_ring.c:7:
include/linux/virtio_ring.h:44:3: error: expected ')'
virt_wmb();
^
include/asm-generic/barrier.h:215:38: note: expanded from macro 'virt_wmb'
#define virt_wmb() do { kcsan_wmb(); __smp_wmb(); } while (0)
^
include/asm-generic/barrier.h:93:21: note: expanded from macro '__smp_wmb'
#define __smp_wmb() wmb()
^
arch/x86/um/asm/barrier.h:17:15: note: expanded from macro 'wmb'
#define wmb() alternative("lock; addl $0,0(%%esp)", "sfence", X86_FEATURE_XMM)
^
arch/x86/include/asm/alternative.h:277:23: note: expanded from macro 'alternative'
asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, ft_flags) : : : "memory")
^
arch/x86/include/asm/alternative.h:228:2: note: expanded from macro 'ALTERNATIVE'
ALTINSTR_ENTRY(ft_flags, 1) \
^
arch/x86/include/asm/alternative.h:208:2: note: expanded from macro 'ALTINSTR_ENTRY'
FAKE_SYMBOL(__alt_, 681f) \
^
In file included from drivers/virtio/virtio_ring.c:7:
include/linux/virtio_ring.h:46:3: error: expected ')'
dma_wmb();
^
include/asm-generic/barrier.h:81:19: note: expanded from macro 'dma_wmb'
#define dma_wmb() wmb()
^
arch/x86/um/asm/barrier.h:17:15: note: expanded from macro 'wmb'
#define wmb() alternative("lock; addl $0,0(%%esp)", "sfence", X86_FEATURE_XMM)
^
arch/x86/include/asm/alternative.h:277:23: note: expanded from macro 'alternative'
asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, ft_flags) : : : "memory")
^
arch/x86/include/asm/alternative.h:228:2: note: expanded from macro 'ALTERNATIVE'
ALTINSTR_ENTRY(ft_flags, 1) \
^
arch/x86/include/asm/alternative.h:208:2: note: expanded from macro 'ALTINSTR_ENTRY'
FAKE_SYMBOL(__alt_, 681f) \
^
>> drivers/virtio/virtio_ring.c:871:3: error: expected ')'
virtio_store_mb(vq->weak_barriers,
^
include/linux/virtio_ring.h:52:3: note: expanded from macro 'virtio_store_mb'
virt_store_mb(*p, v); \
^
include/asm-generic/barrier.h:216:52: note: expanded from macro 'virt_store_mb'
#define virt_store_mb(var, value) do { kcsan_mb(); __smp_store_mb(var, value); } while (0)
^
include/asm-generic/barrier.h:127:66: note: expanded from macro '__smp_store_mb'
#define __smp_store_mb(var, value) do { WRITE_ONCE(var, value); __smp_mb(); } while (0)
^
note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
arch/x86/include/asm/alternative.h:277:23: note: expanded from macro 'alternative'
asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, ft_flags) : : : "memory")
^
arch/x86/include/asm/alternative.h:228:2: note: expanded from macro 'ALTERNATIVE'
ALTINSTR_ENTRY(ft_flags, 1) \
^
arch/x86/include/asm/alternative.h:208:2: note: expanded from macro 'ALTINSTR_ENTRY'
FAKE_SYMBOL(__alt_, 681f) \
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
12 warnings and 20 errors generated.
--
In file included from include/linux/hardirq.h:11:
In file included from arch/um/include/asm/hardirq.h:5:
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:14:
In file included from arch/um/include/asm/io.h:24:
include/asm-generic/io.h:585: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:2: error: expected ')'
__io_pbw();
^
include/asm-generic/io.h:51:24: note: expanded from macro '__io_pbw'
#define __io_pbw() __io_bw()
^
include/asm-generic/io.h:39:24: note: expanded from macro '__io_bw'
#define __io_bw() wmb()
^
arch/x86/um/asm/barrier.h:17:15: note: expanded from macro 'wmb'
#define wmb() alternative("lock; addl $0,0(%%esp)", "sfence", X86_FEATURE_XMM)
^
arch/x86/include/asm/alternative.h:277:23: note: expanded from macro 'alternative'
asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, ft_flags) : : : "memory")
^
arch/x86/include/asm/alternative.h:228:2: note: expanded from macro 'ALTERNATIVE'
ALTINSTR_ENTRY(ft_flags, 1) \
^
arch/x86/include/asm/alternative.h:208:2: note: expanded from macro 'ALTINSTR_ENTRY'
FAKE_SYMBOL(__alt_, 681f) \
^
In file included from drivers/mtd/mtdchar.c:16:
In file included from include/linux/backing-dev.h:16:
In file included from include/linux/writeback.h:13:
In file included from include/linux/blk_types.h:10:
In file included from include/linux/bvec.h:10:
In file included from include/linux/highmem.h:12:
In file included from include/linux/hardirq.h:11:
In file included from arch/um/include/asm/hardirq.h:5:
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:14:
In file included from arch/um/include/asm/io.h:24:
include/asm-generic/io.h:595: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:2: error: expected ')'
__io_pbw();
^
include/asm-generic/io.h:51:24: note: expanded from macro '__io_pbw'
#define __io_pbw() __io_bw()
^
include/asm-generic/io.h:39:24: note: expanded from macro '__io_bw'
#define __io_bw() wmb()
^
arch/x86/um/asm/barrier.h:17:15: note: expanded from macro 'wmb'
#define wmb() alternative("lock; addl $0,0(%%esp)", "sfence", X86_FEATURE_XMM)
^
arch/x86/include/asm/alternative.h:277:23: note: expanded from macro 'alternative'
asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, ft_flags) : : : "memory")
^
arch/x86/include/asm/alternative.h:228:2: note: expanded from macro 'ALTERNATIVE'
ALTINSTR_ENTRY(ft_flags, 1) \
^
arch/x86/include/asm/alternative.h:208:2: note: expanded from macro 'ALTINSTR_ENTRY'
FAKE_SYMBOL(__alt_, 681f) \
^
In file included from drivers/mtd/mtdchar.c:16:
In file included from include/linux/backing-dev.h:16:
In file included from include/linux/writeback.h:13:
In file included from include/linux/blk_types.h:10:
In file included from include/linux/bvec.h:10:
In file included from include/linux/highmem.h:12:
In file included from include/linux/hardirq.h:11:
In file included from arch/um/include/asm/hardirq.h:5:
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:14:
In file included from arch/um/include/asm/io.h:24:
include/asm-generic/io.h:605: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:693:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:701:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:709:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:718:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:727:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:736:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
In file included from drivers/mtd/mtdchar.c:24:
>> include/linux/mtd/map.h:427:2: error: expected ')'
mb();
^
arch/x86/um/asm/barrier.h:15:14: note: expanded from macro 'mb'
#define mb() alternative("lock; addl $0,0(%%esp)", "mfence", X86_FEATURE_XMM2)
^
arch/x86/include/asm/alternative.h:277:23: note: expanded from macro 'alternative'
asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, ft_flags) : : : "memory")
^
arch/x86/include/asm/alternative.h:228:2: note: expanded from macro 'ALTERNATIVE'
ALTINSTR_ENTRY(ft_flags, 1) \
^
arch/x86/include/asm/alternative.h:208:2: note: expanded from macro 'ALTINSTR_ENTRY'
FAKE_SYMBOL(__alt_, 681f) \
^
12 warnings and 13 errors generated.
..
vim +98 crypto/xor.c
^1da177e4c3f41 drivers/md/xor.c Linus Torvalds 2005-04-16 81
af7cf25dd15b74 crypto/xor.c Jan Beulich 2012-10-11 82 static void __init
^1da177e4c3f41 drivers/md/xor.c Linus Torvalds 2005-04-16 83 do_xor_speed(struct xor_block_template *tmpl, void *b1, void *b2)
^1da177e4c3f41 drivers/md/xor.c Linus Torvalds 2005-04-16 84 {
^1da177e4c3f41 drivers/md/xor.c Linus Torvalds 2005-04-16 85 int speed;
10b0f78a732371 crypto/xor.c Nathan Chancellor 2020-10-06 86 int i, j;
c055e3eae0f133 crypto/xor.c Ard Biesheuvel 2020-09-26 87 ktime_t min, start, diff;
^1da177e4c3f41 drivers/md/xor.c Linus Torvalds 2005-04-16 88
^1da177e4c3f41 drivers/md/xor.c Linus Torvalds 2005-04-16 89 tmpl->next = template_list;
^1da177e4c3f41 drivers/md/xor.c Linus Torvalds 2005-04-16 90 template_list = tmpl;
^1da177e4c3f41 drivers/md/xor.c Linus Torvalds 2005-04-16 91
56a519913eeba2 crypto/xor.c Jim Kukunas 2012-05-22 92 preempt_disable();
56a519913eeba2 crypto/xor.c Jim Kukunas 2012-05-22 93
c055e3eae0f133 crypto/xor.c Ard Biesheuvel 2020-09-26 94 min = (ktime_t)S64_MAX;
c055e3eae0f133 crypto/xor.c Ard Biesheuvel 2020-09-26 95 for (i = 0; i < 3; i++) {
c055e3eae0f133 crypto/xor.c Ard Biesheuvel 2020-09-26 96 start = ktime_get();
c055e3eae0f133 crypto/xor.c Ard Biesheuvel 2020-09-26 97 for (j = 0; j < REPS; j++) {
cfb28fde083761 crypto/xor.c Bhaskar Chowdhury 2021-02-03 @98 mb(); /* prevent loop optimization */
^1da177e4c3f41 drivers/md/xor.c Linus Torvalds 2005-04-16 99 tmpl->do_2(BENCH_SIZE, b1, b2);
^1da177e4c3f41 drivers/md/xor.c Linus Torvalds 2005-04-16 100 mb();
^1da177e4c3f41 drivers/md/xor.c Linus Torvalds 2005-04-16 101 }
c055e3eae0f133 crypto/xor.c Ard Biesheuvel 2020-09-26 102 diff = ktime_sub(ktime_get(), start);
c055e3eae0f133 crypto/xor.c Ard Biesheuvel 2020-09-26 103 if (diff < min)
c055e3eae0f133 crypto/xor.c Ard Biesheuvel 2020-09-26 104 min = diff;
^1da177e4c3f41 drivers/md/xor.c Linus Torvalds 2005-04-16 105 }
^1da177e4c3f41 drivers/md/xor.c Linus Torvalds 2005-04-16 106
56a519913eeba2 crypto/xor.c Jim Kukunas 2012-05-22 107 preempt_enable();
56a519913eeba2 crypto/xor.c Jim Kukunas 2012-05-22 108
c055e3eae0f133 crypto/xor.c Ard Biesheuvel 2020-09-26 109 // bytes/ns == GB/s, multiply by 1000 to get MB/s [not MiB/s]
3c02e04fd4f571 crypto/xor.c Kirill Tkhai 2020-12-31 110 if (!min)
3c02e04fd4f571 crypto/xor.c Kirill Tkhai 2020-12-31 111 min = 1;
c055e3eae0f133 crypto/xor.c Ard Biesheuvel 2020-09-26 112 speed = (1000 * REPS * BENCH_SIZE) / (unsigned int)ktime_to_ns(min);
^1da177e4c3f41 drivers/md/xor.c Linus Torvalds 2005-04-16 113 tmpl->speed = speed;
^1da177e4c3f41 drivers/md/xor.c Linus Torvalds 2005-04-16 114
c055e3eae0f133 crypto/xor.c Ard Biesheuvel 2020-09-26 115 pr_info(" %-16s: %5d MB/sec\n", tmpl->name, speed);
^1da177e4c3f41 drivers/md/xor.c Linus Torvalds 2005-04-16 116 }
^1da177e4c3f41 drivers/md/xor.c Linus Torvalds 2005-04-16 117
:::::: The code at line 98 was first introduced by commit
:::::: cfb28fde083761bfb839bc53059068bab5634b6a crypto: xor - Fix typo of optimization
:::::: TO: Bhaskar Chowdhury <unixbhaskar@gmail.com>
:::::: CC: Herbert Xu <herbert@gondor.apana.org.au>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-09-02 11:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-02 11:36 [jpoimboe:objtool-diff 5/13] crypto/xor.c:98:4: error: expected ')' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox