Re: [PATCH 5/9] lib: Import reed solomon code from kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Dec 02, 2015 at 02:48:47PM +0100, Markus Pargmann wrote:
> reed solomon code is used by RAMOOPS to check and fix data stored in
> volatile memory.
> 
> Signed-off-by: Markus Pargmann <mpa@xxxxxxxxxxxxxx>
> ---
>  include/linux/rslib.h           | 109 ++++++++++++
>  lib/Kconfig                     |  15 ++
>  lib/Makefile                    |   1 +
>  lib/reed_solomon/Makefile       |   6 +
>  lib/reed_solomon/decode_rs.c    | 271 +++++++++++++++++++++++++++++
>  lib/reed_solomon/encode_rs.c    |  54 ++++++
>  lib/reed_solomon/reed_solomon.c | 377 ++++++++++++++++++++++++++++++++++++++++
>  7 files changed, 833 insertions(+)
>  create mode 100644 include/linux/rslib.h
>  create mode 100644 lib/reed_solomon/Makefile
>  create mode 100644 lib/reed_solomon/decode_rs.c
>  create mode 100644 lib/reed_solomon/encode_rs.c
>  create mode 100644 lib/reed_solomon/reed_solomon.c
> 

> diff --git a/lib/Kconfig b/lib/Kconfig
> index fbf9f0f34849..f2f3b5775ace 100644
> --- a/lib/Kconfig
> +++ b/lib/Kconfig
> @@ -22,6 +22,21 @@ config XZ_DECOMPRESS
>  	bool "include xz uncompression support"
>  	select UNCOMPRESS
>  
> +config REED_SOLOMON
> +	bool
> +
> +config REED_SOLOMON_ENC8
> +	bool
> +
> +config REED_SOLOMON_DEC8
> +	bool
> +
> +config REED_SOLOMON_ENC16
> +	bool
> +
> +config REED_SOLOMON_DEC16
> +	bool
> +

These fine grained config options seem unnecessary. Can we limit this to
a single config REED_SOLOMON only? The linker will discard unused
symbols anyway.

Sascha



-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux