mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
make expand_files() and alloc_fd() static
no callers outside of fs/file.c left Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
b8318b01a8
commit
ad47bd7252
3 changed files with 2 additions and 4 deletions
|
|
@ -238,7 +238,7 @@ static int expand_fdtable(struct files_struct *files, int nr)
|
|||
* expanded and execution may have blocked.
|
||||
* The files->file_lock should be held on entry, and will be held on exit.
|
||||
*/
|
||||
int expand_files(struct files_struct *files, int nr)
|
||||
static int expand_files(struct files_struct *files, int nr)
|
||||
{
|
||||
struct fdtable *fdt;
|
||||
|
||||
|
|
@ -580,7 +580,7 @@ out:
|
|||
return error;
|
||||
}
|
||||
|
||||
int alloc_fd(unsigned start, unsigned flags)
|
||||
static int alloc_fd(unsigned start, unsigned flags)
|
||||
{
|
||||
return __alloc_fd(current->files, start, rlimit(RLIMIT_NOFILE), flags);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue