Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3934707rwi; Sat, 22 Oct 2022 02:28:54 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7n2zdJXL1orh4SVdXijaqNPh+VBvvQFrDW/kwfoz/bpBGpVGjZ4i1nrDVOfVKyuJ02AJve X-Received: by 2002:a17:907:16a7:b0:79e:9eed:8f6 with SMTP id hc39-20020a17090716a700b0079e9eed08f6mr4211318ejc.731.1666430933934; Sat, 22 Oct 2022 02:28:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666430933; cv=none; d=google.com; s=arc-20160816; b=MPLtafpYblAfrrcKo8c8BXz/DWYeiOgPNkxJbhAar32tFffNHjQ4ArqkU7cgJxMUwf sNzQoFdjg49Kosa6sW6gvuyS3nBD7EqS+SDeuwsZgcIco8yX2XFgppl35vLOW9JQf5uF dSODB+6PcP+mCQdKsf8p2ZdZgHGTy5HPDVXae5+WZGQYoQJiHV2xUMlJyCp2eOtliaFp W4q0t5M9/FFYKAbMUSvje/d6ZbPY8X9CgtHmOe69yjAstu5ayvUym7ImlwVZd3cKM1eK NhimW7eqTQVpX5Fg9sosFY7Gbm0C6DQAmsPb8BGnbg1dNoPoxAZZyKrpAtNIERQ2RuMW mVKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3HHboBn94sH9DQjq3QEZ34CR6dSDasFb3vi028IN5rw=; b=XSWGam6Oia39iLncF+/eEtowkW0wY65NzoJJrWNHndL9vIY8B1SNcuMePGGl91OFQg 7bv5n0qPn9YOZQvQzPFnGuijYS8D8NDbNvwGN1XzLf74fRpmAqS2uvoZZ+9eqBX3UBIK TA9vL5HXEanCFBW9dJN3f3Vr07ZLbCry8AA6eNY7sRP4EsZvNcVKhHFg35Hzie9JaW+U SfOW+94BKtF8I1mlSHKETl+CVjYKjslgbQwg9wswvxTJkCBy/AuDRcVTTaKJcT/rQpDJ LpqqQygh8JH5y2p1LS3yY4LwG5qmNMzexnnYGCXGc11+axjVNzIyEOOZgQvbnT+dyPMP FEqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yJIjstl3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s11-20020a056402014b00b0045ca331c2ebsi19175595edu.232.2022.10.22.02.28.28; Sat, 22 Oct 2022 02:28:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yJIjstl3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230230AbiJVJF6 (ORCPT + 99 others); Sat, 22 Oct 2022 05:05:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235203AbiJVJED (ORCPT ); Sat, 22 Oct 2022 05:04:03 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43786D11F for ; Sat, 22 Oct 2022 01:19:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 790B7B82E21 for ; Sat, 22 Oct 2022 08:17:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BD2CEC433D6; Sat, 22 Oct 2022 08:17:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666426678; bh=csr2wj0+2lRqlwVTQny0FPjc5vzdb5L6SnyFM3xAO28=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=yJIjstl32VyHqO620gx57psR/WeXUbZBrW5QZmi9eSMT/eEFeGjIpPKvw9MCDlCOy UswbEZHRaVcoXEpcs9C3Xx0ezBq6rmAAmvGiCEyuud4bhhOS4izZCJg74eAJ1EGci8 rZL2LOZ7vWhf5sv11scLKAH9SUFV+5sasE6pWMBQ= Date: Sat, 22 Oct 2022 10:14:59 +0200 From: Greg KH To: Tanjuate Brunostar Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, outreachy@lists.linux.dev Subject: Re: [PATCH v3 5/6] staging: vt6655: refactor long lines of code in the rest of the file Message-ID: References: <20221022070612.13009-1-tanjubrunostar0@gmail.com> <20221022070612.13009-6-tanjubrunostar0@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221022070612.13009-6-tanjubrunostar0@gmail.com> X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Oct 22, 2022 at 07:06:11AM +0000, Tanjuate Brunostar wrote: > fix checkpatch errors by refactoring long lines of code in the rest of > the file > > Signed-off-by: Tanjuate Brunostar > --- > drivers/staging/vt6655/rxtx.c | 105 ++++++++++++++++++++++------------ > 1 file changed, 67 insertions(+), 38 deletions(-) > > diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c > index 951d4172e9f2..572be45cdbeb 100644 > --- a/drivers/staging/vt6655/rxtx.c > +++ b/drivers/staging/vt6655/rxtx.c > @@ -1105,44 +1105,60 @@ s_cbFillTxBufHead(struct vnt_private *pDevice, unsigned char byPktType, > if (byFBOption == AUTO_FB_NONE) { > if (bRTS) {/* RTS_need */ > pvRrvTime = (void *)(pbyTxBufferAddr + wTxBufSize); > - pMICHDR = (struct vnt_mic_hdr *)(pbyTxBufferAddr + wTxBufSize + sizeof(struct vnt_rrv_time_rts)); > - pvRTS = (void *)(pbyTxBufferAddr + wTxBufSize + sizeof(struct vnt_rrv_time_rts) + cbMICHDR); > + pMICHDR = (struct vnt_mic_hdr *)(pbyTxBufferAddr + wTxBufSize + > + sizeof(struct vnt_rrv_time_rts)); > + pvRTS = (void *)(pbyTxBufferAddr + wTxBufSize + > + sizeof(struct vnt_rrv_time_rts) + cbMICHDR); Casting to void * is very odd. Try working on fixing up that mess first... thanks, greg k-h