| bbb12311 | 30-Jul-2024 |
Agathe Porte <[email protected]> |
staging: vme_user: vme_irq_handler: name func ptr args
This commit fixes the following checkpatch.pl warnings:
WARNING: function definition argument 'int' should also have an identifier name + void
staging: vme_user: vme_irq_handler: name func ptr args
This commit fixes the following checkpatch.pl warnings:
WARNING: function definition argument 'int' should also have an identifier name + void (*call)(int, int, void *);
WARNING: function definition argument 'int' should also have an identifier name + void (*call)(int, int, void *);
WARNING: function definition argument 'void *' should also have an identifier name + void (*call)(int, int, void *);
Signed-off-by: Agathe Porte <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
show more ...
|
| 3249888c | 20-Oct-2023 |
Soumya Negi <[email protected]> |
staging: vme_user: Use dev_err() in vme_check_window()
vme_check_window() uses printk() for logging error message. This leads to the following checkpatch warning: WARNING: Prefer [subsystem eg: n
staging: vme_user: Use dev_err() in vme_check_window()
vme_check_window() uses printk() for logging error message. This leads to the following checkpatch warning: WARNING: Prefer [subsystem eg: netdev]_err([subsystem]dev, ... then dev_err(dev, ... then pr_err(... to printk(KERN_ERR ...
Use dev_err() instead. Pass VME bridge device to vme_check_window() so that the error message can be logged with the bridge device context.
Signed-off-by: Soumya Negi <[email protected]> Suggested-by: Greg Kroah-Hartman <[email protected]> Link: https://lore.kernel.org/r/221344ede933b1d9e6c31310b0f4dbb8be809c86.1697763267.git.soumya.negi97@gmail.com Signed-off-by: Greg Kroah-Hartman <[email protected]>
show more ...
|
| c6054f43 | 20-Oct-2023 |
Soumya Negi <[email protected]> |
staging: vme_user: Remove NULL-checks
Don't check for empty bridge device & resource in vme_alloc_consistent() & vme_free_consistent() since they can not be NULL. Both the VME bridge device and the
staging: vme_user: Remove NULL-checks
Don't check for empty bridge device & resource in vme_alloc_consistent() & vme_free_consistent() since they can not be NULL. Both the VME bridge device and the VME resource that are used in these functions are set at probe time.
Signed-off-by: Soumya Negi <[email protected]> Suggested-by: Greg Kroah-Hartman <[email protected]> Link: https://lore.kernel.org/r/049bbedf458e8ac40f3dfff9c9b25dce89f5b642.1697763267.git.soumya.negi97@gmail.com Signed-off-by: Greg Kroah-Hartman <[email protected]>
show more ...
|
| 08c7bee3 | 20-Oct-2023 |
Soumya Negi <[email protected]> |
staging: vme_user: Remove printk() in find_bridge()
Don't log error message in find_bridge(). The printk() triggers a checkpatch warning: WARNING: Prefer [subsystem eg: netdev]_err([subsystem]de
staging: vme_user: Remove printk() in find_bridge()
Don't log error message in find_bridge(). The printk() triggers a checkpatch warning: WARNING: Prefer [subsystem eg: netdev]_err([subsystem]dev, ... then dev_err(dev, ... then pr_err(... to printk(KERN_ERR ...
It can't be replaced by dev_err() & using pr_err() is not helpful as it doesn't give much context to the user. It is better to remove it.
Signed-off-by: Soumya Negi <[email protected]> Suggested-by: Greg Kroah-Hartman <[email protected]> Link: https://lore.kernel.org/r/028725ebbc522f73c39f5b1ec4cc2bdbdf588971.1697763267.git.soumya.negi97@gmail.com Signed-off-by: Greg Kroah-Hartman <[email protected]>
show more ...
|
| d964afa7 | 20-Oct-2023 |
Soumya Negi <[email protected]> |
staging: vme_user: Use __func__ instead of function name
Replace function names in message strings with __func__ to fix all checkpatch warnings like:
WARNING: Prefer using '"%s...", __func__' t
staging: vme_user: Use __func__ instead of function name
Replace function names in message strings with __func__ to fix all checkpatch warnings like:
WARNING: Prefer using '"%s...", __func__' to using 'vme_lm_get', this function's name, in a string
Signed-off-by: Soumya Negi <[email protected]> Acked-by: Andi Shyti <[email protected]> Link: https://lore.kernel.org/r/db4ad6b878c4bb08fd5d15cf4a9287d7bb8c30df.1697763267.git.soumya.negi97@gmail.com Signed-off-by: Greg Kroah-Hartman <[email protected]>
show more ...
|
| 4aa8371e | 13-Oct-2023 |
Soumya Negi <[email protected]> |
staging: vme_user: Add spaces around '<<' operator
Add spaces around all instances of << in the header vme_tsi148.h to conform with Linux coding style. Issue found by checkpatch.pl
Signed-off-by: S
staging: vme_user: Add spaces around '<<' operator
Add spaces around all instances of << in the header vme_tsi148.h to conform with Linux coding style. Issue found by checkpatch.pl
Signed-off-by: Soumya Negi <[email protected]> Link: https://lore.kernel.org/r/f84f353dedc28f99e42d2419b379ace41d0cb218.1697240381.git.soumya.negi97@gmail.com Signed-off-by: Greg Kroah-Hartman <[email protected]>
show more ...
|