All of lore.kernel.org
 help / color / mirror / Atom feed
* [trivial PATCH] module.h: Remove unnecessary semicolon
@ 2013-11-05 20:58 Joe Perches
  2013-11-07  2:02 ` Rusty Russell
  0 siblings, 1 reply; 7+ messages in thread
From: Joe Perches @ 2013-11-05 20:58 UTC (permalink / raw)
  To: Rusty Russell; +Cc: LKML

This semicolon isn't necessary, remove it.

Signed-off-by: Joe Perches <joe@perches.com>
---
 include/linux/module.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/module.h b/include/linux/module.h
index 05f2447..d1ad477 100644
--- a/include/linux/module.h
+++ b/include/linux/module.h
@@ -454,7 +454,7 @@ int module_kallsyms_on_each_symbol(int (*fn)(void *, const char *,
 
 extern void __module_put_and_exit(struct module *mod, long code)
 	__attribute__((noreturn));
-#define module_put_and_exit(code) __module_put_and_exit(THIS_MODULE, code);
+#define module_put_and_exit(code) __module_put_and_exit(THIS_MODULE, code)
 
 #ifdef CONFIG_MODULE_UNLOAD
 unsigned long module_refcount(struct module *mod);



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

* Re: [trivial PATCH] module.h: Remove unnecessary semicolon
  2013-11-05 20:58 [trivial PATCH] module.h: Remove unnecessary semicolon Joe Perches
@ 2013-11-07  2:02 ` Rusty Russell
  2013-11-07  5:09   ` Joe Perches
  0 siblings, 1 reply; 7+ messages in thread
From: Rusty Russell @ 2013-11-07  2:02 UTC (permalink / raw)
  To: Joe Perches; +Cc: LKML

Joe Perches <joe@perches.com> writes:
> This semicolon isn't necessary, remove it.
>
> Signed-off-by: Joe Perches <joe@perches.com>

This is a terrible description.  Really bad.

First, it just repeats the subject, with more words.

Second, it gives me no indication that you've done a grep to make sure
noone is abusing the macro, so I can't apply it without doing that check
myself.

Please try again.

Rusty.

> ---
>  include/linux/module.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/linux/module.h b/include/linux/module.h
> index 05f2447..d1ad477 100644
> --- a/include/linux/module.h
> +++ b/include/linux/module.h
> @@ -454,7 +454,7 @@ int module_kallsyms_on_each_symbol(int (*fn)(void *, const char *,
>  
>  extern void __module_put_and_exit(struct module *mod, long code)
>  	__attribute__((noreturn));
> -#define module_put_and_exit(code) __module_put_and_exit(THIS_MODULE, code);
> +#define module_put_and_exit(code) __module_put_and_exit(THIS_MODULE, code)
>  
>  #ifdef CONFIG_MODULE_UNLOAD
>  unsigned long module_refcount(struct module *mod);

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

* Re: [trivial PATCH] module.h: Remove unnecessary semicolon
  2013-11-07  2:02 ` Rusty Russell
@ 2013-11-07  5:09   ` Joe Perches
  2013-11-07 23:11     ` Rusty Russell
  0 siblings, 1 reply; 7+ messages in thread
From: Joe Perches @ 2013-11-07  5:09 UTC (permalink / raw)
  To: Rusty Russell; +Cc: LKML

On Thu, 2013-11-07 at 12:32 +1030, Rusty Russell wrote:
> Joe Perches <joe@perches.com> writes:
> > This semicolon isn't necessary, remove it.
> >
> > Signed-off-by: Joe Perches <joe@perches.com>
> 
> This is a terrible description.  Really bad.

I'd've preferred no description.

> First, it just repeats the subject, with more words.

Which others have demanded.

> Second, it gives me no indication that you've done a grep to make sure
> noone is abusing the macro, so I can't apply it without doing that check
> myself.

That's a trust issue.
I've done it.  It isn't necessary.
The other #define module_put_and_exit in a
different #if #else already doesn't have one.

Trust it or not, apply it or not.

> Please try again.

No thanks.

cheers, Joe

> > diff --git a/include/linux/module.h b/include/linux/module.h
[]
> > @@ -454,7 +454,7 @@ int module_kallsyms_on_each_symbol(int (*fn)(void *, const char *,
> >  
> >  extern void __module_put_and_exit(struct module *mod, long code)
> >  	__attribute__((noreturn));
> > -#define module_put_and_exit(code) __module_put_and_exit(THIS_MODULE, code);
> > +#define module_put_and_exit(code) __module_put_and_exit(THIS_MODULE, code)
> >  
> >  #ifdef CONFIG_MODULE_UNLOAD
> >  unsigned long module_refcount(struct module *mod);

$ git grep -w module_put_and_exit
crypto/algboss.c:       module_put_and_exit(0);
crypto/algboss.c:       module_put_and_exit(0);
fs/cifs/connect.c:      module_put_and_exit(0);
fs/nfs/nfs4state.c:     module_put_and_exit(0);
fs/nfsd/nfssvc.c:       module_put_and_exit(0);
include/linux/module.h:#define module_put_and_exit(code) __module_put_and_exit(THIS_MODULE, code);
include/linux/module.h:#define module_put_and_exit(code) do_exit(code)
net/bluetooth/bnep/core.c:      module_put_and_exit(0);
net/bluetooth/cmtp/core.c:      module_put_and_exit(0);
net/bluetooth/hidp/core.c:      module_put_and_exit(0);



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

* Re: [trivial PATCH] module.h: Remove unnecessary semicolon
  2013-11-07  5:09   ` Joe Perches
@ 2013-11-07 23:11     ` Rusty Russell
  2013-11-07 23:59       ` Joe Perches
  0 siblings, 1 reply; 7+ messages in thread
From: Rusty Russell @ 2013-11-07 23:11 UTC (permalink / raw)
  To: Joe Perches; +Cc: LKML

Joe Perches <joe@perches.com> writes:
> On Thu, 2013-11-07 at 12:32 +1030, Rusty Russell wrote:
>> Joe Perches <joe@perches.com> writes:
>> > This semicolon isn't necessary, remove it.
>> >
>> > Signed-off-by: Joe Perches <joe@perches.com>
>> 
>> This is a terrible description.  Really bad.
>
> I'd've preferred no description.

Me too.

>> First, it just repeats the subject, with more words.
>
> Which others have demanded.

They're wrong.

>> Second, it gives me no indication that you've done a grep to make sure
>> noone is abusing the macro, so I can't apply it without doing that check
>> myself.
>
> That's a trust issue.
> I've done it.  It isn't necessary.

WTF?  Now you just said it's not necessary, I *know* I can't trust you.

> The other #define module_put_and_exit in a
> different #if #else already doesn't have one.

You didn't mention this, and even if you did, it's not sufficient.  Some
code only ever gets compiled as a module, so it'd never hit the
!CONFIG_MODULES case.

> Trust it or not, apply it or not.

Now I know when I receive a patch from you I have to check it carefully,
because you can't be bothered.

I've fixed your patch, you can find it below.

From: Joe Perches <joe@perches.com>
Subject: module.h: Remove unnecessary semicolon

[All 8 callers already have semicolons. -- RR]

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
---
 include/linux/module.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/module.h b/include/linux/module.h
index 15cd6b1b211e..46e548fd502a 100644
--- a/include/linux/module.h
+++ b/include/linux/module.h
@@ -451,7 +451,7 @@ int module_kallsyms_on_each_symbol(int (*fn)(void *, const char *,
 
 extern void __module_put_and_exit(struct module *mod, long code)
 	__attribute__((noreturn));
-#define module_put_and_exit(code) __module_put_and_exit(THIS_MODULE, code);
+#define module_put_and_exit(code) __module_put_and_exit(THIS_MODULE, code)
 
 #ifdef CONFIG_MODULE_UNLOAD
 unsigned long module_refcount(struct module *mod);

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

* Re: [trivial PATCH] module.h: Remove unnecessary semicolon
  2013-11-07 23:11     ` Rusty Russell
@ 2013-11-07 23:59       ` Joe Perches
  2013-11-08  1:26         ` Rusty Russell
  0 siblings, 1 reply; 7+ messages in thread
From: Joe Perches @ 2013-11-07 23:59 UTC (permalink / raw)
  To: Rusty Russell; +Cc: LKML

On Fri, 2013-11-08 at 09:41 +1030, Rusty Russell wrote:
> Joe Perches <joe@perches.com> writes:
> > On Thu, 2013-11-07 at 12:32 +1030, Rusty Russell wrote:
> >> Joe Perches <joe@perches.com> writes:
> >> > This semicolon isn't necessary, remove it.
> >> >
> >> > Signed-off-by: Joe Perches <joe@perches.com>
> >> 
> >> This is a terrible description.  Really bad.
> >
> > I'd've preferred no description.
> 
> Me too.
> 
> >> First, it just repeats the subject, with more words.
> >
> > Which others have demanded.
> 
> They're wrong.

shrug.  Can't please everyone.

> >> Second, it gives me no indication that you've done a grep to make sure
> >> noone is abusing the macro, so I can't apply it without doing that check
> >> myself.
> >
> > That's a trust issue.
> > I've done it.  It isn't necessary.
> 
> WTF?  Now you just said it's not necessary, I *know* I can't trust you.

"It" in this case is the grep that I did
prior to sending the patch.

> > The other #define module_put_and_exit in a
> > different #if #else already doesn't have one.
> 
> You didn't mention this, and even if you did, it's not sufficient.  Some
> code only ever gets compiled as a module, so it'd never hit the
> !CONFIG_MODULES case.

Which would only show there was a latent bug.

> > Trust it or not, apply it or not.
> 
> Now I know when I receive a patch from you I have to check it carefully,
> because you can't be bothered.

Sure.  If you think so.
Nonetheless, I told you I'd checked it.

> I've fixed your patch, you can find it below.

No, not really fixed.  You modified the commit log to
suit your taste.

cheers, Joe



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

* Re: [trivial PATCH] module.h: Remove unnecessary semicolon
  2013-11-07 23:59       ` Joe Perches
@ 2013-11-08  1:26         ` Rusty Russell
  2013-11-08  1:48           ` Joe Perches
  0 siblings, 1 reply; 7+ messages in thread
From: Rusty Russell @ 2013-11-08  1:26 UTC (permalink / raw)
  To: Joe Perches; +Cc: LKML

Joe Perches <joe@perches.com> writes:
> On Fri, 2013-11-08 at 09:41 +1030, Rusty Russell wrote:
>> Joe Perches <joe@perches.com> writes:
>> > That's a trust issue.
>> > I've done it.  It isn't necessary.
>> 
>> WTF?  Now you just said it's not necessary, I *know* I can't trust you.
>
> "It" in this case is the grep that I did
> prior to sending the patch.

Hi Joe,

Apologies for my off tone.  But I think we got tangled somewhere?

You said "It isn't necessary".

You maintain that grepping the source to find out if you'd broken
something "isn't necessary"?

git history shows me you've done lots of these cleanups.  I'm pretty
sure that's not what you meant.

But as maintainer, it's annoying that I had to check myself.  I don't
have personal experience in how diligent you are.  If you'd just
mentioned it, it would have saved me a few minutes and streamlined my
workflow immensely. 

Providing assurance makes me a happy maintainer.  So I modified it
because it sets a clear example for others.

I hope that clarifies,
Rusty.

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

* Re: [trivial PATCH] module.h: Remove unnecessary semicolon
  2013-11-08  1:26         ` Rusty Russell
@ 2013-11-08  1:48           ` Joe Perches
  0 siblings, 0 replies; 7+ messages in thread
From: Joe Perches @ 2013-11-08  1:48 UTC (permalink / raw)
  To: Rusty Russell; +Cc: LKML

On Fri, 2013-11-08 at 11:56 +1030, Rusty Russell wrote:
> Joe Perches <joe@perches.com> writes:
> > On Fri, 2013-11-08 at 09:41 +1030, Rusty Russell wrote:
> >> Joe Perches <joe@perches.com> writes:
> >> > That's a trust issue.
> >> > I've done it.  It isn't necessary.
> >> 
> >> WTF?  Now you just said it's not necessary, I *know* I can't trust you.
> >
> > "It" in this case is the grep that I did
> > prior to sending the patch.
> 
> Hi Joe,

Hi Rusty.

> Apologies for my off tone.  But I think we got tangled somewhere?
> You said "It isn't necessary".
> 
> You maintain that grepping the source to find out if you'd broken
> something "isn't necessary"?
> 
> git history shows me you've done lots of these cleanups.  I'm pretty
> sure that's not what you meant.

Yeah, I think we did get a little crossed up there.

No, grep and compiling changes are fundamentals
before submitting trivial patches.

What I meant was I had done the grep (and compile
allyesconfig/allmodconfig of the files that use
module_put_and_exit) before sending the patch.

I don't think those are important details for a
commit message.

Dunno if you noticed that I attached the grep results
in my 1st reply.

Sometimes I do put details below the separator
--- line after the signed-off-by.

(I'll also admit I've sent patches without doing
 the appropriate checks and screwed them up.
 Lessons semi-learned)

> But as maintainer, it's annoying that I had to check myself.  I don't
> have personal experience in how diligent you are.  If you'd just
> mentioned it, it would have saved me a few minutes and streamlined my
> workflow immensely. 
> 
> Providing assurance makes me a happy maintainer.  So I modified it
> because it sets a clear example for others.
> 
> I hope that clarifies,
> Rusty.

No worries.  Unfamiliarity also does have its own
set of issues.   No problems on my side.  Hope you
don't any any this way either.

cheers, Joe


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

end of thread, other threads:[~2013-11-08  1:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-05 20:58 [trivial PATCH] module.h: Remove unnecessary semicolon Joe Perches
2013-11-07  2:02 ` Rusty Russell
2013-11-07  5:09   ` Joe Perches
2013-11-07 23:11     ` Rusty Russell
2013-11-07 23:59       ` Joe Perches
2013-11-08  1:26         ` Rusty Russell
2013-11-08  1:48           ` Joe Perches

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.