Hi,
Did you read this?
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/staging/irda/TODO
Thanks,
Shyam
> This patch fixes the following checkpatch.pl issue at multiple lines:
>
> WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
>
> Signed-off-by: Sumit P
fixed checkpatch.pl warning about 'Prefer 'unsigned int' to bare use of
'unsigned'
Signed-off-by: Shyam Saini
---
drivers/staging/emxx_udc/emxx_udc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/emxx_udc/emxx_udc.c
b
Fixed following checkpatch.pl warnings
WARNING: Prefer WRITE_ONCE(, ) over ACCESS_ONCE() =
WARNING: Prefer READ_ONCE() over ACCESS_ONCE()
Signed-off-by: Shyam Saini
---
drivers/staging/comedi/comedi_fops.c | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a
Fixed following checkpatch.pl warnings:
Prefer 'unsigned int' to bare use of 'unsigned'
Prefer READ_ONCE() over ACCESS_ONCE()
Signed-off-by: Shyam Saini
---
drivers/staging/rdma/hfi1/sdma.c | 30 +++---
1 file changed, 15 insertions(+), 1
Fixed following checkpatch.pl warnings:
Prefer 'unsigned int' to bare use of 'unsigned'
Prefer READ_ONCE() over ACCESS_ONCE()
Signed-off-by: Shyam Saini
---
drivers/staging/rdma/hfi1/rc.c | 12 ++--
drivers/staging/rdma/hfi1/ruc.c | 6 +++---
2 files changed
Fixed following warning detected by checkpatch.pl:
warning: Prefer ether_addr_copy() over memcpy() if the Ethernet addressesare
__aligned(2)
Signed-off-by: Shyam Saini
---
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 25 +++
1 file changed, 12 insertions(+), 13
'unsigned int gpio' is added in place of 'unsigned gpio'
Signed-off-by: Shyam Saini
---
drivers/staging/android/timed_gpio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/android/timed_gpio.c
b/drivers/staging/android/timed_gpio.c
in
The region set by the call to memset, immediately overwritten by the
subsequent call to memcpy and thus makes the memset redundant
Signed-off-by: Shyam Saini
---
drivers/net/ethernet/chelsio/cxgb4/sched.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/net/ethernet/chelsio/cxgb4
On Fri, Jan 13, 2017 at 04:57:14PM +0100, Tobias Klauser wrote:
> On 2017-01-13 at 10:52:49 +0100, Shyam Saini wrote:
> > The region set by the call to memset, immediately overwritten by the
> > subsequent call to memcpy and thus makes the memset redundant
> >
> >
de of the loop.
Signed-off-by: Shyam Saini
---
drivers/net/ethernet/chelsio/cxgb4/sched.c | 5 -
1 file changed, 5 deletions(-)
diff --git a/drivers/net/ethernet/chelsio/cxgb4/sched.c
b/drivers/net/ethernet/chelsio/cxgb4/sched.c
index cbd68a8..c902635 100644
--- a/drivers/net/ethernet/chelsio
vfree frees the virtually continuous block of memory beginning at addr.
If addr is NULL, no operation is performed. So, NULL test is not needed
before vfree.
Signed-off-by: Shyam Saini
---
drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 6 ++
1 file changed, 2 insertions(+), 4 deletions
vfree frees the virtually continuous block of memory beginning at
addr. If addr is NULL, no operation is performed. So, NULL test is not
needed before vfree().
Signed-off-by: Shyam Saini
---
drivers/staging/rtl8188eu/core/rtw_xmit.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff
Replace explicit computation of vma page count by a call to
vma_pages()
Signed-off-by: Shyam Saini
---
drivers/gpu/drm/gma500/framebuffer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/gma500/framebuffer.c
b/drivers/gpu/drm/gma500/framebuffer.c
index
Replace explicit computation of vma page count by a call to
vma_pages()
Signed-off-by: Shyam Saini
---
arch/alpha/kernel/pci-sysfs.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/alpha/kernel/pci-sysfs.c b/arch/alpha/kernel/pci-sysfs.c
index 92c0d46..652449e
The variable tocuse is initialized but never used otherwise.
semantic patch used for this change is as follows:
//
@@
type T;
identifier i;
constant C;
@@
(
extern T i;
|
- T i;
<+... when != i
- i = C;
...+>
)
//
Signed-off-by: Shyam Saini
---
drivers/cdrom/gdrom.c | 4 +---
On Mon, 2016-10-10 at 01:46 +0200, Patrik Jakobsson wrote:
> On Mon, Oct 10, 2016 at 1:07 AM, Shyam Saini
> wrote:
> >
> > Replace explicit computation of vma page count by a call to
> > vma_pages()
> Hi, I already have this patch in the "queue" from:
>
Remove the explicit NULL comparison and rewrite in a compact form using
Coccinelle
Signed-off-by: shyam saini
---
drivers/staging/i4l/pcbit/callbacks.c | 4 ++--
drivers/staging/i4l/pcbit/capi.c | 18 +-
drivers/staging/i4l/pcbit/drv.c | 14 +++---
drivers
Remove the explicit NULL comparison and rewrite in a compact form using
Coccinelle
Signed-off-by: shyam saini
---
drivers/staging/i4l/pcbit/callbacks.c | 4 ++--
drivers/staging/i4l/pcbit/capi.c | 18 +-
drivers/staging/i4l/pcbit/drv.c | 14 +++---
drivers
Hi Pintu,
> Hi All,
> I was just wondering if this is possible in the Linux world.
> My requirement is:
> For some reason, I want to halt/pause the execution (for some
> specified time) of a running process/thread (at some location),
> without modified the source, may be by firing some events/sig
Fixed following checkpatch warning
WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider
using octal permissions '0444'.
Signed-off-by: Shyam Saini
---
drivers/staging/gs_fpgaboot/gs_fpgaboot.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --g
Remove the explicit NULL comparison and rewrite in a compact form and
fixed switch case indentation issue.
Signed-off-by: shyam saini
---
drivers/staging/android/ion/ion_of.c | 20 ++--
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/drivers/staging/android/ion
Fixed checkpatch coding style issues
Signed-off-by: shyam saini
---
drivers/staging/android/ion/ion_of.c | 20 ++--
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/drivers/staging/android/ion/ion_of.c
b/drivers/staging/android/ion/ion_of.c
index de0899a..01f3067
Remove the explicit NULL comparison and rewrite in a compact form.
Signed-off-by: shyam saini
---
drivers/staging/android/ion/ion_of.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/android/ion/ion_of.c
b/drivers/staging/android/ion/ion_of.c
index 01f3067
Fixed switch case indentation issue and void function return statement
issue
Signed-off-by: shyam saini
---
drivers/staging/android/ion/ion_of.c | 20 ++--
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/drivers/staging/android/ion/ion_of.c
b/drivers/staging
Remove the explicit NULL comparison and rewrite in a compact form.
Signed-off-by: shyam saini
---
drivers/staging/vt6655/rxtx.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c
index 890d108..7e69bc9 100644
On Sun, 2016-10-02 at 16:58 +0200, Greg KH wrote:
> On Wed, Sep 28, 2016 at 08:58:51PM +0530, shyam saini wrote:
> >
> > Remove the explicit NULL comparison and rewrite in a compact form.
> >
> > Signed-off-by: shyam saini
> > ---
> > drivers/staging/
On Sun, 2016-10-02 at 17:37 +0200, Greg KH wrote:
> On Sun, Oct 02, 2016 at 08:51:29PM +0530, Shyam Saini wrote:
> >
> > On Sun, 2016-10-02 at 16:58 +0200, Greg KH wrote:
> > >
> > > On Wed, Sep 28, 2016 at 08:58:51PM +0530, shyam saini wrote:
> > > &g
to fix [1] and [2] issues.
[1]
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=96a1a2412acb
[2]
https://lore.kernel.org/lkml/20250130225803.321004-1-shyamsa...@linux.microsoft.com/
Thanks,
Shyam
Shyam Saini (3):
kernel: param: rename lo
() to lookup_or_create_module_kobject(),
to better describe its operations.
This doesn't change anything functionality wise.
Suggested-by: Rasmus Villemoes
Signed-off-by: Shyam Saini
---
kernel/params.c | 7 +++
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/kernel/params.c b/kerne
x this issue by letting module_add_driver() handle module_kobject
creation itself.
Fixes: 96a1a2412acb ("kernel/params.c: defer most of param_sysfs_init() to
late_initcall time")
Suggested-by: Rasmus Villemoes
Signed-off-by: Shyam Saini
---
drivers/base/module.c | 13 +
1 f
Move the following to module.h to allow common usages:
- lookup_or_create_module_kobject()
- to_module_attr
- to_module_kobject
This makes lookup_or_create_module_kobject() as inline.
Signed-off-by: Shyam Saini
---
include/linux/module.h | 39 +++
kernel
Hi Everyone,
On Wed, Feb 05, 2025 at 09:43:12AM +0100, Rasmus Villemoes wrote:
> On Mon, Feb 03 2025, Shyam Saini wrote:
>
> > Move the following to module.h to allow common usages:
> > - lookup_or_create_module_kobject()
> > - to_module_attr
> > - to_mod
x this issue by letting module_add_driver() handle module_kobject
creation itself.
Fixes: 96a1a2412acb ("kernel/params.c: defer most of param_sysfs_init() to
late_initcall time")
Suggested-by: Rasmus Villemoes
Signed-off-by: Shyam Saini
---
drivers/base/module.c | 13 +
1 f
s from the function and add its
declaration in module.h
- Mark this function as "__modinit". To facilitate this, move the
__modinit macro construct to module.h
Suggested-by: Rasmus Villemoes
Signed-off-by: Shyam Saini
---
include/linux/module.h | 8 +++
kernel/
operations.
This doesn't change anything functionality wise.
Suggested-by: Rasmus Villemoes
Signed-off-by: Shyam Saini
---
kernel/params.c | 7 +++
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/kernel/params.c b/kernel/params.c
index 0074d29c9b80..4b43baaf7c83 100644
--- a/k
ect creation and population of module_kset list to fix [1]
and [2] issues.
- Link:
https://lore.kernel.org/lkml/2025020405.1611510-1-shyamsa...@linux.microsoft.com/
Changes in RFC:
Reverts commit 96a1a2412acb ("kernel/params.c: defer most of
param_sysfs_init() to late_
Signed-off-by: Shyam Saini
---
include/linux/module.h | 2 ++
kernel/params.c| 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/include/linux/module.h b/include/linux/module.h
index 12f8a7d4fc1c..aeaaf9e068eb 100644
--- a/include/linux/module.h
+++ b/include/linux/module.h
quot;kernel/params.c: defer most of
param_sysfs_init() to late_initcall time")
Shyam Saini (4):
kernel: param: rename locate_module_kobject
kernel: refactor lookup_or_create_module_kobject()
kernel: globalize lookup_or_create_module_kobject()
drivers: base: handle module_kobjec
x this issue by letting module_add_driver() handle module_kobject
creation itself.
Fixes: 96a1a2412acb ("kernel/params.c: defer most of param_sysfs_init() to
late_initcall time")
Suggested-by: Rasmus Villemoes
Signed-off-by: Shyam Saini
---
drivers/base/module.c | 13 +
1 f
non __init
code, where using BUG_ON for allocation failure handling is not
acceptable.
Since we are here, also start using IS_ENABLED instead of #ifdef
construct.
Suggested-by: Thomas Weißschuh
Suggested-by: Rasmus Villemoes
Signed-off-by: Shyam Saini
---
kernel/params.c | 41
operations.
This doesn't change anything functionality wise.
Suggested-by: Rasmus Villemoes
Signed-off-by: Shyam Saini
---
kernel/params.c | 7 +++
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/kernel/params.c b/kernel/params.c
index 0074d29c9b80..4b43baaf7c83 100644
--- a/k
Hi Petr,
Thank you for the reviews
On Tue, Feb 25, 2025 at 09:33:10AM +0100, Petr Pavlu wrote:
> On 2/21/25 11:42, Rasmus Villemoes wrote:
> > On Thu, Feb 13 2025, Petr Pavlu wrote:
> >
> >> On 2/11/25 22:48, Shyam Saini wrote:
> >>> In the unlikely ev
Reverts commit 96a1a2412acb ("kernel/params.c: defer most of
param_sysfs_init() to late_initcall time")
Shyam Saini (4):
kernel: param: rename locate_module_kobject
kernel: refactor lookup_or_create_module_kobject()
kernel: globalize lookup_or_create_module_kobject()
drive
x this issue by letting module_add_driver() handle module_kobject
creation itself.
Fixes: 96a1a2412acb ("kernel/params.c: defer most of param_sysfs_init() to
late_initcall time")
Cc: sta...@kernel.org
Suggested-by: Rasmus Villemoes
Signed-off-by: Shyam Saini
---
drivers/base/module.c |
operations.
This doesn't change anything functionality wise.
Fixes: 96a1a2412acb ("kernel/params.c: defer most of param_sysfs_init() to
late_initcall time")
Cc: sta...@kernel.org
Suggested-by: Rasmus Villemoes
Signed-off-by: Shyam Saini
---
kernel/params.c | 6 +++---
1 file change
ggested-by: Thomas Weißschuh
Suggested-by: Rasmus Villemoes
Signed-off-by: Shyam Saini
---
kernel/params.c | 41 +++--
1 file changed, 19 insertions(+), 22 deletions(-)
diff --git a/kernel/params.c b/kernel/params.c
index a2441ce059ae..787662663e34 100644
--
ernel/params.c: defer most of param_sysfs_init() to
late_initcall time")
Cc: sta...@kernel.org
Suggested-by: Rasmus Villemoes
Signed-off-by: Shyam Saini
---
include/linux/module.h | 2 ++
kernel/params.c| 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/include/linux/
Hi Petr,
On Wed, Mar 05, 2025 at 10:55:03AM +0100, Petr Pavlu wrote:
> On 2/27/25 19:49, Shyam Saini wrote:
> > Hi Everyone,
> >
> > This patch series fixes handling of module_kobject creation.
> > A driver expect module_kset list populated with its corresponding
>
Hi Greg,
> On 2/27/25 19:49, Shyam Saini wrote:
> > Hi Everyone,
> >
> > This patch series fixes handling of module_kobject creation.
> > A driver expect module_kset list populated with its corresponding
> > module_kobject to create its /sys/module//drivers
>
49 matches
Mail list logo