+ mm-hmmc-remove-unused-variables-align_start-and-align_end.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: mm/hmm.c: remove unused variables align_start and align_end
has been added to the -mm tree.  Its filename is
     mm-hmmc-remove-unused-variables-align_start-and-align_end.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/mm-hmmc-remove-unused-variables-align_start-and-align_end.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/mm-hmmc-remove-unused-variables-align_start-and-align_end.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
Subject: mm/hmm.c: remove unused variables align_start and align_end

Variables align_start and align_end are being assigned but are never used
hence they are redundant and can be removed.

Cleans up clang warnings:
warning: variable 'align_start' set but not used [-Wunused-but-set-variable]
warning: variable 'align_size' set but not used [-Wunused-but-set-variable]

Link: http://lkml.kernel.org/r/20180714161124.3923-1-colin.king@xxxxxxxxxxxxx
Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 mm/hmm.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff -puN mm/hmm.c~mm-hmmc-remove-unused-variables-align_start-and-align_end mm/hmm.c
--- a/mm/hmm.c~mm-hmmc-remove-unused-variables-align_start-and-align_end
+++ a/mm/hmm.c
@@ -973,10 +973,7 @@ static RADIX_TREE(hmm_devmem_radix, GFP_
 
 static void hmm_devmem_radix_release(struct resource *resource)
 {
-	resource_size_t key, align_start, align_size;
-
-	align_start = resource->start & ~(PA_SECTION_SIZE - 1);
-	align_size = ALIGN(resource_size(resource), PA_SECTION_SIZE);
+	resource_size_t key;
 
 	mutex_lock(&hmm_devmem_lock);
 	for (key = resource->start;
_

Patches currently in -mm which might be from colin.king@xxxxxxxxxxxxx are

ocfs2-make-several-functions-and-variables-static-and-some-const.patch
mm-zsmalloc-make-several-functions-and-a-struct-static.patch
mm-swap-make-swap_slots_cache_mutex-and-swap_slots_cache_enable_mutex-static.patch
userfaultfd-remove-redundant-pointer-uwq.patch
mm-hmmc-remove-unused-variables-align_start-and-align_end.patch
spellingtxt-add-more-spellings-to-spellingtxt.patch
lib-make-struct-pointer-foo-static.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux