it clearer for
LSM programmers that when implememting these hooks they are
responsible for the CAP check.
Signed-off-by: Carmeli Tamir
---
include/linux/lsm_hooks.h | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/include/linux/lsm_hooks.h b/include/linux/lsm_hooks.h
Using the existing defined XATTR_SECURITY_PREFIX_LEN instead of
sizeof(XATTR_SECURITY_PREFIX) - 1. Pretty simple cleanup.
Signed-off-by: Carmeli Tamir
---
security/commoncap.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/security/commoncap.c b/security/commoncap.c
ability is prevented.
Signed-off-by: Carmeli Tamir
---
fs/binfmt_elf.c | 2 +-
fs/binfmt_misc.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c
index d4e11b2e04f6..3a2afe84943c 100644
--- a/fs/binfmt_elf.c
+++ b/fs/binfmt_elf.c
@@ -2411,7 +
From: Tamir
Fixed a checkpatch warning for usage of unsigned type.
Submitted as different patch in the series since it's not related
to the change, just wanted to fix checkpatch warnings from it.
Signed-off-by: Carmeli Tamir
---
fs/filesystems.c | 3 ++-
1 file changed, 2 insertions(+), 1
From: Tamir
Changed file_system_type next field to list_head and refactored
the code to use list.h functions.
Signed-off-by: Carmeli Tamir
---
fs/filesystems.c | 68 --
include/linux/fs.h | 2 +-
2 files changed, 36 insertions(+), 34 deletions
in
register_filesystem and find_filesystem), and eliminates unnecessary usage of *
and & operators.
Tested by comparing the lists in /proc/filesystems.
Carmeli Tamir (2):
Use list.h instead of file_system_type next
Changed unsigned param type to unsigned int
fs/filesystems.c
in
register_filesystem and find_filesystem), and eliminates unnecessary usage of *
and & operators.
Tested by comparing the lists in /proc/filesystems.
Carmeli Tamir (2):
Use list.h instead of file_system_type next
Changed unsigned param type to unsigned int
fs/filesystems.c
This patch introduces 3 new inline functions - is_fat12, is_fat16 and
is_fat32, and replaces every occurrence in the code in which the FS
variant (whether this is FAT12, FAT16 or FAT32) was previously checked
using msdos_sb_info->fat_bits.
Signed-off-by: Carmeli Tamir
---
fs/fat/cache.c |
and readability.
In addition, minor cleanups around code that checks for the FAT variant,
and fixed comments from v1 and v2.
Carmeli Tamir (3):
Removed fat_first_ent
Moved and inlined MAX_FAT
IS_FAT functions
fs/fat/cache.c| 2 +-
fs/fat/dir.c | 4 ++--
fs/fat
to save the double call
to MSDOS_SB. This was suggested by j...@perches.com in the previous
version.
This patch is required for the next in the series, in which the variant
(whether this is FAT12, FAT16 or FAT32) checks are replaced with new
macros.
Signed-off-by: Carmeli Tamir
---
fs/fat/fat.h
c%20%28SDA%20Contribution%29.pdf).
Search for 'volume label'.
2. Microsoft Extensible Firmware Initiative, FAT32 File System Specification
(https://staff.washington.edu/dittrich/misc/fatgen103.pdf).
Search for 'volume label'.
Signed-off-by: Carmeli Tamir
---
fs/fat/inode.c
c%20%28SDA%20Contribution%29.pdf).
Search for 'volume label'.
2. Microsoft Extensible Firmware Initiative, FAT32 File System Specification
(https://staff.washington.edu/dittrich/misc/fatgen103.pdf).
Search for 'volume label'.
Signed-off-by: Carmeli Tamir
---
fs/fat/inode.c
to save the double call
to MSDOS_SB. This was suggested by j...@perches.com in the previous
version.
This patch is required for the next in the series, in which the variant
(whether this is FAT12, FAT16 or FAT32) checks are replaced with new
macros.
Signed-off-by: Carmeli Tamir
---
fs/fat/fat.h
This patch introduces 3 new inline functions - IS_FAT12, IS_FAT16 and
IS_FAT32, and replaces every occurrence in the code in which the FS
variant (whether this is FAT12, FAT16 or FAT32) was previously checked
using msdos_sb_info->fat_bits.
Signed-off-by: Carmeli Tamir
---
fs/fat/cach
and readability.
In addition, minor cleanups around code that checks for the FAT variant,
and fixed comments from v1.
Carmeli Tamir (3):
Removed fat_first_ent
Moved and inlined MAX_FAT
IS_FAT functions
fs/fat/cache.c| 2 +-
fs/fat/dir.c | 4 ++--
fs/fat/fat.h
This patch introduces 3 new macros - IS_FAT12, IS_FAT16 and IS_FAT32,
and replaces every occurrence in the code in which the FS variant (whether
this is FAT12, FAT16 or FAT32) was previously checked using
msdos_sb_info->fat_bits.
Signed-off-by: Carmeli Tamir
---
fs/fat/cache.c | 2 +-
fs/
for the next in the series, in which the variant (whether
this is FAT12, FAT16 or FAT32) checks are replaced with new macros.
Signed-off-by: Carmeli Tamir
---
fs/fat/fat.h | 22 +-
include/uapi/linux/msdos_fs.h | 5 -
2 files changed, 17 insertions(+), 10
.
Carmeli Tamir (2):
fat: Moved macros that won't work without fat.h
fat: New macros to determine the FAT variant (32, 16 or 12)
fs/fat/cache.c| 2 +-
fs/fat/dir.c | 4 ++--
fs/fat/fat.h | 28 ++--
fs/fat/fatent.c
.
https://github.com/dosfstools/dosfstools/blob/master/src/mkfs.fat.c
Signed-off-by: Carmeli Tamir
---
include/uapi/linux/msdos_fs.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/uapi/linux/msdos_fs.h b/include/uapi/linux/msdos_fs.h
index fde7537..1216e6c 100644
.
https://github.com/dosfstools/dosfstools/blob/master/src/mkfs.fat.c
Signed-off-by: Carmeli Tamir
---
include/uapi/linux/msdos_fs.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/uapi/linux/msdos_fs.h b/include/uapi/linux/msdos_fs.h
index fde7537..1216e6c 100644
Since in nbu2ss_drv_probe() p_regs is assigned from mmio_base, which is
marked as __iomem, p_regs also should be market with __iomem.
Signed-off-by: Carmeli Tamir
---
drivers/staging/emxx_udc/emxx_udc.c | 44 ++---
drivers/staging/emxx_udc/emxx_udc.h | 2 +-
2
Fixed sparse tool warnings due to missing convesion from
le16 to cpu endienness.
Signed-off-by: Carmeli Tamir
---
drivers/staging/emxx_udc/emxx_udc.c | 22 --
1 file changed, 12 insertions(+), 10 deletions(-)
diff --git a/drivers/staging/emxx_udc/emxx_udc.c
b/drivers
Since in nbu2ss_drv_probe() p_regs is assigned from mmio_base, which is
marked as __iomem, p_regs also should be market with __iomem.
Signed-off-by: Carmeli Tamir
---
drivers/staging/emxx_udc/emxx_udc.c | 44 ++---
drivers/staging/emxx_udc/emxx_udc.h | 2 +-
2
Fixed sparse tool warnings due to missing convesion from
le16 to cpu endienness.
Signed-off-by: Carmeli Tamir
---
drivers/staging/emxx_udc/emxx_udc.c | 22 --
1 file changed, 12 insertions(+), 10 deletions(-)
diff --git a/drivers/staging/emxx_udc/emxx_udc.c
b/drivers
This series fixes all meaningful sparse (running make C=2... ) warnings.
The number of warnings is reduced from ~280 to 12 (only warnings of type
'expression using sizeof(void)' are left). Resent the series to Greg's request.
Carmeli Tamir (3):
staging: emxx_udc: Added static modifier
Added static modifier to the udc_controller, since it's only
required within emxx_udc.c.
Signed-off-by: Carmeli Tamir
---
drivers/staging/emxx_udc/emxx_udc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/emxx_udc/emxx_udc.c
b/drivers/staging/emxx_udc
This series fixes all meaningful sparse (running make C=2... ) warnings.
The number of warnings is reduced from ~280 to 12 (only warnings of type
'expression using sizeof(void)' are left). Resent the series to Greg's request.
Carmeli Tamir (3):
staging: emxx_udc: Added static modifier
Added static modifier to the udc_controller, since it's only
required within emxx_udc.c.
Signed-off-by: Carmeli Tamir
---
drivers/staging/emxx_udc/emxx_udc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/emxx_udc/emxx_udc.c
b/drivers/staging/emxx_udc
Fixed sparse tool warnings due to missing convesion from
le16 to cpu endienness. Previously posted without any feedback,
now updated according to master.
Signed-off-by: Carmeli Tamir
---
drivers/staging/emxx_udc/emxx_udc.c | 22 --
1 file changed, 12 insertions(+), 10
Fixed sparse tool warnings due to missing convesion from
le16 to cpu endienness. Previously posted without any feedback,
now updated according to master.
Signed-off-by: Carmeli Tamir
---
drivers/staging/emxx_udc/emxx_udc.c | 22 --
1 file changed, 12 insertions(+), 10
Since in nbu2ss_drv_probe() p_regs is assigned from mmio_base, which is
marked as __iomem, p_regs also should be market with __iomem.
Previously posted without any feedback, now updated according to master.
Signed-off-by: Carmeli Tamir
---
drivers/staging/emxx_udc/emxx_udc.c | 44
Since in nbu2ss_drv_probe() p_regs is assigned from mmio_base, which is
marked as __iomem, p_regs also should be market with __iomem.
Previously posted without any feedback, now updated according to master.
Signed-off-by: Carmeli Tamir
---
drivers/staging/emxx_udc/emxx_udc.c | 44
Added static modifier to the udc_controller, since it's only
required within emxx_udc.c.
Previously posted without any feedback, now updated according to master.
Signed-off-by: Carmeli Tamir
---
drivers/staging/emxx_udc/emxx_udc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff
Added static modifier to the udc_controller, since it's only
required within emxx_udc.c.
Previously posted without any feedback, now updated according to master.
Signed-off-by: Carmeli Tamir
---
drivers/staging/emxx_udc/emxx_udc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff
The function 'wait_event_freezable' calls '__wait_event_freezable' that
uses 'try_to_freeze', which is defined in freezer.h.
This causes a compilation error for callers of 'wait_event_freezables',
forcing them to include also freezer.h.
Signed-off-by: Carmeli Tamir
---
include/linux/wait.h | 1
The function 'wait_event_freezable' calls '__wait_event_freezable' that
uses 'try_to_freeze', which is defined in freezer.h.
This causes a compilation error for callers of 'wait_event_freezables',
forcing them to include also freezer.h.
Signed-off-by: Carmeli Tamir
---
include/linux/wait.h | 1
Since in nbu2ss_drv_probe() p_regs is assigned from mmio_base, which is
marked as __iomem, p_regs also should be market with __iomem.
Signed-off-by: Carmeli Tamir
---
drivers/staging/emxx_udc/emxx_udc.c | 44 ++---
drivers/staging/emxx_udc/emxx_udc.h | 2 +-
2
Fixed sparse tool warnings due to missing convesion from
le16 to cpu endienness.
Signed-off-by: Carmeli Tamir
---
drivers/staging/emxx_udc/emxx_udc.c | 22 +-
1 file changed, 13 insertions(+), 9 deletions(-)
diff --git a/drivers/staging/emxx_udc/emxx_udc.c
b/drivers
Since in nbu2ss_drv_probe() p_regs is assigned from mmio_base, which is
marked as __iomem, p_regs also should be market with __iomem.
Signed-off-by: Carmeli Tamir
---
drivers/staging/emxx_udc/emxx_udc.c | 44 ++---
drivers/staging/emxx_udc/emxx_udc.h | 2 +-
2
Fixed sparse tool warnings due to missing convesion from
le16 to cpu endienness.
Signed-off-by: Carmeli Tamir
---
drivers/staging/emxx_udc/emxx_udc.c | 22 +-
1 file changed, 13 insertions(+), 9 deletions(-)
diff --git a/drivers/staging/emxx_udc/emxx_udc.c
b/drivers
Added static modifier to the udc_controller, since it's only
required within emxx_udc.c.
Signed-off-by: Carmeli Tamir
---
drivers/staging/emxx_udc/emxx_udc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/emxx_udc/emxx_udc.c
b/drivers/staging/emxx_udc
Added static modifier to the udc_controller, since it's only
required within emxx_udc.c.
Signed-off-by: Carmeli Tamir
---
drivers/staging/emxx_udc/emxx_udc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/emxx_udc/emxx_udc.c
b/drivers/staging/emxx_udc
Fixed all meaningful sparse errors:
1. Added static to udc_controller
2. Added mising __iomem modifier to handle p_regs
3. Added missing le16_to_cpu
Signed-off-by: Tamir Carmeli
---
drivers/staging/emxx_udc/emxx_udc.c | 69 +++--
Fixed all meaningful sparse errors:
1. Added static to udc_controller
2. Added mising __iomem modifier to handle p_regs
3. Added missing le16_to_cpu
Signed-off-by: Tamir Carmeli
---
drivers/staging/emxx_udc/emxx_udc.c | 69 +++--
Signed-off-by: Tamir Carmeli
---
drivers/staging/emxx_udc/Makefile | 2 +-
drivers/staging/emxx_udc/emxx_udc.c | 69 +++--
drivers/staging/emxx_udc/emxx_udc.h | 2 +-
3 files changed, 38 insertions(+), 35 deletions(-)
diff --git
Signed-off-by: Tamir Carmeli
---
drivers/staging/emxx_udc/Makefile | 2 +-
drivers/staging/emxx_udc/emxx_udc.c | 69 +++--
drivers/staging/emxx_udc/emxx_udc.h | 2 +-
3 files changed, 38 insertions(+), 35 deletions(-)
diff --git
46 matches
Mail list logo