From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Google-Smtp-Source: AIpwx4/n6J9QWtOQnDN11+4C87spGsV0dbZLqrLNDqEqvfQwU0IY8gvjj7aNZhgp/RQMzKFM+BNC ARC-Seal: i=1; a=rsa-sha256; t=1524132654; cv=none; d=google.com; s=arc-20160816; b=NXAqT4tWZDkyiQnnV7u8oL9h8iDX2tAIz6g8Bg1SOY166DVVLNwjcTCzsjMQv8bO/h rqWcfpp324oiuuWBhOhNVIMGhqIoQ6JcmLD5Y5HBuS20DyhiA4yIMApdi8UlXTRSKHjY EtTtDAuima+wr84zJNEf3Slv3GZ1i7Xjav7lx540Y7GkERmImX6n0vMYsiFHIefFaMuS LflgZlfxPmiAkeJ3AE9S2urXhG+AaD1p4eakcAkHmpnyN8h8S7R8zWjGWZN1hxvqJNPa dwrEHSLq/yIxy7slqw+Y5+6oe8o9PucK7JKbkH2kdMFxcxAfuFX5A9WrWTZnPv1KdjHS 7YMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:references:subject:cc:to:from:date :user-agent:message-id:delivered-to:list-id:list-subscribe :list-unsubscribe:list-help:list-post:precedence:mailing-list :arc-authentication-results; bh=bZ8AkhmXYDBUlTHhm7E1pHDOhcoe39CVTWafQt7j5lg=; b=MHAT8us0/KHDtdsbQi1MTG3GyHCFlwXx4z3Q78VoKZURw66XoOEmco9VP823V12T6Q LM5zhNxkzV8kWC3yhofD1Fxh9StgaPnsxa5deI9Epu4SFaBmxA8x0BzhAY1Zfkw/I9MJ 5VBeoMS+ECPUtGduFPaJziCzD3Ov28RA9IlGeKgWDtWzFBPthjZrbyzgPnYFBQwTIXFB 52NbuwHiTC6laocASdViXQjIkfdLMg/5XD60MN7zebVgZXkk3Iilgmc8YaJkH92UMHl1 kzIijdMLr6LJy5V8LsgnU7RtkVRNmrBcXxru6B5/Sacthc5WPUzYksNUjZc3ENCB1mhr PPuw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of kernel-hardening-return-13052-gregkh=linuxfoundation.org@lists.openwall.com designates 195.42.179.200 as permitted sender) smtp.mailfrom=kernel-hardening-return-13052-gregkh=linuxfoundation.org@lists.openwall.com Authentication-Results: mx.google.com; spf=pass (google.com: domain of kernel-hardening-return-13052-gregkh=linuxfoundation.org@lists.openwall.com designates 195.42.179.200 as permitted sender) smtp.mailfrom=kernel-hardening-return-13052-gregkh=linuxfoundation.org@lists.openwall.com Mailing-List: contact kernel-hardening-help@lists.openwall.com; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: Message-Id: <20180419100934.829783226@linutronix.de> User-Agent: quilt/0.63-1 Date: Thu, 19 Apr 2018 12:04:42 +0200 From: Thomas Gleixner To: LKML Cc: Kees Cook , Segher Boessenkool , Kernel Hardening , Andrew Morton , Boris Brezillon , Richard Weinberger , David Woodhouse , Alasdair Kergon , Mike Snitzer , Anton Vorontsov , Colin Cross , Tony Luck Subject: [patch V2 1/8] rslib: Cleanup whitespace damage References: <20180419100441.548834519@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline; filename=rslib--Cleanup_whitespace_damage.patch X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: =?utf-8?q?1598168922310618962?= X-GMAIL-MSGID: =?utf-8?q?1598168922310618962?= X-Mailing-List: linux-kernel@vger.kernel.org List-ID: From: Thomas Gleixner Instead of mixing the whitespace cleanup into functional changes, mop it up first. Signed-off-by: Thomas Gleixner Cc: Boris Brezillon Cc: Tony Luck Cc: Kees Cook Cc: Segher Boessenkool Cc: Kernel Hardening Cc: Richard Weinberger Cc: Mike Snitzer Cc: Anton Vorontsov Cc: Colin Cross Cc: Andrew Morton Cc: David Woodhouse Cc: Alasdair Kergon --- include/linux/rslib.h | 14 +++++++------- lib/reed_solomon/reed_solomon.c | 20 ++++++++++---------- 2 files changed, 17 insertions(+), 17 deletions(-) --- a/include/linux/rslib.h +++ b/include/linux/rslib.h @@ -39,15 +39,15 @@ * @list: List entry for the rs control list */ struct rs_control { - int mm; - int nn; + int mm; + int nn; uint16_t *alpha_to; uint16_t *index_of; uint16_t *genpoly; - int nroots; - int fcr; - int prim; - int iprim; + int nroots; + int fcr; + int prim; + int iprim; int gfpoly; int (*gffunc)(int); int users; @@ -80,7 +80,7 @@ int decode_rs16(struct rs_control *rs, u struct rs_control *init_rs(int symsize, int gfpoly, int fcr, int prim, int nroots); struct rs_control *init_rs_non_canonical(int symsize, int (*func)(int), - int fcr, int prim, int nroots); + int fcr, int prim, int nroots); /* Release a rs control structure */ void free_rs(struct rs_control *rs); --- a/lib/reed_solomon/reed_solomon.c +++ b/lib/reed_solomon/reed_solomon.c @@ -64,7 +64,7 @@ static DEFINE_MUTEX(rslistlock); * en/decoding. Fill the arrays according to the given parameters. */ static struct rs_control *rs_init(int symsize, int gfpoly, int (*gffunc)(int), - int fcr, int prim, int nroots) + int fcr, int prim, int nroots) { struct rs_control *rs; int i, j, sr, root, iprim; @@ -191,14 +191,14 @@ void free_rs(struct rs_control *rs) * @gffunc: pointer to function to generate the next field element, * or the multiplicative identity element if given 0. Used * 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 * @prim: primitive element to generate polynomial roots * @nroots: RS code generator polynomial degree (number of roots) */ static struct rs_control *init_rs_internal(int symsize, int gfpoly, - int (*gffunc)(int), int fcr, - int prim, int nroots) + int (*gffunc)(int), int fcr, + int prim, int nroots) { struct list_head *tmp; struct rs_control *rs; @@ -207,9 +207,9 @@ static struct rs_control *init_rs_intern if (symsize < 1) return NULL; if (fcr < 0 || fcr >= (1<= (1<= (1<