From: Chen Gang <gang.chen@asianux.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Mike Frysinger <vapier@gentoo.org>,
Hirokazu Takata <takata@linux-m32r.org>,
Martin Schwidefsky <schwidefsky@de.ibm.com>,
Heiko Carstens <heiko.carstens@de.ibm.com>,
Arnd Bergmann <arnd@arndb.de>,
realmz paranoid <realmz6@gmail.com>,
linux390@de.ibm.com,
"uclinux-dist-devel@blackfin.uclinux.org"
<uclinux-dist-devel@blackfin.uclinux.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
linux-m32r@ml.linux-m32r.org, linux-m32r-ja@ml.linux-m32r.org,
linux-s390@vger.kernel.org,
Linux-Arch <linux-arch@vger.kernel.org>
Subject: Re: [PATCH] arch: asm-geniric: for atomic_set_mask() 1st param, use 'unsigned int' instead of 'unsigned long'
Date: Sat, 08 Jun 2013 16:37:30 +0800 [thread overview]
Message-ID: <51B2ED4A.3060504@asianux.com> (raw)
In-Reply-To: <CAMuHMdVg12Wm4fZYDdgV0m4+Bo76hm=nckGtSkobRfbsmNo2wA@mail.gmail.com>
On 06/08/2013 04:31 PM, Geert Uytterhoeven wrote:
> Haven't done a real review, but my eye fell on it:
>
Thank you for your review, firstly.
> On Sat, Jun 8, 2013 at 9:50 AM, Chen Gang <gang.chen@asianux.com> wrote:
>> > diff --git a/arch/m32r/include/asm/atomic.h b/arch/m32r/include/asm/atomic.h
>> > index 0d81697..233c743 100644
>> > --- a/arch/m32r/include/asm/atomic.h
>> > +++ b/arch/m32r/include/asm/atomic.h
>> > @@ -264,7 +264,7 @@ static __inline__ int __atomic_add_unless(atomic_t *v, int a, int u)
>> > }
>> >
>> >
>> > -static __inline__ void atomic_clear_mask(unsigned long mask, atomic_t *addr)
>> > +static __inline__ void atomic_clear_mask(unsigned int mask, atomic_t *addr)
>> > {
>> > unsigned long flags;
>> > unsigned long tmp;
> Shouldn't this become "unsigned int tmp" for consistency, too?
>
It seems better. (although I guess: for 'm32r', both 'long' and 'int'
are 32-bit).
I will wait for 1 day at least, if no additional suggestions or
completions, I will send patch v2.
>> > @@ -286,7 +286,7 @@ static __inline__ void atomic_clear_mask(unsigned long mask, atomic_t *addr)
>> > local_irq_restore(flags);
>> > }
>> >
>> > -static __inline__ void atomic_set_mask(unsigned long mask, atomic_t *addr)
>> > +static __inline__ void atomic_set_mask(unsigned int mask, atomic_t *addr)
>> > {
>> > unsigned long flags;
>> > unsigned long tmp;
> Likewise.
>
> There may be other places that need changes.
OK, I will check them.
Thanks.
--
Chen Gang
Asianux Corporation
next prev parent reply other threads:[~2013-06-08 8:38 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-08 7:50 [PATCH] arch: asm-geniric: for atomic_set_mask() 1st param, use 'unsigned int' instead of 'unsigned long' Chen Gang
2013-06-08 8:31 ` Geert Uytterhoeven
2013-06-08 8:37 ` Chen Gang [this message]
2013-06-08 17:49 ` Bjorn Helgaas
2013-06-08 17:49 ` Bjorn Helgaas
2013-06-09 1:52 ` Chen Gang
2013-06-10 17:00 ` Bjorn Helgaas
2013-06-13 1:47 ` Chen Gang
2013-06-13 1:47 ` Chen Gang
2013-06-09 6:31 ` [PATCH v2] arch: asm-generic: " Chen Gang
2013-06-10 9:21 ` Heiko Carstens
2013-06-10 9:21 ` Heiko Carstens
2013-06-13 1:19 ` Chen Gang
2013-06-26 2:03 ` Chen Gang
2013-07-05 1:11 ` Chen Gang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51B2ED4A.3060504@asianux.com \
--to=gang.chen@asianux.com \
--cc=arnd@arndb.de \
--cc=geert@linux-m68k.org \
--cc=heiko.carstens@de.ibm.com \
--cc=linux-arch@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-m32r-ja@ml.linux-m32r.org \
--cc=linux-m32r@ml.linux-m32r.org \
--cc=linux-s390@vger.kernel.org \
--cc=linux390@de.ibm.com \
--cc=realmz6@gmail.com \
--cc=schwidefsky@de.ibm.com \
--cc=takata@linux-m32r.org \
--cc=uclinux-dist-devel@blackfin.uclinux.org \
--cc=vapier@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox