diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2018-06-05 10:48:05 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-06-05 10:48:05 -0700 |
commit | 25d80be86c5d7f53df41ec5ce96f6c6543cac245 (patch) | |
tree | a18fe8d5281d0ed44c049d5a59da499278bb6e3e /lib/reed_solomon/encode_rs.c | |
parent | a74e0c4c9cb02d44bc5ec1a70a6ba599366fb130 (diff) | |
parent | 45888b40d2a6221d46bb69959e2600ddba71cc1f (diff) | |
download | linux-0-day-25d80be86c5d7f53df41ec5ce96f6c6543cac245.tar.gz linux-0-day-25d80be86c5d7f53df41ec5ce96f6c6543cac245.tar.xz |
Merge tag 'rslib-v4.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux
Pull reed-salomon library updates from Kees Cook:
"Refactors rslib and callers to provide a per-instance allocation area
instead of performing VLAs on the stack"
* tag 'rslib-v4.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux:
rslib: Allocate decoder buffers to avoid VLAs
mtd: rawnand: diskonchip: Allocate rs control per instance
rslib: Split rs control struct
rslib: Simplify error path
rslib: Remove GPL boilerplate
rslib: Add SPDX identifiers
rslib: Cleanup top level comments
rslib: Cleanup whitespace damage
dm/verity_fec: Use GFP aware reed solomon init
rslib: Add GFP aware init function
Diffstat (limited to 'lib/reed_solomon/encode_rs.c')
-rw-r--r-- | lib/reed_solomon/encode_rs.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/lib/reed_solomon/encode_rs.c b/lib/reed_solomon/encode_rs.c index 0b5b1a6728ec0..9112d46e869ee 100644 --- a/lib/reed_solomon/encode_rs.c +++ b/lib/reed_solomon/encode_rs.c @@ -1,23 +1,16 @@ +// SPDX-License-Identifier: GPL-2.0 /* - * lib/reed_solomon/encode_rs.c - * - * Overview: - * Generic Reed Solomon encoder / decoder library + * Generic Reed Solomon encoder / decoder library * * Copyright 2002, Phil Karn, KA9Q * May be used under the terms of the GNU General Public License (GPL) * * Adaption to the kernel by Thomas Gleixner (tglx@linutronix.de) * - * $Id: encode_rs.c,v 1.5 2005/11/07 11:14:59 gleixner Exp $ - * - */ - -/* Generic data width independent code which is included by the - * wrappers. - * int encode_rsX (struct rs_control *rs, uintX_t *data, int len, uintY_t *par) + * Generic data width independent code which is included by the wrappers. */ { + struct rs_codec *rs = rsc->codec; int i, j, pad; int nn = rs->nn; int nroots = rs->nroots; |