Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2720285ybh; Fri, 24 Jul 2020 22:52:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCup2Y7POmFWP8lIrXWcBf7UwGRuPoga5Fz2DiLUcDglFx1JK7nuoEwlRgPWwNuBn/h8Vt X-Received: by 2002:a17:907:42d0:: with SMTP id nz24mr12698190ejb.135.1595656333444; Fri, 24 Jul 2020 22:52:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595656333; cv=none; d=google.com; s=arc-20160816; b=uRKYoiVBoMH1eAfT6bvumL9EO8IrxNShmXXKuUi9qfVrAp0+Bl0jY+6he9jcVwgSI0 jqpHhcQSjPzcs8xDMRyHZCXzcgFI+FQrTbjqM9Mebk5dC+CwJkKHEhP+eabvkQF5j93B OcOAs2ClyKAs7+qoR3X/8WIJVmHAr0mor/oyjKLM13ziYTiIL9xr5XymISdHUt5L4J+W kESTG1J2yakcb9/PnTGLXeCOCnsQItT6CLRLkbPOGK+OPGigjYmjJbNNS7HIeIZCtxse /XOMF1kpJTJIa4f/3WKa5m/i35PwilK6b1tydYPmChxEa1rxj8ZmW8ckzisTihzF9BEl MnfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=tliP/g++SDIQG3RTkEXzuYbiCifQg4NNFyk7GelK/9w=; b=p5PsfrGBqwBti7yqX3qv99O834QaBZQ9Edx4IwZDZusSnQ35mOJ6E8Tme1Hyln7IAd GHCDw2VEy+QyoDTfywU80XlIefibvGtDjX0UyNI8KDTq5n9FQnxnJvbGuTwhpBRTs57F wS8N9/9OlPDZLt0sTGkPb6BKUB3JqKHoSH5blrFEsGMZGiNjTyiFi0ySeS5rngAKrQf5 pOAgw7F7U9GZ2ejj+vGf7p4ZirffN2xjRlb6/+umTE1jn3BoA6VmvAwYlT0afLRzx0dK LEG7bRCJ834fdBaZQ6253wI3MRFP8qQU/02pppmG5c3bsdeq4gymzZ+76BxlVlnvktMq pizg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GtaNPTrQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t25si1849862edr.537.2020.07.24.22.51.49; Fri, 24 Jul 2020 22:52:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GtaNPTrQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726754AbgGYFtx (ORCPT + 99 others); Sat, 25 Jul 2020 01:49:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:57888 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725825AbgGYFtw (ORCPT ); Sat, 25 Jul 2020 01:49:52 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E609020714; Sat, 25 Jul 2020 05:49:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595656190; bh=nOYXXEP7ABDnjaiGUOsvjhAy8YRdlYndBnZUptslPoo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GtaNPTrQeFwft78Huw39jbds7hL7YAvwbsQKQgO0+Gi5orXnRlFzbgxVHHMcVHRhc Gucc74goV+vxUx9exQd48BZd7xUnvabXhd3dJ5DabGczF+KoMgR5CJS3Pe9cAnGjE9 W781mr82d0QNhScUYcbW2y/xzuwFGnYoGkSsIgyQ= Date: Sat, 25 Jul 2020 07:49:50 +0200 From: Greg Kroah-Hartman To: Anant Thazhemadam Cc: Larry Finger , Michael Straube , Rahul Gottipati , Anoop S , Dan Carpenter , Merwin Trever Ferrao , Joe Perches , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Fix coding style issues Message-ID: <20200725054950.GB1045868@kroah.com> References: <20200724202523.16829-1-anant.thazhemadam@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200724202523.16829-1-anant.thazhemadam@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 25, 2020 at 01:55:19AM +0530, Anant Thazhemadam wrote: > Coding style issues found were rectified > > Signed-off-by: Anant Thazhemadam > --- > drivers/staging/rtl8188eu/core/rtw_security.c | 92 ++++++++++--------- > 1 file changed, 47 insertions(+), 45 deletions(-) > > diff --git a/drivers/staging/rtl8188eu/core/rtw_security.c b/drivers/staging/rtl8188eu/core/rtw_security.c > index 21f6652dd69f..3111f4a899ee 100644 > --- a/drivers/staging/rtl8188eu/core/rtw_security.c > +++ b/drivers/staging/rtl8188eu/core/rtw_security.c > @@ -127,8 +127,8 @@ static __le32 getcrc32(u8 *buf, int len) > } > > /* > - Need to consider the fragment situation > -*/ > + * Need to consider the fragment situation > + */ > void rtw_wep_encrypt(struct adapter *padapter, u8 *pxmitframe) > { > int curfragnum, length; > @@ -429,9 +429,9 @@ static const unsigned short Sbox1[2][256] = { /* Sbox for hash (can be in ROM) > 0x2DB6, 0x3C22, 0x1592, 0xC920, 0x8749, 0xAAFF, 0x5078, 0xA57A, > 0x038F, 0x59F8, 0x0980, 0x1A17, 0x65DA, 0xD731, 0x84C6, 0xD0B8, > 0x82C3, 0x29B0, 0x5A77, 0x1E11, 0x7BCB, 0xA8FC, 0x6DD6, 0x2C3A, > - }, > +}, > > - { /* second half of table is unsigned char-reversed version of first! */ > +{ /* second half of table is unsigned char-reversed version of first! */ > 0xA5C6, 0x84F8, 0x99EE, 0x8DF6, 0x0DFF, 0xBDD6, 0xB1DE, 0x5491, > 0x5060, 0x0302, 0xA9CE, 0x7D56, 0x19E7, 0x62B5, 0xE64D, 0x9AEC, > 0x458F, 0x9D1F, 0x4089, 0x87FA, 0x15EF, 0xEBB2, 0xC98E, 0x0BFB, > @@ -464,26 +464,26 @@ static const unsigned short Sbox1[2][256] = { /* Sbox for hash (can be in ROM) > 0xB62D, 0x223C, 0x9215, 0x20C9, 0x4987, 0xFFAA, 0x7850, 0x7AA5, > 0x8F03, 0xF859, 0x8009, 0x171A, 0xDA65, 0x31D7, 0xC684, 0xB8D0, > 0xC382, 0xB029, 0x775A, 0x111E, 0xCB7B, 0xFCA8, 0xD66D, 0x3A2C, > - } > +} > }; > > - /* > -********************************************************************** > -* Routine: Phase 1 -- generate P1K, given TA, TK, IV32 > -* > -* Inputs: > -* tk[] = temporal key [128 bits] > -* ta[] = transmitter's MAC address [ 48 bits] > -* iv32 = upper 32 bits of IV [ 32 bits] > -* Output: > -* p1k[] = Phase 1 key [ 80 bits] > -* > -* Note: > -* This function only needs to be called every 2**16 packets, > -* although in theory it could be called every packet. > -* > -********************************************************************** > -*/ > +/* > + ********************************************************************** > + * Routine: Phase 1 -- generate P1K, given TA, TK, IV32 > + * > + * Inputs: > + * tk[] = temporal key [128 bits] > + * ta[] = transmitter's MAC address [ 48 bits] > + * iv32 = upper 32 bits of IV [ 32 bits] > + * Output: > + * p1k[] = Phase 1 key [ 80 bits] > + * > + * Note: > + * This function only needs to be called every 2**16 packets, > + * although in theory it could be called every packet. > + * > + ********************************************************************** > + */ > static void phase1(u16 *p1k, const u8 *tk, const u8 *ta, u32 iv32) > { > int i; > @@ -507,28 +507,28 @@ static void phase1(u16 *p1k, const u8 *tk, const u8 *ta, u32 iv32) > } > > /* > -********************************************************************** > -* Routine: Phase 2 -- generate RC4KEY, given TK, P1K, IV16 > -* > -* Inputs: > -* tk[] = Temporal key [128 bits] > -* p1k[] = Phase 1 output key [ 80 bits] > -* iv16 = low 16 bits of IV counter [ 16 bits] > -* Output: > -* rc4key[] = the key used to encrypt the packet [128 bits] > -* > -* Note: > -* The value {TA, IV32, IV16} for Phase1/Phase2 must be unique > -* across all packets using the same key TK value. Then, for a > -* given value of TK[], this TKIP48 construction guarantees that > -* the final RC4KEY value is unique across all packets. > -* > -* Suggested implementation optimization: if PPK[] is "overlaid" > -* appropriately on RC4KEY[], there is no need for the final > -* for loop below that copies the PPK[] result into RC4KEY[]. > -* > -********************************************************************** > -*/ > + ********************************************************************** > + * Routine: Phase 2 -- generate RC4KEY, given TK, P1K, IV16 > + * > + * Inputs: > + * tk[] = Temporal key [128 bits] > + * p1k[] = Phase 1 output key [ 80 bits] > + * iv16 = low 16 bits of IV counter [ 16 bits] > + * Output: > + * rc4key[] = the key used to encrypt the packet [128 bits] > + * > + * Note: > + * The value {TA, IV32, IV16} for Phase1/Phase2 must be unique > + * across all packets using the same key TK value. Then, for a > + * given value of TK[], this TKIP48 construction guarantees that > + * the final RC4KEY value is unique across all packets. > + * > + * Suggested implementation optimization: if PPK[] is "overlaid" > + * appropriately on RC4KEY[], there is no need for the final > + * for loop below that copies the PPK[] result into RC4KEY[]. > + * > + ********************************************************************** > + */ > static void phase2(u8 *rc4key, const u8 *tk, const u16 *p1k, u16 iv16) > { > int i; > @@ -718,7 +718,9 @@ u32 rtw_tkip_decrypt(struct adapter *padapter, u8 *precvframe) > res = _FAIL; > } > } else { > - RT_TRACE(_module_rtl871x_security_c_, _drv_err_, ("%s: stainfo==NULL!!!\n",__func__)); > + RT_TRACE(_module_rtl871x_security_c_, _drv_err_, > + ("%s: stainfo==NULL!!!\n", __func__) > + ); > res = _FAIL; > } > } > -- > 2.25.1 > Hi, This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree. You are receiving this message because of the following common error(s) as indicated below: - Your patch did many different things all at once, making it difficult to review. All Linux kernel patches need to only do one thing at a time. If you need to do multiple things (such as clean up all coding style issues in a file/driver), do it in a sequence of patches, each one doing only one thing. This will make it easier to review the patches to ensure that they are correct, and to help alleviate any merge issues that larger patches can cause. - You did not specify a description of why the patch is needed, or possibly, any description at all, in the email body. Please read the section entitled "The canonical patch format" in the kernel file, Documentation/SubmittingPatches for what is needed in order to properly describe the change. - You did not write a descriptive Subject: for the patch, allowing Greg, and everyone else, to know what this patch is all about. Please read the section entitled "The canonical patch format" in the kernel file, Documentation/SubmittingPatches for what a proper Subject: line should look like. If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers. thanks, greg k-h's patch email bot