android_kernel_msm-6.1_noth.../arch/alpha/include/asm
Al Viro c693cc4676 saner calling conventions for csum_and_copy_..._user()
All callers of these primitives will
	* discard anything we might've copied in case of error
	* ignore the csum value in case of error
	* always pass 0xffffffff as the initial sum, so the
resulting csum value (in case of success, that is) will never be 0.

That suggest the following calling conventions:
	* don't pass err_ptr - just return 0 on error.
	* don't bother with zeroing destination, etc. in case of error
	* don't pass the initial sum - just use 0xffffffff.

This commit does the minimal conversion in the instances of csum_and_copy_...();
the changes of actual asm code behind them are done later in the series.
Note that this asm code is often shared with csum_partial_copy_nocheck();
the difference is that csum_partial_copy_nocheck() passes 0 for initial
sum while csum_and_copy_..._user() pass 0xffffffff.  Fortunately, we are
free to pass 0xffffffff in all cases and subsequent patches will use that
freedom without any special comments.

A part that could be split off: parisc and uml/i386 claimed to have
csum_and_copy_to_user() instances of their own, but those were identical
to the generic one, so we simply drop them.  Not sure if it's worth
a separate commit...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2020-08-20 15:45:15 -04:00
..
a.out.h
agp.h
agp_backend.h
asm-offsets.h
asm-prototypes.h
atomic.h These were the main changes in this cycle: 2020-08-03 14:39:35 -07:00
barrier.h alpha: Override READ_ONCE() with barriered implementation 2020-07-21 10:50:35 +01:00
bitops.h fls: change parameter to unsigned int 2019-01-04 13:13:46 -08:00
bug.h
bugs.h
cache.h
cacheflush.h mm: rename flush_icache_user_range to flush_icache_user_page 2020-06-08 11:05:58 -07:00
checksum.h saner calling conventions for csum_and_copy_..._user() 2020-08-20 15:45:15 -04:00
cmpxchg.h
compiler.h
console.h
core_apecs.h iomap: constify ioreadX() iomem argument (as in generic implementation) 2020-08-14 19:56:57 -07:00
core_cia.h iomap: constify ioreadX() iomem argument (as in generic implementation) 2020-08-14 19:56:57 -07:00
core_irongate.h
core_lca.h iomap: constify ioreadX() iomem argument (as in generic implementation) 2020-08-14 19:56:57 -07:00
core_marvel.h iomap: constify ioreadX() iomem argument (as in generic implementation) 2020-08-14 19:56:57 -07:00
core_mcpcia.h iomap: constify ioreadX() iomem argument (as in generic implementation) 2020-08-14 19:56:57 -07:00
core_polaris.h
core_t2.h iomap: constify ioreadX() iomem argument (as in generic implementation) 2020-08-14 19:56:57 -07:00
core_titan.h
core_tsunami.h
core_wildfire.h
delay.h
device.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 428 2019-06-05 17:37:16 +02:00
div64.h
dma-mapping.h dma-mapping: bypass indirect calls for dma-direct 2018-12-13 21:06:18 +01:00
dma.h
elf.h
emergency-restart.h
err_common.h
err_ev6.h
err_ev7.h
extable.h
floppy.h floppy: split the base port from the register in I/O accesses 2020-05-12 19:34:52 +03:00
fpu.h
ftrace.h
futex.h futex: arch_futex_atomic_op_inuser() calling conventions change 2020-03-27 23:58:51 -04:00
gct.h
hardirq.h
hw_irq.h
hwrpb.h
io.h iomap: constify ioreadX() iomem argument (as in generic implementation) 2020-08-14 19:56:57 -07:00
io_trivial.h iomap: constify ioreadX() iomem argument (as in generic implementation) 2020-08-14 19:56:57 -07:00
irq.h alpha: Fix Eiger NR_IRQS to 128 2019-02-10 20:42:14 -08:00
irq_regs.h
irqflags.h
jensen.h iomap: constify ioreadX() iomem argument (as in generic implementation) 2020-08-14 19:56:57 -07:00
Kbuild asm-generic: make more kernel-space headers mandatory 2020-04-02 09:35:25 -07:00
kdebug.h
kmap_types.h
linkage.h
local.h
local64.h
machvec.h iomap: constify ioreadX() iomem argument (as in generic implementation) 2020-08-14 19:56:57 -07:00
mc146818rtc.h
mce.h
mmu.h
mmu_context.h
mmzone.h mm: remove dummy struct bootmem_data/bootmem_data_t 2020-04-07 10:43:42 -07:00
module.h
page.h mm/vma: define a default value for VM_DATA_DEFAULT_FLAGS 2020-04-10 15:36:21 -07:00
pal.h
param.h
parport.h
pci.h
percpu.h
perf_event.h
pgalloc.h asm-generic: pgalloc: provide generic pgd_free() 2020-08-07 11:33:26 -07:00
pgtable.h alpha: Replace smp_read_barrier_depends() usage with smp_[r]mb() 2020-07-21 10:50:36 +01:00
processor.h
ptrace.h
rwonce.h alpha: Override READ_ONCE() with barriered implementation 2020-07-21 10:50:35 +01:00
serial.h
sfp-machine.h
shmparam.h
signal.h
smp.h
socket.h
special_insns.h
spinlock.h
spinlock_types.h
string.h
switch_to.h
syscall.h syscall_get_arch: add "struct task_struct *" argument 2019-03-20 21:12:36 -04:00
termios.h
thread_info.h
timex.h
tlb.h arch/tlb: Clean up simple architectures 2019-04-03 10:32:54 +02:00
tlbflush.h mm: remove unneeded includes of <asm/pgalloc.h> 2020-08-07 11:33:26 -07:00
topology.h mm: replace all open encodings for NUMA_NO_NODE 2019-03-05 21:07:14 -08:00
types.h
uaccess.h uaccess: remove segment_eq 2020-08-12 10:57:58 -07:00
ucontext.h
unaligned.h
unistd.h alpha: add generic get{eg,eu,g,p,u,pp}id() syscalls 2019-01-25 17:22:51 +01:00
user.h
vga.h
vmalloc.h mm/vmalloc: Add empty <asm/vmalloc.h> headers and use them from <linux/vmalloc.h> 2019-12-10 10:12:55 +01:00
word-at-a-time.h
wrperfmon.h
xchg.h
xor.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 47 2019-05-24 17:27:13 +02:00