[PATCH] usb: microtek: Use "foo *bar" instead of "foo * bar".

2016-06-01 Thread Sandhya Bankar
Use "foo *bar" instead of "foo * bar". Signed-off-by: Sandhya Bankar <bankarsandhya...@gmail.com> --- drivers/usb/image/microtek.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/image/microtek.h b/drivers/usb/image/microtek.h ind

[PATCH] usb: musbhsdma: Add space after that ','.

2016-06-01 Thread Sandhya Bankar
Add space after that ','. Signed-off-by: Sandhya Bankar <bankarsandhya...@gmail.com> --- drivers/usb/musb/musbhsdma.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/musb/musbhsdma.h b/drivers/usb/musb/musbhsdma.h index f7b13fd2..46a2bb9 100644 --- a/drive

[PATCH] usb: musb_host: Use sizeof(*qh)instead of sizeof *qh.

2016-06-01 Thread Sandhya Bankar
Use sizeof(*qh)instead of sizeof *qh. Signed-off-by: Sandhya Bankar <bankarsandhya...@gmail.com> --- drivers/usb/musb/musb_host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c index 2f8ad7f..72121fe

[PATCH] usb: cdc-acm: Space prohibited before close parenthesis ')'.

2016-05-31 Thread Sandhya Bankar
Space prohibited before close parenthesis ')'. Signed-off-by: Sandhya Bankar <bankarsandhya...@gmail.com> --- drivers/usb/class/cdc-acm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c index 94a14f5..def5a54

[PATCH] usb: phy-omap-otg: Space required after that ','.

2016-05-31 Thread Sandhya Bankar
Space required after that ','. Signed-off-by: Sandhya Bankar <bankarsandhya...@gmail.com> --- drivers/usb/phy/phy-omap-otg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/phy/phy-omap-otg.c b/drivers/usb/phy/phy-omap-otg.c index c4bf2de..6f6d2a7

[PATCH] usb: Remove unnecessary space before function pointer arguments.

2016-04-24 Thread Sandhya Bankar
Remove unnecessary space before function pointer arguments. Signed-off-by: Sandhya Bankar <bankarsandhya...@gmail.com> --- drivers/usb/atm/ueagle-atm.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/usb/atm/ueagle-atm.c b/drivers/usb/atm/ueagle-atm.c

[PATCH 0/3] Remove unnecessary pci_set_drvdata() and platform_set_drvdata().

2016-05-11 Thread Sandhya Bankar
Unnecessary [platform|pci]_set_drvdata() have been removed since the driver core clears the driver datato NULL after device release or on probe failure. There is no need to manually clear the device driver data to NULL. Sandhya Bankar (3): usb: pci: Remove unnecessary pci_set_drvdata(). usb

[PATCH 1/3] usb: pci: Remove unnecessary pci_set_drvdata().

2016-05-11 Thread Sandhya Bankar
Unnecessary [platform|pci]_set_drvdata() have been removed since the driver core clears the driver data to NULLafter device release or on probe failure. There is no need to manually clear the device driver data to NULL. Signed-off-by: Sandhya Bankar <bankarsandhya...@gmail.com> --- drive

[PATCH 2/3] usb: dwc3-keystone: Remove unnecessary platform_set_drvdata().

2016-05-11 Thread Sandhya Bankar
Unnecessary [platform|pci]_set_drvdata() have been removed since the driver core clears the driver data to NULLafter device release or on probe failure. There is no need to manually clear the device driver data to NULL Signed-off-by: Sandhya Bankar <bankarsandhya...@gmail.com> --- drive

[PATCH 3/3] usb: gr_udc: Remove unnecessary platform_set_drvdata().

2016-05-11 Thread Sandhya Bankar
Unnecessary [platform|pci]_set_drvdata() have been removed since the driver core clears the driver data to NULLafter device release or on probe failure. There is no need to manually clear the device driver data to NULL. Signed-off-by: Sandhya Bankar <bankarsandhya...@gmail.com> --- drive

[PATCH] usb: Remove unnecessary space before open square bracket.

2016-05-04 Thread Sandhya Bankar
Remove unnecessary space before open square bracket. Signed-off-by: Sandhya Bankar <bankarsandhya...@gmail.com> --- drivers/usb/isp1760/isp1760-if.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/isp1760/isp1760-if.c b/drivers/usb/isp1760/isp1760-if.c

[PATCH] usb: Remove unnecessary space before operator ','.

2016-05-04 Thread Sandhya Bankar
Remove unnecessary space before operator ','. Signed-off-by: Sandhya Bankar <bankarsandhya...@gmail.com> --- drivers/usb/phy/phy-twl6030-usb.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/usb/phy/phy-twl6030-usb.c b/drivers/usb/phy/phy-twl6030

[PATCH] usb: Use (foo *) instead of (foo*).

2016-05-04 Thread Sandhya Bankar
Use (foo *) instead of (foo*). Signed-off-by: Sandhya Bankar <bankarsandhya...@gmail.com> --- drivers/usb/gadget/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/config.c b/drivers/usb/gadget/config.c index e6c0542..17a6077 100644 --- a/drive

[PATCH] usb: wusbcore: Do not initialise statics to 0.

2016-05-09 Thread Sandhya Bankar
Do not initialise statics to 0. This patch is found by checkpatch.pl script. Signed-off-by: Sandhya Bankar <bankarsandhya...@gmail.com> --- drivers/usb/wusbcore/crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/wusbcore/crypto.c b/drivers/usb/wu

[PATCH] usb: wusbcore: Remove space before ',' and '(' .

2016-05-09 Thread Sandhya Bankar
Remove space before ',' and '(' . This patch is detected by checkpatch.pl Signed-off-by: Sandhya Bankar <bankarsandhya...@gmail.com> --- drivers/usb/wusbcore/crypto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/wusbcore/crypto.c b/drivers/usb/wu

[PATCH] Staging: sm750fb: Use x instead of x != NULL

2016-09-14 Thread Sandhya Bankar
Use x instead of x != NULL . This patch removes the explicit NULL comparisons.This issue is found by checkpatch.pl script . CHECK: Comparison to NULL could be written "pCurrentDviCtrl->pfnInit" Signed-off-by: Sandhya Bankar <bankarsandhya...@gmail.com> --- drivers/staging/s

[RESEND PATCH 06/13] vfs: Remove next_fd from fd alloc code path.

2017-07-11 Thread Sandhya Bankar
The IDR is used in file descriptor allocation code to allocate new file descriptor so, no need of next_fd to track next file descriptor. Hence removing it from file descriptor allocation code path. Signed-off-by: Sandhya Bankar <bankarsandhya...@gmail.com> Signed-off-by: Matthew Wilcox

[RESEND PATCH 08/13] vfs: Use idr_tag_get() in fd_is_open().

2017-07-11 Thread Sandhya Bankar
Use idr_tag_get() in fd_is_open() to know whether a given fd is allocated. Also move fd_is_open() to file.c and make it static as it is only called from one place. Signed-off-by: Sandhya Bankar <bankarsandhya...@gmail.com> Signed-off-by: Matthew Wilcox <mawil...@microsoft.com> --

[RESEND PATCH 00/13] vfs: Convert file allocation code to use the IDR

2017-07-11 Thread Sandhya Bankar
. The performance benchmark needs to be run on this patchset. Matthew Wilcox (5): idr: Add ability to set/clear tags idr: Add idr_for_each_entry_tagged() idr, radix-tree: Add get_tag_batch function idr, radix-tree: Implement copy_preload vfs: Add init_task.h include Sandhya Bankar (8

[RESEND PATCH 05/13] vfs: Replace array of file pointers with an IDR

2017-07-11 Thread Sandhya Bankar
Instead of storing all the file pointers in a single array, use an IDR. It is RCU-safe, and does not need to be reallocated when the fd array grows. It also handles allocation of new file descriptors. Signed-off-by: Sandhya Bankar <bankarsandhya...@gmail.com> [mawil...@microsoft.com:

[RESEND PATCH 07/13] vfs: Remove full_fds_bits from fd allocation code path.

2017-07-11 Thread Sandhya Bankar
The IDR has removed the need to have full_fds_bits hence removing it. Signed-off-by: Sandhya Bankar <bankarsandhya...@gmail.com> Signed-off-by: Matthew Wilcox <mawil...@microsoft.com> --- fs/file.c | 18 +- include/linux/fdtable.h | 2 -- 2 file

[RESEND PATCH 09/13] vfs: Rewrite close_files()

2017-07-11 Thread Sandhya Bankar
Use the IDR iteration functionality instead of the open_fds bitmap to call filp_close() for each open file. Also make close_files() return void, because it no longer uses the fdtable. Signed-off-by: Sandhya Bankar <bankarsandhya...@gmail.com> Signed-off-by: Matthew Wilcox <mawil...@micr

[RESEND PATCH 12/13] vfs: Convert select to use idr_get_tag_batch()

2017-07-11 Thread Sandhya Bankar
Convert select to use idr_get_tag_batch(). Signed-off-by: Sandhya Bankar <bankarsandhya...@gmail.com> Signed-off-by: Matthew Wilcox <mawil...@microsoft.com> --- fs/select.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/fs/select.c b/fs/select.c i

[RESEND PATCH 13/13] vfs: Delete struct fdtable

2017-07-11 Thread Sandhya Bankar
Now we don't use RCU to protect files->max_fds. So using READ_ONCE() macro to read the value of files->max_fds. Signed-off-by: Sandhya Bankar <bankarsandhya...@gmail.com> Signed-off-by: Matthew Wilcox <mawil...@microsoft.com> --- fs/compat.c | 6 +- fs/f

[RESEND PATCH 10/13] vfs: Replace close_on_exec bitmap with an IDR tag

2017-07-11 Thread Sandhya Bankar
Replace close_on_exec with idr_(get,set,clear)_tag(). Through this patch, added new IDR tag FD_TAG_CLOEXEC which is passing to idr_(get,set,clear)_tag() to achieve close_on_exec functionality. Also removed get_close_on_exec() and using close_on_exec() instead of that. Signed-off-by: Sandhya

[PATCH 00/13] vfs: Convert file allocation code to use the IDR

2017-04-29 Thread Sandhya Bankar
: Implement copy_preload vfs: Add init_task.h include Sandhya Bankar (8): vfs: Replace array of file pointers with an IDR vfs: Remove next_fd from fd alloc code path. vfs: Remove full_fds_bits from fd allocation code path. vfs: Use idr_tag_get() in fd_is_open(). vfs: Rewrite close_files

[PATCH 04/13] idr, radix-tree: Implement copy_preload

2017-04-29 Thread Sandhya Bankar
In the file descriptor table duplication code (called at fork()), we need to duplicate an IDR. But we have to do it under a lock (so another thread doesn't open/close a fd in the middle), and there's no suitable preload operation for this today. Adding just idr_copy_preload() isn't enough as

[PATCH 05/13] vfs: Replace array of file pointers with an IDR

2017-04-29 Thread Sandhya Bankar
Instead of storing all the file pointers in a single array, use an IDR. It is RCU-safe, and does not need to be reallocated when the fd array grows. It also handles allocation of new file descriptors. Signed-off-by: Sandhya Bankar <bankarsandhya...@gmail.com> [mawil...@microsoft.com:

[PATCH 06/13] vfs: Remove next_fd from fd alloc code path.

2017-04-29 Thread Sandhya Bankar
The IDR is used in file descriptor allocation code to allocate new file descriptor so, no need of next_fd to track next file descriptor. Hence removing it from file descriptor allocation code path. Signed-off-by: Sandhya Bankar <bankarsandhya...@gmail.com> Signed-off-by: Matthew Wilcox

[PATCH 10/13] vfs: Replace close_on_exec bitmap with an IDR tag

2017-04-29 Thread Sandhya Bankar
Replace close_on_exec with idr_(get,set,clear)_tag(). Through this patch, added new IDR tag FD_TAG_CLOEXEC which is passing to idr_(get,set,clear)_tag() to achieve close_on_exec functionality. Also removed get_close_on_exec() and using close_on_exec() instead of that. Signed-off-by: Sandhya

[PATCH 13/13] vfs: Delete struct fdtable

2017-04-29 Thread Sandhya Bankar
Now we don't use RCU to protect files->max_fds. So using READ_ONCE() macro to read the value of files->max_fds. Signed-off-by: Sandhya Bankar <bankarsandhya...@gmail.com> Signed-off-by: Matthew Wilcox <mawil...@microsoft.com> --- fs/compat.c | 6 +- fs/f

[PATCH 12/13] vfs: Convert select to use idr_get_tag_batch()

2017-04-29 Thread Sandhya Bankar
Convert select to use idr_get_tag_batch(). Signed-off-by: Sandhya Bankar <bankarsandhya...@gmail.com> Signed-off-by: Matthew Wilcox <mawil...@microsoft.com> --- fs/select.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/fs/select.c b/fs/select.c i

[PATCH 11/13] vfs: Add init_task.h include

2017-04-29 Thread Sandhya Bankar
Removes a sparse warning about init_files() not being declared. Signed-off-by: Matthew Wilcox --- fs/file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/file.c b/fs/file.c index 56c5731..23f198b 100644 --- a/fs/file.c +++ b/fs/file.c @@ -19,6 +19,7 @@ #include

[PATCH 02/13] idr: Add idr_for_each_entry_tagged()

2017-04-29 Thread Sandhya Bankar
Add the ability to iterate over tagged entries in the IDR with idr_get_next_tag() and idr_for_each_entry_tagged(). Signed-off-by: Matthew Wilcox --- include/linux/idr.h | 15 ++- lib/idr.c | 30

[PATCH 03/13] idr, radix-tree: Add get_tag_batch function

2017-04-29 Thread Sandhya Bankar
To implement select() on top of the IDR, we need to be able to get the tags which represent the open files in bulk. For this user, it makes sense to get a batch of BITS_PER_LONG tags at a time, and until another user shows up that wants something different, let's enforce that instead of coping

[PATCH 07/13] vfs: Remove full_fds_bits from fd allocation code path.

2017-04-29 Thread Sandhya Bankar
The IDR has removed the need to have full_fds_bits hence removing it. Signed-off-by: Sandhya Bankar <bankarsandhya...@gmail.com> Signed-off-by: Matthew Wilcox <mawil...@microsoft.com> --- fs/file.c | 18 +- include/linux/fdtable.h | 2 -- 2 file

[PATCH 08/13] vfs: Use idr_tag_get() in fd_is_open().

2017-04-29 Thread Sandhya Bankar
Use idr_tag_get() in fd_is_open() to know whether a given fd is allocated. Also move fd_is_open() to file.c and make it static as it is only called from one place. Signed-off-by: Sandhya Bankar <bankarsandhya...@gmail.com> Signed-off-by: Matthew Wilcox <mawil...@microsoft.com> --

[PATCH 09/13] vfs: Rewrite close_files()

2017-04-29 Thread Sandhya Bankar
Use the IDR iteration functionality instead of the open_fds bitmap to call filp_close() for each open file. Also make close_files() return void, because it no longer uses the fdtable. Signed-off-by: Sandhya Bankar <bankarsandhya...@gmail.com> Signed-off-by: Matthew Wilcox <mawil...@micr

[RESEND PATCH 00/13] vfs: Convert file allocation code to use the IDR

2017-07-11 Thread Sandhya Bankar
. The performance benchmark needs to be run on this patchset. Matthew Wilcox (5): idr: Add ability to set/clear tags idr: Add idr_for_each_entry_tagged() idr, radix-tree: Add get_tag_batch function idr, radix-tree: Implement copy_preload vfs: Add init_task.h include Sandhya Bankar (8

[RESEND PATCH 05/13] vfs: Replace array of file pointers with an IDR

2017-07-11 Thread Sandhya Bankar
Instead of storing all the file pointers in a single array, use an IDR. It is RCU-safe, and does not need to be reallocated when the fd array grows. It also handles allocation of new file descriptors. Signed-off-by: Sandhya Bankar [mawil...@microsoft.com: fixes] Signed-off-by: Matthew Wilcox

[RESEND PATCH 06/13] vfs: Remove next_fd from fd alloc code path.

2017-07-11 Thread Sandhya Bankar
The IDR is used in file descriptor allocation code to allocate new file descriptor so, no need of next_fd to track next file descriptor. Hence removing it from file descriptor allocation code path. Signed-off-by: Sandhya Bankar Signed-off-by: Matthew Wilcox --- fs/file.c | 6

[RESEND PATCH 07/13] vfs: Remove full_fds_bits from fd allocation code path.

2017-07-11 Thread Sandhya Bankar
The IDR has removed the need to have full_fds_bits hence removing it. Signed-off-by: Sandhya Bankar Signed-off-by: Matthew Wilcox --- fs/file.c | 18 +- include/linux/fdtable.h | 2 -- 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/fs/file.c b/fs

[RESEND PATCH 08/13] vfs: Use idr_tag_get() in fd_is_open().

2017-07-11 Thread Sandhya Bankar
Use idr_tag_get() in fd_is_open() to know whether a given fd is allocated. Also move fd_is_open() to file.c and make it static as it is only called from one place. Signed-off-by: Sandhya Bankar Signed-off-by: Matthew Wilcox --- fs/file.c | 7 ++- include/linux/fdtable.h | 5

[RESEND PATCH 09/13] vfs: Rewrite close_files()

2017-07-11 Thread Sandhya Bankar
Use the IDR iteration functionality instead of the open_fds bitmap to call filp_close() for each open file. Also make close_files() return void, because it no longer uses the fdtable. Signed-off-by: Sandhya Bankar Signed-off-by: Matthew Wilcox --- fs/file.c | 37

[RESEND PATCH 10/13] vfs: Replace close_on_exec bitmap with an IDR tag

2017-07-11 Thread Sandhya Bankar
Replace close_on_exec with idr_(get,set,clear)_tag(). Through this patch, added new IDR tag FD_TAG_CLOEXEC which is passing to idr_(get,set,clear)_tag() to achieve close_on_exec functionality. Also removed get_close_on_exec() and using close_on_exec() instead of that. Signed-off-by: Sandhya

[RESEND PATCH 12/13] vfs: Convert select to use idr_get_tag_batch()

2017-07-11 Thread Sandhya Bankar
Convert select to use idr_get_tag_batch(). Signed-off-by: Sandhya Bankar Signed-off-by: Matthew Wilcox --- fs/select.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/fs/select.c b/fs/select.c index e211227..5d20a14 100644 --- a/fs/select.c +++ b/fs/select.c

[RESEND PATCH 13/13] vfs: Delete struct fdtable

2017-07-11 Thread Sandhya Bankar
Now we don't use RCU to protect files->max_fds. So using READ_ONCE() macro to read the value of files->max_fds. Signed-off-by: Sandhya Bankar Signed-off-by: Matthew Wilcox --- fs/compat.c | 6 +- fs/file.c | 354 +++

[PATCH] Staging: sm750fb: Use x instead of x != NULL

2016-09-14 Thread Sandhya Bankar
Use x instead of x != NULL . This patch removes the explicit NULL comparisons.This issue is found by checkpatch.pl script . CHECK: Comparison to NULL could be written "pCurrentDviCtrl->pfnInit" Signed-off-by: Sandhya Bankar --- drivers/staging/sm750fb/ddk750_dvi.c | 2 +- 1 fi

[PATCH 00/13] vfs: Convert file allocation code to use the IDR

2017-04-29 Thread Sandhya Bankar
: Implement copy_preload vfs: Add init_task.h include Sandhya Bankar (8): vfs: Replace array of file pointers with an IDR vfs: Remove next_fd from fd alloc code path. vfs: Remove full_fds_bits from fd allocation code path. vfs: Use idr_tag_get() in fd_is_open(). vfs: Rewrite close_files

[PATCH 02/13] idr: Add idr_for_each_entry_tagged()

2017-04-29 Thread Sandhya Bankar
Add the ability to iterate over tagged entries in the IDR with idr_get_next_tag() and idr_for_each_entry_tagged(). Signed-off-by: Matthew Wilcox --- include/linux/idr.h | 15 ++- lib/idr.c | 30 +-

[PATCH 03/13] idr, radix-tree: Add get_tag_batch function

2017-04-29 Thread Sandhya Bankar
To implement select() on top of the IDR, we need to be able to get the tags which represent the open files in bulk. For this user, it makes sense to get a batch of BITS_PER_LONG tags at a time, and until another user shows up that wants something different, let's enforce that instead of coping

[PATCH 04/13] idr, radix-tree: Implement copy_preload

2017-04-29 Thread Sandhya Bankar
In the file descriptor table duplication code (called at fork()), we need to duplicate an IDR. But we have to do it under a lock (so another thread doesn't open/close a fd in the middle), and there's no suitable preload operation for this today. Adding just idr_copy_preload() isn't enough as

[PATCH 05/13] vfs: Replace array of file pointers with an IDR

2017-04-29 Thread Sandhya Bankar
Instead of storing all the file pointers in a single array, use an IDR. It is RCU-safe, and does not need to be reallocated when the fd array grows. It also handles allocation of new file descriptors. Signed-off-by: Sandhya Bankar [mawil...@microsoft.com: fixes] Signed-off-by: Matthew Wilcox

[PATCH 06/13] vfs: Remove next_fd from fd alloc code path.

2017-04-29 Thread Sandhya Bankar
The IDR is used in file descriptor allocation code to allocate new file descriptor so, no need of next_fd to track next file descriptor. Hence removing it from file descriptor allocation code path. Signed-off-by: Sandhya Bankar Signed-off-by: Matthew Wilcox --- fs/file.c | 6

[PATCH 07/13] vfs: Remove full_fds_bits from fd allocation code path.

2017-04-29 Thread Sandhya Bankar
The IDR has removed the need to have full_fds_bits hence removing it. Signed-off-by: Sandhya Bankar Signed-off-by: Matthew Wilcox --- fs/file.c | 18 +- include/linux/fdtable.h | 2 -- 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/fs/file.c b/fs

[PATCH 08/13] vfs: Use idr_tag_get() in fd_is_open().

2017-04-29 Thread Sandhya Bankar
Use idr_tag_get() in fd_is_open() to know whether a given fd is allocated. Also move fd_is_open() to file.c and make it static as it is only called from one place. Signed-off-by: Sandhya Bankar Signed-off-by: Matthew Wilcox --- fs/file.c | 7 ++- include/linux/fdtable.h | 5

[PATCH 09/13] vfs: Rewrite close_files()

2017-04-29 Thread Sandhya Bankar
Use the IDR iteration functionality instead of the open_fds bitmap to call filp_close() for each open file. Also make close_files() return void, because it no longer uses the fdtable. Signed-off-by: Sandhya Bankar Signed-off-by: Matthew Wilcox --- fs/file.c | 37

[PATCH 10/13] vfs: Replace close_on_exec bitmap with an IDR tag

2017-04-29 Thread Sandhya Bankar
Replace close_on_exec with idr_(get,set,clear)_tag(). Through this patch, added new IDR tag FD_TAG_CLOEXEC which is passing to idr_(get,set,clear)_tag() to achieve close_on_exec functionality. Also removed get_close_on_exec() and using close_on_exec() instead of that. Signed-off-by: Sandhya

[PATCH 11/13] vfs: Add init_task.h include

2017-04-29 Thread Sandhya Bankar
Removes a sparse warning about init_files() not being declared. Signed-off-by: Matthew Wilcox --- fs/file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/file.c b/fs/file.c index 56c5731..23f198b 100644 --- a/fs/file.c +++ b/fs/file.c @@ -19,6 +19,7 @@ #include #include #include

[PATCH 12/13] vfs: Convert select to use idr_get_tag_batch()

2017-04-29 Thread Sandhya Bankar
Convert select to use idr_get_tag_batch(). Signed-off-by: Sandhya Bankar Signed-off-by: Matthew Wilcox --- fs/select.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/fs/select.c b/fs/select.c index e211227..5d20a14 100644 --- a/fs/select.c +++ b/fs/select.c

[PATCH 13/13] vfs: Delete struct fdtable

2017-04-29 Thread Sandhya Bankar
Now we don't use RCU to protect files->max_fds. So using READ_ONCE() macro to read the value of files->max_fds. Signed-off-by: Sandhya Bankar Signed-off-by: Matthew Wilcox --- fs/compat.c | 6 +- fs/file.c | 354 +++

[PATCH 0/3] Remove unnecessary pci_set_drvdata() and platform_set_drvdata().

2016-05-11 Thread Sandhya Bankar
Unnecessary [platform|pci]_set_drvdata() have been removed since the driver core clears the driver datato NULL after device release or on probe failure. There is no need to manually clear the device driver data to NULL. Sandhya Bankar (3): usb: pci: Remove unnecessary pci_set_drvdata(). usb

[PATCH 1/3] usb: pci: Remove unnecessary pci_set_drvdata().

2016-05-11 Thread Sandhya Bankar
Unnecessary [platform|pci]_set_drvdata() have been removed since the driver core clears the driver data to NULLafter device release or on probe failure. There is no need to manually clear the device driver data to NULL. Signed-off-by: Sandhya Bankar --- drivers/usb/dwc2/pci.c | 1 - 1 file

[PATCH 2/3] usb: dwc3-keystone: Remove unnecessary platform_set_drvdata().

2016-05-11 Thread Sandhya Bankar
Unnecessary [platform|pci]_set_drvdata() have been removed since the driver core clears the driver data to NULLafter device release or on probe failure. There is no need to manually clear the device driver data to NULL Signed-off-by: Sandhya Bankar --- drivers/usb/dwc3/dwc3-keystone.c | 1

[PATCH 3/3] usb: gr_udc: Remove unnecessary platform_set_drvdata().

2016-05-11 Thread Sandhya Bankar
Unnecessary [platform|pci]_set_drvdata() have been removed since the driver core clears the driver data to NULLafter device release or on probe failure. There is no need to manually clear the device driver data to NULL. Signed-off-by: Sandhya Bankar --- drivers/usb/gadget/udc/gr_udc.c | 1

[PATCH] usb: Remove unnecessary space before open square bracket.

2016-05-04 Thread Sandhya Bankar
Remove unnecessary space before open square bracket. Signed-off-by: Sandhya Bankar --- drivers/usb/isp1760/isp1760-if.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/isp1760/isp1760-if.c b/drivers/usb/isp1760/isp1760-if.c index 264be4d..9535b28 100644

[PATCH] usb: Remove unnecessary space before operator ','.

2016-05-04 Thread Sandhya Bankar
Remove unnecessary space before operator ','. Signed-off-by: Sandhya Bankar --- drivers/usb/phy/phy-twl6030-usb.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/usb/phy/phy-twl6030-usb.c b/drivers/usb/phy/phy-twl6030-usb.c index 014dbbd7..24e2b3c 100644

[PATCH] usb: Use (foo *) instead of (foo*).

2016-05-04 Thread Sandhya Bankar
Use (foo *) instead of (foo*). Signed-off-by: Sandhya Bankar --- drivers/usb/gadget/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/config.c b/drivers/usb/gadget/config.c index e6c0542..17a6077 100644 --- a/drivers/usb/gadget/config.c +++ b

[PATCH] usb: wusbcore: Do not initialise statics to 0.

2016-05-09 Thread Sandhya Bankar
Do not initialise statics to 0. This patch is found by checkpatch.pl script. Signed-off-by: Sandhya Bankar --- drivers/usb/wusbcore/crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/wusbcore/crypto.c b/drivers/usb/wusbcore/crypto.c index 8ed8e34..f7fc2371

[PATCH] usb: wusbcore: Remove space before ',' and '(' .

2016-05-09 Thread Sandhya Bankar
Remove space before ',' and '(' . This patch is detected by checkpatch.pl Signed-off-by: Sandhya Bankar --- drivers/usb/wusbcore/crypto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/wusbcore/crypto.c b/drivers/usb/wusbcore/crypto.c index f7fc2371

[PATCH] usb: cdc-acm: Space prohibited before close parenthesis ')'.

2016-05-31 Thread Sandhya Bankar
Space prohibited before close parenthesis ')'. Signed-off-by: Sandhya Bankar --- drivers/usb/class/cdc-acm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c index 94a14f5..def5a54 100644 --- a/drivers/usb/class/cdc

[PATCH] usb: phy-omap-otg: Space required after that ','.

2016-05-31 Thread Sandhya Bankar
Space required after that ','. Signed-off-by: Sandhya Bankar --- drivers/usb/phy/phy-omap-otg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/phy/phy-omap-otg.c b/drivers/usb/phy/phy-omap-otg.c index c4bf2de..6f6d2a7 100644 --- a/drivers/usb/phy/phy-omap-otg.c

[PATCH] usb: microtek: Use "foo *bar" instead of "foo * bar".

2016-06-01 Thread Sandhya Bankar
Use "foo *bar" instead of "foo * bar". Signed-off-by: Sandhya Bankar --- drivers/usb/image/microtek.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/image/microtek.h b/drivers/usb/image/microtek.h index ccce318..7e32ae7 100644 ---

[PATCH] usb: musb_host: Use sizeof(*qh)instead of sizeof *qh.

2016-06-01 Thread Sandhya Bankar
Use sizeof(*qh)instead of sizeof *qh. Signed-off-by: Sandhya Bankar --- drivers/usb/musb/musb_host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c index 2f8ad7f..72121fe 100644 --- a/drivers/usb/musb/musb_host.c

[PATCH] usb: musbhsdma: Add space after that ','.

2016-06-01 Thread Sandhya Bankar
Add space after that ','. Signed-off-by: Sandhya Bankar --- drivers/usb/musb/musbhsdma.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/musb/musbhsdma.h b/drivers/usb/musb/musbhsdma.h index f7b13fd2..46a2bb9 100644 --- a/drivers/usb/musb/musbhsdma.h +++ b

[PATCH] usb: Remove unnecessary space before function pointer arguments.

2016-04-24 Thread Sandhya Bankar
Remove unnecessary space before function pointer arguments. Signed-off-by: Sandhya Bankar --- drivers/usb/atm/ueagle-atm.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/usb/atm/ueagle-atm.c b/drivers/usb/atm/ueagle-atm.c index 0186442..4333dc5 100644