mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-29 12:35:48 +00:00
HV:treewide:fix "Attempt to change parameter passed by value"
In the function scope,the parameter should not be changed as Misra required. V1->V2 recover some violations because of ldra's false positive. V2->V3 sync local variable' type to parameter's type with the prefix of const. Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -30,14 +30,14 @@ void udelay(uint32_t us);
|
||||
void *memchr(const void *void_s, int c, size_t n);
|
||||
int strcmp(const char *s1, const char *s2);
|
||||
int strncmp(const char *s1, const char *s2, size_t n);
|
||||
char *strcpy_s(char *d, size_t dmax, const char *s);
|
||||
char *strncpy_s(char *d, size_t dmax, const char *s, size_t slen);
|
||||
char *strcpy_s(char *d, size_t dmax, const char *s_arg);
|
||||
char *strncpy_s(char *d, size_t dmax, const char *s, size_t slen_arg);
|
||||
char *strchr(const char *s, int ch);
|
||||
void mdelay(unsigned int ms);
|
||||
size_t strnlen_s(const char *str, size_t maxlen);
|
||||
void mdelay(uint32_t loop_count_arg);
|
||||
size_t strnlen_s(const char *str, size_t maxlen_arg);
|
||||
void *memset(void *base, uint8_t v, size_t n);
|
||||
void *memcpy_s(void *d, size_t dmax, const void *s, size_t slen);
|
||||
int udiv64(uint64_t dividend, uint64_t divisor, struct udiv_result *res);
|
||||
void *memcpy_s(void *d, size_t dmax, const void *s, size_t slen_arg);
|
||||
int udiv64(uint64_t dividend_arg, uint64_t divisor_arg, struct udiv_result *res);
|
||||
int udiv32(uint32_t dividend, uint32_t divisor, struct udiv_result *res);
|
||||
int atoi(const char *str);
|
||||
long strtol_deci(const char *nptr);
|
||||
|
@@ -57,7 +57,7 @@ int do_print(const char *fmt, struct print_param *param,
|
||||
* is smaller. On error a negative number is returned.
|
||||
*/
|
||||
|
||||
int vsnprintf(char *dst, int sz, const char *fmt, va_list args);
|
||||
int vsnprintf(char *dst, int32_t sz_arg, const char *fmt, va_list args);
|
||||
|
||||
/** The well known snprintf() function.
|
||||
*
|
||||
|
Reference in New Issue
Block a user