mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* + zram-make-function-zram_page_end_io-static.patch added to -mm tree
@ 2017-10-17 22:31 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2017-10-17 22:31 UTC (permalink / raw)
  To: colin.king, minchan, sergey.senozhatsky, mm-commits


The patch titled
     Subject: drivers/block/zram/zram_drv.c: make zram_page_end_io() static
has been added to the -mm tree.  Its filename is
     zram-make-function-zram_page_end_io-static.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/zram-make-function-zram_page_end_io-static.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/zram-make-function-zram_page_end_io-static.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/SubmitChecklist 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@canonical.com>
Subject: drivers/block/zram/zram_drv.c: make zram_page_end_io() static

zram_page_end_io() is local to the source and does not need to be in
global scope, so make it static.

Cleans up sparse warning:
symbol 'zram_page_end_io' was not declared. Should it be static?

Link: http://lkml.kernel.org/r/20171016173336.20320-1-colin.king@canonical.com
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/block/zram/zram_drv.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/block/zram/zram_drv.c~zram-make-function-zram_page_end_io-static drivers/block/zram/zram_drv.c
--- a/drivers/block/zram/zram_drv.c~zram-make-function-zram_page_end_io-static
+++ a/drivers/block/zram/zram_drv.c
@@ -428,7 +428,7 @@ static void put_entry_bdev(struct zram *
 	WARN_ON_ONCE(!was_set);
 }
 
-void zram_page_end_io(struct bio *bio)
+static void zram_page_end_io(struct bio *bio)
 {
 	struct page *page = bio->bi_io_vec[0].bv_page;
 
_

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

mm-rmap-remove-redundant-variable-cend.patch
zram-make-function-zram_page_end_io-static.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-10-17 22:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-17 22:31 + zram-make-function-zram_page_end_io-static.patch added to -mm tree akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).