mirror of
https://github.com/torvalds/linux.git
synced 2025-11-03 10:10:33 +02:00
um: Remove the redundant declaration of high_physmem
high_physmem has already been declared in as-layout.h, so there is no need to declare it explicitly in the .c file again. While at it, group the declarations of __real_malloc and __real_free together to make the code slightly more readable. Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com> Link: https://patch.msgid.link/20240916045950.508910-2-tiwei.btw@antgroup.com Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
797d3688f9
commit
855f6e18df
1 changed files with 1 additions and 4 deletions
|
|
@ -182,6 +182,7 @@ int __init main(int argc, char **argv, char **envp)
|
|||
}
|
||||
|
||||
extern void *__real_malloc(int);
|
||||
extern void __real_free(void *);
|
||||
|
||||
/* workaround for -Wmissing-prototypes warnings */
|
||||
void *__wrap_malloc(int size);
|
||||
|
|
@ -219,10 +220,6 @@ void *__wrap_calloc(int n, int size)
|
|||
return ptr;
|
||||
}
|
||||
|
||||
extern void __real_free(void *);
|
||||
|
||||
extern unsigned long high_physmem;
|
||||
|
||||
void __wrap_free(void *ptr)
|
||||
{
|
||||
unsigned long addr = (unsigned long) ptr;
|
||||
|
|
|
|||
Loading…
Reference in a new issue