mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 2/2] Fixed: Kernel: user_c: fixed whitespace & intendation errors
@ 2024-07-13 17:41 mohitpawar
  2024-07-25  8:05 ` Petr Mladek
  2024-07-25 20:57 ` Andrew Morton
  0 siblings, 2 replies; 3+ messages in thread
From: mohitpawar @ 2024-07-13 17:41 UTC (permalink / raw)
  To: pmladek; +Cc: yoann.congal, linux-kernel, Mohit0404

From: Mohit0404 <mohitpawar@mitaoe.ac.in>

Resolved -
	ERROR: trailing whitespace
	ERROR: space required before the open parenthesis '('
---
 kernel/user.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/user.c b/kernel/user.c
index aa1162deafe4..9e07264fd6f7 100644
--- a/kernel/user.c
+++ b/kernel/user.c
@@ -6,7 +6,7 @@
  *
  * We have a per-user structure to keep track of how many
  * processes, files etc the user has claimed, in order to be
- * able to have per-user limits for system resources. 
+ * able to have per-user limits for system resources.
  */
 
 #include <linux/init.h>
@@ -249,7 +249,7 @@ static int __init uid_cache_init(void)
 	uid_cachep = kmem_cache_create("uid_cache", sizeof(struct user_struct),
 			0, SLAB_HWCACHE_ALIGN|SLAB_PANIC, NULL);
 
-	for(n = 0; n < UIDHASH_SZ; ++n)
+	for (n = 0; n < UIDHASH_SZ; ++n)
 		INIT_HLIST_HEAD(uidhash_table + n);
 
 	if (user_epoll_alloc(&root_user))
-- 
2.34.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 2/2] Fixed: Kernel: user_c: fixed whitespace & intendation errors
  2024-07-13 17:41 [PATCH 2/2] Fixed: Kernel: user_c: fixed whitespace & intendation errors mohitpawar
@ 2024-07-25  8:05 ` Petr Mladek
  2024-07-25 20:57 ` Andrew Morton
  1 sibling, 0 replies; 3+ messages in thread
From: Petr Mladek @ 2024-07-25  8:05 UTC (permalink / raw)
  To: mohitpawar; +Cc: yoann.congal, linux-kernel, Andrew Morton

Adding Andrew into Cc who usually takes patches for core kernel code
without a dedicated maintainer.

On Sat 2024-07-13 23:11:37, mohitpawar@mitaoe.ac.in wrote:
> From: Mohit0404 <mohitpawar@mitaoe.ac.in>
> 
> Resolved -
> 	ERROR: trailing whitespace
> 	ERROR: space required before the open parenthesis '('
> ---
>  kernel/user.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/kernel/user.c b/kernel/user.c
> index aa1162deafe4..9e07264fd6f7 100644
> --- a/kernel/user.c
> +++ b/kernel/user.c
> @@ -6,7 +6,7 @@
>   *
>   * We have a per-user structure to keep track of how many
>   * processes, files etc the user has claimed, in order to be
> - * able to have per-user limits for system resources. 
> + * able to have per-user limits for system resources.
>   */
>  
>  #include <linux/init.h>
> @@ -249,7 +249,7 @@ static int __init uid_cache_init(void)
>  	uid_cachep = kmem_cache_create("uid_cache", sizeof(struct user_struct),
>  			0, SLAB_HWCACHE_ALIGN|SLAB_PANIC, NULL);
>  
> -	for(n = 0; n < UIDHASH_SZ; ++n)
> +	for (n = 0; n < UIDHASH_SZ; ++n)
>  		INIT_HLIST_HEAD(uidhash_table + n);
>  
>  	if (user_epoll_alloc(&root_user))
> -- 
> 2.34.1

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 2/2] Fixed: Kernel: user_c: fixed whitespace & intendation errors
  2024-07-13 17:41 [PATCH 2/2] Fixed: Kernel: user_c: fixed whitespace & intendation errors mohitpawar
  2024-07-25  8:05 ` Petr Mladek
@ 2024-07-25 20:57 ` Andrew Morton
  1 sibling, 0 replies; 3+ messages in thread
From: Andrew Morton @ 2024-07-25 20:57 UTC (permalink / raw)
  To: mohitpawar; +Cc: pmladek, yoann.congal, linux-kernel

On Sat, 13 Jul 2024 23:11:37 +0530 mohitpawar@mitaoe.ac.in wrote:

> --- a/kernel/user.c
> +++ b/kernel/user.c
> @@ -6,7 +6,7 @@
>   *
>   * We have a per-user structure to keep track of how many
>   * processes, files etc the user has claimed, in order to be
> - * able to have per-user limits for system resources. 
> + * able to have per-user limits for system resources.
>   */
>  
>  #include <linux/init.h>
> @@ -249,7 +249,7 @@ static int __init uid_cache_init(void)
>  	uid_cachep = kmem_cache_create("uid_cache", sizeof(struct user_struct),
>  			0, SLAB_HWCACHE_ALIGN|SLAB_PANIC, NULL);
>  
> -	for(n = 0; n < UIDHASH_SZ; ++n)
> +	for (n = 0; n < UIDHASH_SZ; ++n)
>  		INIT_HLIST_HEAD(uidhash_table + n);
>  
>  	if (user_epoll_alloc(&root_user))

I think this is too minor, sorry.  We could merge a million patches
like this.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-07-25 20:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-13 17:41 [PATCH 2/2] Fixed: Kernel: user_c: fixed whitespace & intendation errors mohitpawar
2024-07-25  8:05 ` Petr Mladek
2024-07-25 20:57 ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®