Re: [PATCH 0/5] powerpc: Get rid of redundant arch specific swab functions

2015-02-04 Thread 'David Gibson'
On Wed, Feb 04, 2015 at 11:54:39AM +, David Laight wrote: > From: David Gibson > > arch/powerpc/include/asm/swab.h includes some powerpc specific > > byteswapping functions, which are implemented in terms of powerpc's > > built in byte reversed load/store instructions. There are two problems

RE: [PATCH 0/5] powerpc: Get rid of redundant arch specific swab functions

2015-02-04 Thread David Laight
From: David Gibson > arch/powerpc/include/asm/swab.h includes some powerpc specific > byteswapping functions, which are implemented in terms of powerpc's > built in byte reversed load/store instructions. There are two problems with > this: > > 1) They're not necessary - gcc is perfectly capable

[PATCH 0/5] powerpc: Get rid of redundant arch specific swab functions

2015-02-02 Thread David Gibson
arch/powerpc/include/asm/swab.h includes some powerpc specific byteswapping functions, which are implemented in terms of powerpc's built in byte reversed load/store instructions. There are two problems with this: 1) They're not necessary - gcc is perfectly capable of generating the byte-rever