Skip to content

Commit

Permalink
mm: drop __nocast from vm_flags_t definition
Browse files Browse the repository at this point in the history
__nocast does no good for vm_flags_t. It only produces useless sparse
warnings.

Let's drop it.

Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Acked-by: David Rientjes <rientjes@google.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Kirill A. Shutemov authored and Linus Torvalds committed Sep 8, 2015
1 parent 1b4ace4 commit 64b990d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/mm_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ struct page_frag_cache {
bool pfmemalloc;
};

typedef unsigned long __nocast vm_flags_t;
typedef unsigned long vm_flags_t;

/*
* A region containing a mapping of a non-memory backed file under NOMMU
Expand Down

0 comments on commit 64b990d

Please sign in to comment.