mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[PATCH] gfp flags annotations - part 1
- added typedef unsigned int __nocast gfp_t; - replaced __nocast uses for gfp flags with gfp_t - it gives exactly the same warnings as far as sparse is concerned, doesn't change generated code (from gcc point of view we replaced unsigned int with typedef) and documents what's going on far better. Signed-off-by: Al Viro <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
3b0e77bd14
commit
dd0fc66fb3
145 changed files with 340 additions and 360 deletions
|
|
@ -921,8 +921,7 @@ shmem_swapin(struct shmem_inode_info *info,swp_entry_t entry,unsigned long idx)
|
|||
}
|
||||
|
||||
static inline struct page *
|
||||
shmem_alloc_page(unsigned int __nocast gfp,struct shmem_inode_info *info,
|
||||
unsigned long idx)
|
||||
shmem_alloc_page(gfp_t gfp,struct shmem_inode_info *info, unsigned long idx)
|
||||
{
|
||||
return alloc_page(gfp | __GFP_ZERO);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue