Thomas Gleixner
689c6efdfb
rslib: Remove GPL boilerplate
...
Now that SPDX identifiers are in place, remove the GPL boiler plate
text. Leave the notices which document that Phil Karn granted permission in
place (encode/decode source code). The modified files are code written for
the kernel by me.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org >
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Cc: Boris Brezillon <boris.brezillon@free-electrons.com >
Cc: Tony Luck <tony.luck@intel.com >
Cc: Kees Cook <keescook@chromium.org >
Cc: Segher Boessenkool <segher@kernel.crashing.org >
Cc: Kernel Hardening <kernel-hardening@lists.openwall.com >
Cc: Richard Weinberger <richard@nod.at >
Cc: Mike Snitzer <snitzer@redhat.com >
Cc: Anton Vorontsov <anton@enomsg.org >
Cc: Colin Cross <ccross@android.com >
Cc: Andrew Morton <akpm@linuxfoundation.org >
Cc: David Woodhouse <dwmw2@infradead.org >
Cc: Alasdair Kergon <agk@redhat.com >
Signed-off-by: Kees Cook <keescook@chromium.org >
2018-04-24 19:50:07 -07:00
Thomas Gleixner
dc8f923eae
rslib: Add SPDX identifiers
...
The Reed-Solomon library is based on code from Phil Karn who granted
permission to import it into the kernel under the GPL V2.
See commit 15b5423757a7 ("Shared Reed-Solomon ECC library") in the history
git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/tglx/history.git
...
The encoder/decoder code is lifted from the GPL'd userspace RS-library
written by Phil Karn. I modified/wrapped it to provide the different
functions which we need in the MTD/NAND code.
...
Signed-Off-By: Thomas Gleixner <tglx@linutronix.de >
Signed-Off-By: David Woodhouse <dwmw2@infradead.org >
"No objections at all. Just keep the authorship notices." -- Phil Karn
Add the proper SPDX identifiers according to
Documentation/process/license-rules.rst.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org >
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Cc: Boris Brezillon <boris.brezillon@free-electrons.com >
Cc: Tony Luck <tony.luck@intel.com >
Cc: Kees Cook <keescook@chromium.org >
Cc: Segher Boessenkool <segher@kernel.crashing.org >
Cc: Kernel Hardening <kernel-hardening@lists.openwall.com >
Cc: Richard Weinberger <richard@nod.at >
Cc: Mike Snitzer <snitzer@redhat.com >
Cc: Anton Vorontsov <anton@enomsg.org >
Cc: Colin Cross <ccross@android.com >
Cc: Andrew Morton <akpm@linuxfoundation.org >
Cc: David Woodhouse <dwmw2@infradead.org >
Cc: Alasdair Kergon <agk@redhat.com >
Signed-off-by: Kees Cook <keescook@chromium.org >
2018-04-24 19:50:07 -07:00
Thomas Gleixner
3413e1891d
rslib: Cleanup top level comments
...
File references and stale CVS ids are really not useful.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Cc: Boris Brezillon <boris.brezillon@free-electrons.com >
Cc: Tony Luck <tony.luck@intel.com >
Cc: Kees Cook <keescook@chromium.org >
Cc: Segher Boessenkool <segher@kernel.crashing.org >
Cc: Kernel Hardening <kernel-hardening@lists.openwall.com >
Cc: Richard Weinberger <richard@nod.at >
Cc: Mike Snitzer <snitzer@redhat.com >
Cc: Anton Vorontsov <anton@enomsg.org >
Cc: Colin Cross <ccross@android.com >
Cc: Andrew Morton <akpm@linuxfoundation.org >
Cc: David Woodhouse <dwmw2@infradead.org >
Cc: Alasdair Kergon <agk@redhat.com >
Signed-off-by: Kees Cook <keescook@chromium.org >
2018-04-24 19:50:06 -07:00
Thomas Gleixner
cc4b86e496
rslib: Cleanup whitespace damage
...
Instead of mixing the whitespace cleanup into functional changes, mop it up
first.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Cc: Boris Brezillon <boris.brezillon@free-electrons.com >
Cc: Tony Luck <tony.luck@intel.com >
Cc: Kees Cook <keescook@chromium.org >
Cc: Segher Boessenkool <segher@kernel.crashing.org >
Cc: Kernel Hardening <kernel-hardening@lists.openwall.com >
Cc: Richard Weinberger <richard@nod.at >
Cc: Mike Snitzer <snitzer@redhat.com >
Cc: Anton Vorontsov <anton@enomsg.org >
Cc: Colin Cross <ccross@android.com >
Cc: Andrew Morton <akpm@linuxfoundation.org >
Cc: David Woodhouse <dwmw2@infradead.org >
Cc: Alasdair Kergon <agk@redhat.com >
Signed-off-by: Kees Cook <keescook@chromium.org >
2018-04-24 19:50:05 -07:00
Thomas Gleixner
83a530e161
rslib: Add GFP aware init function
...
The rslib usage in dm/verity_fec is broken because init_rs() can nest in
GFP_NOIO mempool allocations as init_rs() is invoked from the mempool alloc
callback.
Provide a variant which takes gfp_t flags as argument.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Cc: Mike Snitzer <snitzer@redhat.com >
Cc: Alasdair Kergon <agk@redhat.com >
Cc: Neil Brown <neilb@suse.com >
Signed-off-by: Kees Cook <keescook@chromium.org >
2018-04-24 19:50:04 -07:00
Segher Boessenkool
d7e5a5462f
[RSLIB] Support non-canonical GF representations
...
For the CAFÉ NAND controller, we need to support non-canonical
representations of the Galois field. Allow the caller to provide its own
function for generating the field, and CAFÉ can use rslib instead of its
own implementation.
Signed-off-by: Segher Boessenkool <segher@kernel.crashing.org >
Signed-off-by: David Woodhouse <dwmw2@infradead.org >
2007-05-02 11:56:33 +01:00
Thomas Gleixner
03ead8427d
[LIB] reed_solomon: Clean up trailing white spaces
2005-11-07 14:25:38 +01:00
Linus Torvalds
1da177e4c3
Linux-2.6.12-rc2
...
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
2005-04-16 15:20:36 -07:00