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>
This commit is contained in:
Родитель
eb366989aa
Коммит
cc4b86e496
|
@ -41,15 +41,15 @@
|
||||||
* @list: List entry for the rs control list
|
* @list: List entry for the rs control list
|
||||||
*/
|
*/
|
||||||
struct rs_control {
|
struct rs_control {
|
||||||
int mm;
|
int mm;
|
||||||
int nn;
|
int nn;
|
||||||
uint16_t *alpha_to;
|
uint16_t *alpha_to;
|
||||||
uint16_t *index_of;
|
uint16_t *index_of;
|
||||||
uint16_t *genpoly;
|
uint16_t *genpoly;
|
||||||
int nroots;
|
int nroots;
|
||||||
int fcr;
|
int fcr;
|
||||||
int prim;
|
int prim;
|
||||||
int iprim;
|
int iprim;
|
||||||
int gfpoly;
|
int gfpoly;
|
||||||
int (*gffunc)(int);
|
int (*gffunc)(int);
|
||||||
int users;
|
int users;
|
||||||
|
|
|
@ -193,7 +193,7 @@ EXPORT_SYMBOL_GPL(free_rs);
|
||||||
* @gffunc: pointer to function to generate the next field element,
|
* @gffunc: pointer to function to generate the next field element,
|
||||||
* or the multiplicative identity element if given 0. Used
|
* or the multiplicative identity element if given 0. Used
|
||||||
* instead of gfpoly if gfpoly is 0
|
* instead of gfpoly if gfpoly is 0
|
||||||
* @fcr: the first consecutive root of the rs code generator polynomial
|
* @fcr: the first consecutive root of the rs code generator polynomial
|
||||||
* in index form
|
* in index form
|
||||||
* @prim: primitive element to generate polynomial roots
|
* @prim: primitive element to generate polynomial roots
|
||||||
* @nroots: RS code generator polynomial degree (number of roots)
|
* @nroots: RS code generator polynomial degree (number of roots)
|
||||||
|
@ -210,9 +210,9 @@ static struct rs_control *init_rs_internal(int symsize, int gfpoly,
|
||||||
if (symsize < 1)
|
if (symsize < 1)
|
||||||
return NULL;
|
return NULL;
|
||||||
if (fcr < 0 || fcr >= (1<<symsize))
|
if (fcr < 0 || fcr >= (1<<symsize))
|
||||||
return NULL;
|
return NULL;
|
||||||
if (prim <= 0 || prim >= (1<<symsize))
|
if (prim <= 0 || prim >= (1<<symsize))
|
||||||
return NULL;
|
return NULL;
|
||||||
if (nroots < 0 || nroots >= (1<<symsize))
|
if (nroots < 0 || nroots >= (1<<symsize))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
@ -255,7 +255,7 @@ out:
|
||||||
* @gfpoly: the extended Galois field generator polynomial coefficients,
|
* @gfpoly: the extended Galois field generator polynomial coefficients,
|
||||||
* with the 0th coefficient in the low order bit. The polynomial
|
* with the 0th coefficient in the low order bit. The polynomial
|
||||||
* must be primitive;
|
* must be primitive;
|
||||||
* @fcr: the first consecutive root of the rs code generator polynomial
|
* @fcr: the first consecutive root of the rs code generator polynomial
|
||||||
* in index form
|
* in index form
|
||||||
* @prim: primitive element to generate polynomial roots
|
* @prim: primitive element to generate polynomial roots
|
||||||
* @nroots: RS code generator polynomial degree (number of roots)
|
* @nroots: RS code generator polynomial degree (number of roots)
|
||||||
|
@ -276,13 +276,13 @@ EXPORT_SYMBOL_GPL(init_rs_gfp);
|
||||||
* @gffunc: pointer to function to generate the next field element,
|
* @gffunc: pointer to function to generate the next field element,
|
||||||
* or the multiplicative identity element if given 0. Used
|
* or the multiplicative identity element if given 0. Used
|
||||||
* instead of gfpoly if gfpoly is 0
|
* instead of gfpoly if gfpoly is 0
|
||||||
* @fcr: the first consecutive root of the rs code generator polynomial
|
* @fcr: the first consecutive root of the rs code generator polynomial
|
||||||
* in index form
|
* in index form
|
||||||
* @prim: primitive element to generate polynomial roots
|
* @prim: primitive element to generate polynomial roots
|
||||||
* @nroots: RS code generator polynomial degree (number of roots)
|
* @nroots: RS code generator polynomial degree (number of roots)
|
||||||
*/
|
*/
|
||||||
struct rs_control *init_rs_non_canonical(int symsize, int (*gffunc)(int),
|
struct rs_control *init_rs_non_canonical(int symsize, int (*gffunc)(int),
|
||||||
int fcr, int prim, int nroots)
|
int fcr, int prim, int nroots)
|
||||||
{
|
{
|
||||||
return init_rs_internal(symsize, 0, gffunc, fcr, prim, nroots,
|
return init_rs_internal(symsize, 0, gffunc, fcr, prim, nroots,
|
||||||
GFP_KERNEL);
|
GFP_KERNEL);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче