diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-12-28 03:37:13 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-12-28 15:11:49 -0500 |
commit | 0ecea993d0100e7409f8840b463a34fae42c9c32 (patch) | |
tree | f837da73b1411eb04cdcad940e6dbb7eaa349e2a | |
parent | fa004ab7365ffa1e17e6b267d64798afccb94946 (diff) |
mm/hmm.c: remove set but not used variable 'devmem'
Fixes gcc '-Wunused-but-set-variable' warning:
mm/hmm.c: In function 'hmm_devmem_ref_kill':
mm/hmm.c:995:21: warning:
variable 'devmem' set but not used [-Wunused-but-set-variable]
It not used any more since 35d39f953d4e ("mm, hmm: replace
hmm_devmem_pages_create() with devm_memremap_pages()")
Link: http://lkml.kernel.org/r/1543629971-128377-1-git-send-email-yuehaibing@huawei.com
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Reviewed-by: Jérôme Glisse <jglisse@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | mm/hmm.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -992,9 +992,6 @@ static void hmm_devmem_ref_exit(void *data) | |||
992 | 992 | ||
993 | static void hmm_devmem_ref_kill(struct percpu_ref *ref) | 993 | static void hmm_devmem_ref_kill(struct percpu_ref *ref) |
994 | { | 994 | { |
995 | struct hmm_devmem *devmem; | ||
996 | |||
997 | devmem = container_of(ref, struct hmm_devmem, ref); | ||
998 | percpu_ref_kill(ref); | 995 | percpu_ref_kill(ref); |
999 | } | 996 | } |
1000 | 997 | ||