mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-10-09 04:53:33 +00:00
HV:treewide:fix "Reference parameter to procedure is reassigned"
Parameter's type which is pointer should not be changed in the scope of function,assign it's value to local variable to fixed it out. Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -28,13 +28,13 @@ struct udiv_result {
|
||||
/* Function prototypes */
|
||||
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_arg);
|
||||
char *strncpy_s(char *d, size_t dmax, const char *s, size_t slen_arg);
|
||||
char *strchr(const char *s, int ch);
|
||||
int strcmp(const char *s1_arg, const char *s2_arg);
|
||||
int strncmp(const char *s1_arg, const char *s2_arg, size_t n_arg);
|
||||
char *strcpy_s(char *d_arg, size_t dmax, const char *s_arg);
|
||||
char *strncpy_s(char *d_arg, size_t dmax, const char *s, size_t slen_arg);
|
||||
char *strchr(const char *s_arg, int ch);
|
||||
void mdelay(uint32_t loop_count_arg);
|
||||
size_t strnlen_s(const char *str, size_t maxlen_arg);
|
||||
size_t strnlen_s(const char *str_arg, 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_arg);
|
||||
int udiv64(uint64_t dividend_arg, uint64_t divisor_arg, struct udiv_result *res);
|
||||
|
@@ -42,7 +42,7 @@ struct print_param {
|
||||
} vars;
|
||||
};
|
||||
|
||||
int do_print(const char *fmt, struct print_param *param,
|
||||
int do_print(const char *fmt_arg, struct print_param *param,
|
||||
__builtin_va_list args);
|
||||
|
||||
/** The well known vsnprintf() function.
|
||||
@@ -56,7 +56,7 @@ int do_print(const char *fmt, struct print_param *param,
|
||||
* @return The number of bytes which would be written, even if the destination
|
||||
* is smaller. On error a negative number is returned.
|
||||
*/
|
||||
int vsnprintf(char *dst, size_t sz, const char *fmt, va_list args);
|
||||
int vsnprintf(char *dst_arg, size_t sz_arg, const char *fmt, va_list args);
|
||||
|
||||
/** The well known snprintf() function.
|
||||
*
|
||||
|
Reference in New Issue
Block a user