* [PATCH] Cleanup of most_video_dev structure
@ 2025-02-21 16:34 Ravi Kumar kairi
2025-02-21 16:34 ` [PATCH] staging: most: Remove unused mutex from most_video_dev Ravi Kumar kairi
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Ravi Kumar kairi @ 2025-02-21 16:34 UTC (permalink / raw)
To: parthiban.veerasooran, christian.gromm, gregkh
Cc: linux-staging, linux-kernel, Ravi Kumar Kairi
From: Ravi Kumar Kairi <kumarkairiravi@gmail.com>
This patch series removes unused synchronization primitives from
struct most_video_dev.
Ravi Kumar Kairi (2):
staging: most: Remove unused mutex from most_video_dev
staging: most: Remove unused spinlock from most_video_dev
drivers/staging/most/video/video.c | 3 ---
1 file changed, 3 deletions(-)
--
2.48.1
^ permalink raw reply [flat|nested] 7+ messages in thread* [PATCH] staging: most: Remove unused mutex from most_video_dev
2025-02-21 16:34 [PATCH] Cleanup of most_video_dev structure Ravi Kumar kairi
@ 2025-02-21 16:34 ` Ravi Kumar kairi
2025-03-03 7:12 ` kernel test robot
2025-02-21 16:34 ` [PATCH] staging: most: Remove unused spinlock " Ravi Kumar kairi
2025-02-22 8:07 ` [PATCH] Cleanup of most_video_dev structure Greg KH
2 siblings, 1 reply; 7+ messages in thread
From: Ravi Kumar kairi @ 2025-02-21 16:34 UTC (permalink / raw)
To: parthiban.veerasooran, christian.gromm, gregkh
Cc: linux-staging, linux-kernel, Ravi Kumar Kairi
From: Ravi Kumar Kairi <kumarkairiravi@gmail.com>
The `lock` field in struct most_video_dev is never used anywhere in
the codebase. Since it serves no purpose, remove it to clean up the
structure.
Signed-off-by: Ravi Kumar Kairi <kumarkairiravi@gmail.com>
---
drivers/staging/most/video/video.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/staging/most/video/video.c b/drivers/staging/most/video/video.c
index 2b3cdb1ce1..bd51125698 100644
--- a/drivers/staging/most/video/video.c
+++ b/drivers/staging/most/video/video.c
@@ -40,8 +40,6 @@ struct most_video_dev {
struct video_device *vdev;
unsigned int ctrl_input;
- struct mutex lock;
-
wait_queue_head_t wait_data;
};
--
2.48.1
^ permalink raw reply related [flat|nested] 7+ messages in thread* Re: [PATCH] staging: most: Remove unused mutex from most_video_dev
2025-02-21 16:34 ` [PATCH] staging: most: Remove unused mutex from most_video_dev Ravi Kumar kairi
@ 2025-03-03 7:12 ` kernel test robot
0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2025-03-03 7:12 UTC (permalink / raw)
To: Ravi Kumar kairi, parthiban.veerasooran, christian.gromm, gregkh
Cc: llvm, oe-kbuild-all, linux-staging, linux-kernel,
Ravi Kumar Kairi
Hi Ravi,
kernel test robot noticed the following build errors:
[auto build test ERROR on staging/staging-testing]
url: https://github.com/intel-lab-lkp/linux/commits/Ravi-Kumar-kairi/staging-most-Remove-unused-mutex-from-most_video_dev/20250222-004322
base: staging/staging-testing
patch link: https://lore.kernel.org/r/20250221163444.57492-2-kumarkairiravi%40gmail.com
patch subject: [PATCH] staging: most: Remove unused mutex from most_video_dev
config: hexagon-allyesconfig (https://download.01.org/0day-ci/archive/20250303/202503031448.eqB11EdG-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250303/202503031448.eqB11EdG-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202503031448.eqB11EdG-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/staging/most/video/video.c:417:28: error: no member named 'lock' in 'struct most_video_dev'
417 | mdev->vdev->lock = &mdev->lock;
| ~~~~ ^
drivers/staging/most/video/video.c:474:20: error: no member named 'lock' in 'struct most_video_dev'
474 | mutex_init(&mdev->lock);
| ~~~~ ^
include/linux/mutex.h:64:16: note: expanded from macro 'mutex_init'
64 | __mutex_init((mutex), #mutex, &__key); \
| ^~~~~
2 errors generated.
vim +417 drivers/staging/most/video/video.c
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 402
1b10a0316e2d5e drivers/staging/most/video/video.c Christian Gromm 2017-11-21 403 static int comp_register_videodev(struct most_video_dev *mdev)
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 404 {
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 405 int ret;
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 406
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 407 init_waitqueue_head(&mdev->wait_data);
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 408
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 409 /* allocate and fill v4l2 video struct */
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 410 mdev->vdev = video_device_alloc();
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 411 if (!mdev->vdev)
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 412 return -ENOMEM;
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 413
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 414 /* Fill the video capture device struct */
1b10a0316e2d5e drivers/staging/most/video/video.c Christian Gromm 2017-11-21 415 *mdev->vdev = comp_videodev_template;
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 416 mdev->vdev->v4l2_dev = &mdev->v4l2_dev;
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 @417 mdev->vdev->lock = &mdev->lock;
323977d5d33a8d drivers/staging/most/aim-v4l2/video.c Christian Gromm 2016-06-06 418 snprintf(mdev->vdev->name, sizeof(mdev->vdev->name), "MOST: %s",
323977d5d33a8d drivers/staging/most/aim-v4l2/video.c Christian Gromm 2016-06-06 419 mdev->v4l2_dev.name);
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 420
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 421 /* Register the v4l2 device */
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 422 video_set_drvdata(mdev->vdev, mdev);
e653614ee1832c drivers/staging/most/video/video.c Hans Verkuil 2020-02-03 423 ret = video_register_device(mdev->vdev, VFL_TYPE_VIDEO, -1);
b23e8e51e6dc40 drivers/staging/most/aim-v4l2/video.c Christian Gromm 2016-06-06 424 if (ret) {
8f6f9ed15d679a drivers/staging/most/aim-v4l2/video.c Christian Gromm 2016-06-06 425 v4l2_err(&mdev->v4l2_dev, "video_register_device failed (%d)\n",
b23e8e51e6dc40 drivers/staging/most/aim-v4l2/video.c Christian Gromm 2016-06-06 426 ret);
eab231c0398a91 drivers/staging/most/aim-v4l2/video.c Christian Gromm 2016-06-06 427 video_device_release(mdev->vdev);
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 428 }
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 429
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 430 return ret;
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 431 }
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 432
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] staging: most: Remove unused spinlock from most_video_dev
2025-02-21 16:34 [PATCH] Cleanup of most_video_dev structure Ravi Kumar kairi
2025-02-21 16:34 ` [PATCH] staging: most: Remove unused mutex from most_video_dev Ravi Kumar kairi
@ 2025-02-21 16:34 ` Ravi Kumar kairi
2025-03-03 3:19 ` kernel test robot
2025-02-22 8:07 ` [PATCH] Cleanup of most_video_dev structure Greg KH
2 siblings, 1 reply; 7+ messages in thread
From: Ravi Kumar kairi @ 2025-02-21 16:34 UTC (permalink / raw)
To: parthiban.veerasooran, christian.gromm, gregkh
Cc: linux-staging, linux-kernel, Ravi Kumar Kairi
From: Ravi Kumar Kairi <kumarkairiravi@gmail.com>
The `list_lock` spinlock in struct most_video_dev is never used
anywhere in the codebase. Since it serves no purpose, remove it
to clean up the structure.
Signed-off-by: Ravi Kumar Kairi <kumarkairiravi@gmail.com>
---
drivers/staging/most/video/video.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/staging/most/video/video.c b/drivers/staging/most/video/video.c
index bd51125698..83b46476ca 100644
--- a/drivers/staging/most/video/video.c
+++ b/drivers/staging/most/video/video.c
@@ -33,7 +33,6 @@ struct most_video_dev {
bool mute;
struct list_head pending_mbos;
- spinlock_t list_lock;
struct v4l2_device v4l2_dev;
atomic_t access_ref;
--
2.48.1
^ permalink raw reply related [flat|nested] 7+ messages in thread* Re: [PATCH] staging: most: Remove unused spinlock from most_video_dev
2025-02-21 16:34 ` [PATCH] staging: most: Remove unused spinlock " Ravi Kumar kairi
@ 2025-03-03 3:19 ` kernel test robot
0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2025-03-03 3:19 UTC (permalink / raw)
To: Ravi Kumar kairi, parthiban.veerasooran, christian.gromm, gregkh
Cc: llvm, oe-kbuild-all, linux-staging, linux-kernel,
Ravi Kumar Kairi
Hi Ravi,
kernel test robot noticed the following build errors:
[auto build test ERROR on staging/staging-testing]
url: https://github.com/intel-lab-lkp/linux/commits/Ravi-Kumar-kairi/staging-most-Remove-unused-spinlock-from-most_video_dev/20250222-004552
base: staging/staging-testing
patch link: https://lore.kernel.org/r/20250221163444.57492-3-kumarkairiravi%40gmail.com
patch subject: [PATCH] staging: most: Remove unused spinlock from most_video_dev
config: hexagon-allyesconfig (https://download.01.org/0day-ci/archive/20250303/202503031028.7ZRlzYcI-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250303/202503031028.7ZRlzYcI-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202503031028.7ZRlzYcI-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/staging/most/video/video.c:130:23: error: no member named 'list_lock' in 'struct most_video_dev'
130 | spin_lock_irq(&mdev->list_lock);
| ~~~~ ^
drivers/staging/most/video/video.c:134:26: error: no member named 'list_lock' in 'struct most_video_dev'
134 | spin_unlock_irq(&mdev->list_lock);
| ~~~~ ^
drivers/staging/most/video/video.c:136:24: error: no member named 'list_lock' in 'struct most_video_dev'
136 | spin_lock_irq(&mdev->list_lock);
| ~~~~ ^
drivers/staging/most/video/video.c:138:25: error: no member named 'list_lock' in 'struct most_video_dev'
138 | spin_unlock_irq(&mdev->list_lock);
| ~~~~ ^
drivers/staging/most/video/video.c:191:25: error: no member named 'list_lock' in 'struct most_video_dev'
191 | spin_lock_irq(&mdev->list_lock);
| ~~~~ ^
drivers/staging/most/video/video.c:193:27: error: no member named 'list_lock' in 'struct most_video_dev'
193 | spin_unlock_irq(&mdev->list_lock);
| ~~~~ ^
drivers/staging/most/video/video.c:392:27: error: no member named 'list_lock' in 'struct most_video_dev'
392 | spin_lock_irqsave(&mdev->list_lock, flags);
| ~~~~ ^
include/linux/spinlock.h:381:39: note: expanded from macro 'spin_lock_irqsave'
381 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \
| ^~~~
include/linux/spinlock.h:244:34: note: expanded from macro 'raw_spin_lock_irqsave'
244 | flags = _raw_spin_lock_irqsave(lock); \
| ^~~~
drivers/staging/most/video/video.c:394:33: error: no member named 'list_lock' in 'struct most_video_dev'
394 | spin_unlock_irqrestore(&mdev->list_lock, flags);
| ~~~~ ^
drivers/staging/most/video/video.c:399:32: error: no member named 'list_lock' in 'struct most_video_dev'
399 | spin_unlock_irqrestore(&mdev->list_lock, flags);
| ~~~~ ^
drivers/staging/most/video/video.c:477:24: error: no member named 'list_lock' in 'struct most_video_dev'
477 | spin_lock_init(&mdev->list_lock);
| ~~~~ ^
include/linux/spinlock.h:335:38: note: expanded from macro 'spin_lock_init'
335 | __raw_spin_lock_init(spinlock_check(lock), \
| ^~~~
10 errors generated.
vim +130 drivers/staging/most/video/video.c
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 114
1b10a0316e2d5e drivers/staging/most/video/video.c Christian Gromm 2017-11-21 115 static int comp_vdev_close(struct file *filp)
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 116 {
1b10a0316e2d5e drivers/staging/most/video/video.c Christian Gromm 2017-11-21 117 struct comp_fh *fh = filp->private_data;
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 118 struct most_video_dev *mdev = fh->mdev;
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 119 struct mbo *mbo, *tmp;
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 120
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 121 /*
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 122 * We need to put MBOs back before we call most_stop_channel()
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 123 * to deallocate MBOs.
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 124 * From the other hand mostcore still calling rx_completion()
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 125 * to deliver MBOs until most_stop_channel() is called.
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 126 * Use mute to work around this issue.
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 127 * This must be implemented in core.
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 128 */
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 129
e494df039df0fc drivers/staging/most/aim-v4l2/video.c Christian Gromm 2016-06-06 @130 spin_lock_irq(&mdev->list_lock);
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 131 mdev->mute = true;
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 132 list_for_each_entry_safe(mbo, tmp, &mdev->pending_mbos, list) {
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 133 list_del(&mbo->list);
e494df039df0fc drivers/staging/most/aim-v4l2/video.c Christian Gromm 2016-06-06 134 spin_unlock_irq(&mdev->list_lock);
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 135 most_put_mbo(mbo);
e494df039df0fc drivers/staging/most/aim-v4l2/video.c Christian Gromm 2016-06-06 136 spin_lock_irq(&mdev->list_lock);
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 137 }
e494df039df0fc drivers/staging/most/aim-v4l2/video.c Christian Gromm 2016-06-06 138 spin_unlock_irq(&mdev->list_lock);
1b10a0316e2d5e drivers/staging/most/video/video.c Christian Gromm 2017-11-21 139 most_stop_channel(mdev->iface, mdev->ch_idx, &comp);
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 140 mdev->mute = false;
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 141
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 142 v4l2_fh_del(&fh->fh);
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 143 v4l2_fh_exit(&fh->fh);
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 144
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 145 atomic_dec(&mdev->access_ref);
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 146 kfree(fh);
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 147 return 0;
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 148 }
3d31c0cb6c127b drivers/staging/most/aim-v4l2/video.c Christian Gromm 2015-07-24 149
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] Cleanup of most_video_dev structure
2025-02-21 16:34 [PATCH] Cleanup of most_video_dev structure Ravi Kumar kairi
2025-02-21 16:34 ` [PATCH] staging: most: Remove unused mutex from most_video_dev Ravi Kumar kairi
2025-02-21 16:34 ` [PATCH] staging: most: Remove unused spinlock " Ravi Kumar kairi
@ 2025-02-22 8:07 ` Greg KH
2 siblings, 0 replies; 7+ messages in thread
From: Greg KH @ 2025-02-22 8:07 UTC (permalink / raw)
To: Ravi Kumar kairi
Cc: parthiban.veerasooran, christian.gromm, linux-staging,
linux-kernel
On Fri, Feb 21, 2025 at 10:04:24PM +0530, Ravi Kumar kairi wrote:
> From: Ravi Kumar Kairi <kumarkairiravi@gmail.com>
>
> This patch series removes unused synchronization primitives from
> struct most_video_dev.
>
> Ravi Kumar Kairi (2):
> staging: most: Remove unused mutex from most_video_dev
> staging: most: Remove unused spinlock from most_video_dev
>
> drivers/staging/most/video/video.c | 3 ---
> 1 file changed, 3 deletions(-)
>
> --
> 2.48.1
>
Hi,
This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him
a patch that has triggered this response. He used to manually respond
to these common problems, but in order to save his sanity (he kept
writing the same thing over and over, yet to different people), I was
created. Hopefully you will not take offence and will fix the problem
in your patch and resubmit it so that it can be accepted into the Linux
kernel tree.
You are receiving this message because of the following common error(s)
as indicated below:
- This looks like a new version of a previously submitted patch, but you
did not list below the --- line any changes from the previous version.
Please read the section entitled "The canonical patch format" in the
kernel file, Documentation/process/submitting-patches.rst for what
needs to be done here to properly describe this.
If you wish to discuss this problem further, or you have questions about
how to resolve this issue, please feel free to respond to this email and
Greg will reply once he has dug out from the pending patches received
from other developers.
thanks,
greg k-h's patch email bot
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] Cleanup of most_video_dev structure
@ 2025-02-19 18:31 Ravi Kumar kairi
2025-02-19 18:31 ` [PATCH] staging: most: Remove unused mutex from most_video_dev Ravi Kumar kairi
0 siblings, 1 reply; 7+ messages in thread
From: Ravi Kumar kairi @ 2025-02-19 18:31 UTC (permalink / raw)
To: parthiban.veerasooran, christian.gromm, gregkh
Cc: linux-staging, linux-kernel, Ravi Kumar Kairi
From: Ravi Kumar Kairi <kumarkairiravi@gmail.com>
This patch series removes unused synchronization primitives from
struct most_video_dev to improve maintainability.
Patch 1 removes an unused mutex, and Patch 2 removes an unused spinlock.
Ravi Kumar Kairi (2):
staging: most: Remove unused mutex from most_video_dev
staging: most: Remove unused spinlock from most_video_dev
drivers/staging/most/video/video.c | 3 ---
1 file changed, 3 deletions(-)
--
2.48.1
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] staging: most: Remove unused mutex from most_video_dev
2025-02-19 18:31 Ravi Kumar kairi
@ 2025-02-19 18:31 ` Ravi Kumar kairi
0 siblings, 0 replies; 7+ messages in thread
From: Ravi Kumar kairi @ 2025-02-19 18:31 UTC (permalink / raw)
To: parthiban.veerasooran, christian.gromm, gregkh
Cc: linux-staging, linux-kernel, Ravi Kumar Kairi
From: Ravi Kumar Kairi <kumarkairiravi@gmail.com>
The `lock` field in struct most_video_dev is never used anywhere in
the codebase. Since it serves no purpose, remove it to clean up the
structure.
Signed-off-by: Ravi Kumar Kairi <kumarkairiravi@gmail.com>
---
drivers/staging/most/video/video.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/staging/most/video/video.c b/drivers/staging/most/video/video.c
index 2b3cdb1ce1..bd51125698 100644
--- a/drivers/staging/most/video/video.c
+++ b/drivers/staging/most/video/video.c
@@ -40,8 +40,6 @@ struct most_video_dev {
struct video_device *vdev;
unsigned int ctrl_input;
- struct mutex lock;
-
wait_queue_head_t wait_data;
};
--
2.48.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
end of thread, other threads:[~2025-03-03 7:12 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-21 16:34 [PATCH] Cleanup of most_video_dev structure Ravi Kumar kairi
2025-02-21 16:34 ` [PATCH] staging: most: Remove unused mutex from most_video_dev Ravi Kumar kairi
2025-03-03 7:12 ` kernel test robot
2025-02-21 16:34 ` [PATCH] staging: most: Remove unused spinlock " Ravi Kumar kairi
2025-03-03 3:19 ` kernel test robot
2025-02-22 8:07 ` [PATCH] Cleanup of most_video_dev structure Greg KH
-- strict thread matches above, loose matches on Subject: below --
2025-02-19 18:31 Ravi Kumar kairi
2025-02-19 18:31 ` [PATCH] staging: most: Remove unused mutex from most_video_dev Ravi Kumar kairi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox