mirror of
https://github.com/xcat2/xNBA.git
synced 2024-12-14 23:31:39 +00:00
Add a const to avoid a warning
This commit is contained in:
parent
2930fe846e
commit
dd475a9b8c
@ -46,7 +46,8 @@ static inline void * phys_to_virt ( unsigned long phys_addr ) {
|
||||
return ( void * ) ( phys_addr - virt_offset );
|
||||
}
|
||||
|
||||
static inline void copy_to_phys ( physaddr_t dest, void *src, size_t len ) {
|
||||
static inline void copy_to_phys ( physaddr_t dest, const void *src,
|
||||
size_t len ) {
|
||||
memcpy ( phys_to_virt ( dest ), src, len );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user