mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
[PATCH] use add_taint() for setting tainted bit flags
Use the add_taint() interface for setting tainted bit flags instead of doing it manually. Signed-off-by: Randy Dunlap <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
fb911ee849
commit
9f1583339a
4 changed files with 10 additions and 8 deletions
|
|
@ -22,6 +22,7 @@
|
|||
#include <linux/pagemap.h>
|
||||
#include <linux/bootmem.h>
|
||||
#include <linux/compiler.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/suspend.h>
|
||||
#include <linux/pagevec.h>
|
||||
|
|
@ -117,7 +118,7 @@ static void bad_page(const char *function, struct page *page)
|
|||
set_page_count(page, 0);
|
||||
reset_page_mapcount(page);
|
||||
page->mapping = NULL;
|
||||
tainted |= TAINT_BAD_PAGE;
|
||||
add_taint(TAINT_BAD_PAGE);
|
||||
}
|
||||
|
||||
#ifndef CONFIG_HUGETLB_PAGE
|
||||
|
|
|
|||
Loading…
Reference in a new issue