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

- From: Joe Perches \<joe@perches.com\>
- Date: 2012-06-12 17:40:14 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2012/06/3878297
- Thread: https://ratatoskr.run/linux-arm-kernel/2012/06/3877875/t.md

```text
On Tue, 2012-06-12 at 10:30 -0700, H. Peter Anvin wrote:
> On 06/12/2012 10:26 AM, Nicolas Pitre wrote:
> > 
> > Instead of copying, maybe this would be much better to make the content 
> > of lib/string.c usable in a pre-boot environment.

> Not sure about that... a lot of it is #ifndef __HAVE_ARCH_* and you
> *really* want those optimizations on some arches.

Can __weak be used?
```
