Skip to content

Commit 2d618bd

Browse files
committed
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rkuo/linux-hexagon-kernel
Pull hexagon fixes from Richard Kuo: "Some small fixes for module compilation" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rkuo/linux-hexagon-kernel: hexagon: export csum_partial_copy_nocheck hexagon: add memset_io() helper
2 parents f212599 + 330e261 commit 2d618bd

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

‎arch/hexagon/include/asm/io.h‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,12 @@ static inline void memcpy_toio(volatile void __iomem *dst, const void *src,
216216
memcpy((void *) dst, src, count);
217217
}
218218

219+
static inline void memset_io(volatile void __iomem *addr, int value,
220+
size_t size)
221+
{
222+
memset((void __force *)addr, value, size);
223+
}
224+
219225
#define PCI_IO_ADDR (volatile void __iomem *)
220226

221227
/*

‎arch/hexagon/lib/checksum.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,3 +199,4 @@ csum_partial_copy_nocheck(const void *src, void *dst, int len, __wsum sum)
199199
memcpy(dst, src, len);
200200
return csum_partial(dst, len, sum);
201201
}
202+
EXPORT_SYMBOL(csum_partial_copy_nocheck);

0 commit comments

Comments
 (0)