]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
mm: don't access vm_flags as 'int'
authorKOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Thu, 26 May 2011 10:16:19 +0000 (19:16 +0900)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 26 May 2011 16:20:31 +0000 (09:20 -0700)
commitca16d140af91febe25daeb9e032bf8bd46b8c31f
treea093c3f244a1bdfc2a50e271a7e6df3324df0f05
parent4db70f73e56961b9bcdfd0c36c62847a18b7dbb5
mm: don't access vm_flags as 'int'

The type of vma->vm_flags is 'unsigned long'. Neither 'int' nor
'unsigned int'. This patch fixes such misuse.

Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
[ Changed to use a typedef - we'll extend it to cover more cases
  later, since there has been discussion about making it a 64-bit
  type..                      - Linus ]
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
12 files changed:
fs/hugetlbfs/inode.c
fs/proc/task_mmu.c
include/linux/hugetlb.h
include/linux/hugetlb_inline.h
include/linux/mm.h
include/linux/mm_types.h
ipc/shm.c
mm/fremap.c
mm/hugetlb.c
mm/memory.c
mm/mlock.c
mm/mmap.c