# \[PATCH\] lib/decompress\_unxz.c: removing all memory helper functions

- From: Joe Perches \<joe@perches.com\>
- Date: 2012-06-01 02:54:54 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2012/06/3873034
- Thread: https://ratatoskr.run/linux-arm-kernel/2012/05/3869736/t.md

```text
On Thu, 2012-05-31 at 20:48 -0600, Thavatchai Makphaibulcboke wrote:
> On 05/28/2012 01:03 AM, Jean-Christophe PLAGNIOL-VILLARD wrote:
> 
> > can we do not duplicate those functions?
> 
> Thanks J for the comment.  Unfortunately, there is no easy way to share
> files among different architectures' preboot environment.  We have the
> choices either to have each architecture define its own copies or the
> decompressor defines them.  I believe the former is preferable.  As
> Lasse also pointed out, this way any specific architecture could provide
> an architectural dependent optimized version, if it chooses to.

Maybe provide __weak default functions that
can be overridden by any arch that could
or wants to improve on the defaults.
```
