Skip to content

Commit

Permalink
staging/android: fix build issues
Browse files Browse the repository at this point in the history
Signed-off-by: Corentin Chary <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
iksaif authored and gregkh committed Nov 30, 2011
1 parent 355b050 commit 23687af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions drivers/staging/android/logger.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* GNU General Public License for more details.
*/

#include <linux/sched.h>
#include <linux/module.h>
#include <linux/fs.h>
#include <linux/miscdevice.h>
Expand Down
6 changes: 4 additions & 2 deletions drivers/staging/android/lowmemorykiller.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,17 @@ static int lowmem_shrink(int nr_to_scan, gfp_t gfp_mask)
read_lock(&tasklist_lock);
for_each_process(p) {
struct mm_struct *mm;
struct signal_struct *sig;
int oom_adj;

task_lock(p);
mm = p->mm;
if (!mm) {
sig = p->signal;
if (!mm || !sig) {
task_unlock(p);
continue;
}
oom_adj = mm->oom_adj;
oom_adj = sig->oom_adj;
if (oom_adj < min_adj) {
task_unlock(p);
continue;
Expand Down

0 comments on commit 23687af

Please sign in to comment.