xref: /linux-6.15/include/linux/text-patching.h (revision 0c3beacf)
1*0c3beacfSMike Rapoport (Microsoft) /* SPDX-License-Identifier: GPL-2.0 */
2*0c3beacfSMike Rapoport (Microsoft) #ifndef _LINUX_TEXT_PATCHING_H
3*0c3beacfSMike Rapoport (Microsoft) #define _LINUX_TEXT_PATCHING_H
4*0c3beacfSMike Rapoport (Microsoft) 
5*0c3beacfSMike Rapoport (Microsoft) #include <asm/text-patching.h>
6*0c3beacfSMike Rapoport (Microsoft) 
7*0c3beacfSMike Rapoport (Microsoft) #ifndef text_poke_copy
text_poke_copy(void * dst,const void * src,size_t len)8*0c3beacfSMike Rapoport (Microsoft) static inline void *text_poke_copy(void *dst, const void *src, size_t len)
9*0c3beacfSMike Rapoport (Microsoft) {
10*0c3beacfSMike Rapoport (Microsoft) 	return memcpy(dst, src, len);
11*0c3beacfSMike Rapoport (Microsoft) }
12*0c3beacfSMike Rapoport (Microsoft) #define text_poke_copy text_poke_copy
13*0c3beacfSMike Rapoport (Microsoft) #endif
14*0c3beacfSMike Rapoport (Microsoft) 
15*0c3beacfSMike Rapoport (Microsoft) #endif /* _LINUX_TEXT_PATCHING_H */
16