[PATCH] staging: atomisp: lm3554: fix sparse warnings(was not declared. Should it be static?)

2017-05-28 Thread Chen Guanqiao
Fix "symbol 'xxx' was not declared. Should it be static?" sparse warnings. Signed-off-by: Chen Guanqiao --- drivers/staging/media/atomisp/i2c/lm3554.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/media/atomisp/i2c/lm3554.c b/d

[PATCH] iio:meter:ade7759: Removing use of deprecated macros

2017-03-29 Thread Chen Guanqiao
Removing use of deprecated macros(S_IRUGO, SIWUGO, S_IXUGO), and replaced with 4 gidit octal. Signed-off-by: Chen Guanqiao --- drivers/staging/iio/meter/ade7759.c | 26 ++ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/drivers/staging/iio/meter/ade7759

[PATCH v9 1/3] fs: fat: Add fat filesystem partition volume label in local structure

2018-02-07 Thread Chen Guanqiao
Signed-off-by: Chen Guanqiao --- fs/fat/fat.h | 6 ++ fs/fat/inode.c| 6 ++ include/uapi/linux/msdos_fs.h | 2 ++ 3 files changed, 14 insertions(+) diff --git a/fs/fat/fat.h b/fs/fat/fat.h index 8fc1093da47d..11cf31802489 100644 --- a/fs/fat/fat.h +++ b

[PATCH v9 2/3] fs: fat: Add volume label entry method function

2018-02-07 Thread Chen Guanqiao
Signed-off-by: Chen Guanqiao --- fs/fat/dir.c | 47 +++ 1 file changed, 47 insertions(+) diff --git a/fs/fat/dir.c b/fs/fat/dir.c index 8e100c3bf72c..d5286402c829 100644 --- a/fs/fat/dir.c +++ b/fs/fat/dir.c @@ -881,6 +881,53 @@ static int

[PATCH v9 0/3] fs: fat: add ioctl to modify fat filesystem partion volume label

2018-02-07 Thread Chen Guanqiao
, Ignore the volume label in struct msdos_sb_info. The volume label format reference from Pali Rohár testing results in the previous mail. v9: 1. Add necessary lock to protect write method. 2. Fix some code bug. v8...v1: write the patch Chen Guanqiao (3): fs: fat: Add fat filesystem partition

[PATCH v9 3/3] fs: fat: add ioctl method in fat filesystem driver

2018-02-07 Thread Chen Guanqiao
Signed-off-by: Chen Guanqiao --- fs/fat/file.c | 145 ++ 1 file changed, 145 insertions(+) diff --git a/fs/fat/file.c b/fs/fat/file.c index 4724cc9ad650..e87c5ae9208e 100644 --- a/fs/fat/file.c +++ b/fs/fat/file.c @@ -15,11 +15,46

[PATCH] fs: fat: add ioctl to modify fat filesystem volume label

2017-12-20 Thread Chen Guanqiao
The FAT filesystem volume label can be read with FAT_IOCTL_GET_VOLUME_LABEL and written with FAT_IOCTL_SET_VOLUME_LABEL. Signed-off-by: Chen Guanqiao --- fs/fat/fat.h | 1 + fs/fat/file.c | 51 +++ fs/fat/inode.c

[PATCH 2/2] fs: fat: add ioctl method in fat filesystem driver

2017-12-21 Thread Chen Guanqiao
Signed-off-by: Chen Guanqiao --- fs/fat/file.c | 103 ++ 1 file changed, 103 insertions(+) diff --git a/fs/fat/file.c b/fs/fat/file.c index 4724cc9ad650..c42c1e2e3e09 100644 --- a/fs/fat/file.c +++ b/fs/fat/file.c @@ -20,6 +20,25

[PATCH 0/2] fs: fat: add ioctl to modify fat filesystem partion volume label

2017-12-21 Thread Chen Guanqiao
. remove sync_dirty_buffer(). Chen Guanqiao (2): fs: fat: add fat filesystem partition volume label in local structure fs: fat: add ioctl method in fat filesystem driver fs/fat/fat.h | 1 + fs/fat/file.c | 103 ++ fs

[PATCH 1/2] fs: fat: add fat filesystem partition volume label in local structure

2017-12-21 Thread Chen Guanqiao
Signed-off-by: Chen Guanqiao --- fs/fat/fat.h | 1 + fs/fat/inode.c| 15 --- include/uapi/linux/msdos_fs.h | 2 ++ 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/fs/fat/fat.h b/fs/fat/fat.h index 8fc1093da47d..204012c94421 100644

[PATCH v3 0/2] fs: fat: add ioctl to modify fat filesystem partion volume label

2017-12-23 Thread Chen Guanqiao
check. 4. fixed part of return value. 5. fixed some indent issue. 6. remove sync_dirty_buffer(). Chen Guanqiao (2): fs: fat: add fat filesystem partition volume label in local structure fs: fat: add ioctl method in fat filesystem driver fs/fat/fat.h | 1 + fs/fat/file.c

[PATCH v3 1/2] fs: fat: add fat filesystem partition volume label in local structure

2017-12-23 Thread Chen Guanqiao
Signed-off-by: Chen Guanqiao --- fs/fat/fat.h | 1 + fs/fat/inode.c| 15 --- include/uapi/linux/msdos_fs.h | 2 ++ 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/fs/fat/fat.h b/fs/fat/fat.h index 8fc1093da47d..204012c94421 100644

[PATCH v3 2/2] fs: fat: add ioctl method in fat filesystem driver

2017-12-23 Thread Chen Guanqiao
Signed-off-by: Chen Guanqiao --- fs/fat/file.c | 116 ++ 1 file changed, 116 insertions(+) diff --git a/fs/fat/file.c b/fs/fat/file.c index 4724cc9ad650..972f9aed5b46 100644 --- a/fs/fat/file.c +++ b/fs/fat/file.c @@ -20,6 +20,25