android_kernel_google_msm/drivers/block
Sergey Senozhatsky c904aa78bb zram: use scnprintf() in attrs show() methods
(cherry pick from commit 56b4e8cb85)

sysfs.txt documentation lists the following requirements:

 - The buffer will always be PAGE_SIZE bytes in length. On i386, this
   is 4096.

 - show() methods should return the number of bytes printed into the
   buffer. This is the return value of scnprintf().

 - show() should always use scnprintf().

Use scnprintf() in show() functions.

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Acked-by: Minchan Kim <minchan@kernel.org>
Cc: Jerome Marchand <jmarchan@redhat.com>
Cc: Nitin Gupta <ngupta@vflare.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Bug: 24810447
Change-Id: If890b214eddd582cc52e731ad75733236e8806f0
2018-01-01 21:26:53 +03:00
..
aoe aoe: reserve enough headroom on skbs 2013-04-05 10:04:40 -07:00
drbd drbd: merge_bvec_fn: properly remap bvm->bi_bdev 2015-04-14 17:33:41 +08:00
mtip32xx mtip32xx: release the semaphore on an error path 2012-05-11 16:42:14 +02:00
paride
xen-blkback xen-blkback: only read request operation from shared ring once 2016-10-26 23:15:39 +08:00
zram zram: use scnprintf() in attrs show() methods 2018-01-01 21:26:53 +03:00
amiflop.c
ataflop.c
brd.c block: fix a probe argument to blk_register_region 2013-11-29 10:50:36 -08:00
cciss.c cciss: fix info leak in cciss_ioctl32_passthru() 2013-10-13 15:42:47 -07:00
cciss.h
cciss_cmd.h
cciss_scsi.c cciss: fix handling of protocol error 2012-10-02 10:29:50 -07:00
cciss_scsi.h
cpqarray.c cpqarray: fix info leak in ida_locked_ioctl() 2013-10-13 15:42:47 -07:00
cpqarray.h
cryptoloop.c
DAC960.c dac960: Remove unused variables from DAC960_CreateProcEntries() 2012-05-11 16:42:14 +02:00
DAC960.h
floppy.c floppy: properly handle failure on add_disk loop 2014-06-07 16:02:06 -07:00
hd.c
ida_cmd.h
ida_ioctl.h
Kconfig zram: promote zram from staging 2018-01-01 21:26:45 +03:00
loop.c loop: fix crash if blk_alloc_queue fails 2013-12-04 10:50:28 -08:00
Makefile zram: promote zram from staging 2018-01-01 21:26:45 +03:00
mg_disk.c
nbd.c nbd: fix possible memory leak 2015-06-19 11:40:28 +08:00
nvme.c NVMe: Fix uninitialized iod compiler warning 2012-12-03 11:46:36 -08:00
osdblk.c
pktcdvd.c
ps3disk.c
ps3vram.c
rbd.c rbd: do not allow remove of mounted-on image 2013-01-17 08:51:21 -08:00
rbd_types.h
smart1,2.h
sunvdc.c sunvdc: Fix off-by-one in generic_request(). 2013-02-28 06:59:02 -08:00
swim.c
swim3.c
swim_asm.S
sx8.c
ub.c
umem.c umem: fix up unplugging 2012-07-16 09:04:08 -07:00
umem.h
virtio_blk.c virtio-blk: Don't free ida when disk is in use 2014-06-11 12:04:18 -07:00
xd.c
xd.h
xen-blkfront.c xen-blkfront: check for null drvdata in blkback_changed (XenbusStateClosing) 2016-04-27 18:55:27 +08:00
xsysace.c
z2ram.c