Message ID | 1e3eba760906230753l4e14a025y6bc07a753999483e@mail.gmail.com (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | kyle mcmartin |
Headers | show |
On Tue, 23 Jun 2009 22:53:26 +0800 Randolph Chung <randolph@tausq.org> wrote: > Here's an updated patch: > > Reported-by: Roel Kluin <roel.kluin@gmail.com> > Signed-off-by: Randolph Chung <tausq@parisc-linux.org> > > diff --git a/arch/parisc/lib/memcpy.c b/arch/parisc/lib/memcpy.c > index 2d68431..827e535 100644 > --- a/arch/parisc/lib/memcpy.c > +++ b/arch/parisc/lib/memcpy.c > @@ -405,7 +405,7 @@ byte_copy: > > unaligned_copy: > /* possibly we are aligned on a word, but not on a double... */ > - if (likely(t1 & (sizeof(unsigned int)-1)) == 0) { > + if (likely((t1 & (sizeof(unsigned int)-1)) == 0)) { > t2 = src & (sizeof(unsigned int) - 1); > > if (unlikely(t2 != 0)) { > I think I'll delete this email. If someone has a patch which they think should be applied, please resend it with a changelog. -- To unsubscribe from this list: send the line "unsubscribe linux-parisc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Kyle has merged this into the parisc tree. thanks randolph Andrew Morton wrote: > On Tue, 23 Jun 2009 22:53:26 +0800 > Randolph Chung <randolph@tausq.org> wrote: > > >> Here's an updated patch: >> >> Reported-by: Roel Kluin <roel.kluin@gmail.com> >> Signed-off-by: Randolph Chung <tausq@parisc-linux.org> >> >> diff --git a/arch/parisc/lib/memcpy.c b/arch/parisc/lib/memcpy.c >> index 2d68431..827e535 100644 >> --- a/arch/parisc/lib/memcpy.c >> +++ b/arch/parisc/lib/memcpy.c >> @@ -405,7 +405,7 @@ byte_copy: >> >> unaligned_copy: >> /* possibly we are aligned on a word, but not on a double... */ >> - if (likely(t1 & (sizeof(unsigned int)-1)) == 0) { >> + if (likely((t1 & (sizeof(unsigned int)-1)) == 0)) { >> t2 = src & (sizeof(unsigned int) - 1); >> >> if (unlikely(t2 != 0)) { >> >> > > I think I'll delete this email. If someone has a patch which they > think should be applied, please resend it with a changelog. > > -- To unsubscribe from this list: send the line "unsubscribe linux-parisc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/arch/parisc/lib/memcpy.c b/arch/parisc/lib/memcpy.c index 2d68431..827e535 100644 --- a/arch/parisc/lib/memcpy.c +++ b/arch/parisc/lib/memcpy.c @@ -405,7 +405,7 @@ byte_copy: unaligned_copy: /* possibly we are aligned on a word, but not on a double... */ - if (likely(t1 & (sizeof(unsigned int)-1)) == 0) { + if (likely((t1 & (sizeof(unsigned int)-1)) == 0)) { t2 = src & (sizeof(unsigned int) - 1); if (unlikely(t2 != 0)) {