Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3942848rwi; Sat, 22 Oct 2022 02:37:05 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6M30EBgxz2u1ZxaR7vx3I+0Bqry/NbKbqWPEkd64P3yOp671Jszka8NKIuh8YDvDVCcnsK X-Received: by 2002:a05:6402:5483:b0:45c:1336:6d9b with SMTP id fg3-20020a056402548300b0045c13366d9bmr21501512edb.100.1666431415089; Sat, 22 Oct 2022 02:36:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666431415; cv=none; d=google.com; s=arc-20160816; b=iGxGsBWIiSgLHL2dzaVXwLoLOuox7MVhOoq4KMdqMk7lCvCqzmsgHCmbOm4Vr4iaXr uTVgvkrORC+CQKitEOwddqMWnziGjrLYnZxM8AE3jn9lEoH9j1AJtgzOMECPXvrpnkiV TGHYF+RxrmWKcOnmgcCIHpLyQq0OeK1UeKmKwFZzPsaI/0ZBuJlcTzT4248zQ1u9kMtt 9j8ZNtW7jf773+Fqkl+i167Z6FOKxGq2HI6WheUanqsr3joK4dscr/RyNpaziuyqCM1G N0bR0NiEYU6njZZmOx3pM6j6cd16iYxG+0zipLrFlZUN+slkuSFE8hkfU9v58Bz6z11z Jggw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Ci1g2jTtvoSe7PJcNgNyYuF4Ea5CkP/pjC29djDMeMc=; b=Jp7Z35FirELvr4tiz90OBDAB+Gk6qTbchqGYHYwjN5peivuneDvT/b/1MuG9X0JHUN FQ+FJDXkQWP0cCzogi23ouY3f3kqb4EblyGtFBCPIIJj4fOhwDpDL1pEdStq4us4eXBA zt/i6Ds8mLLa7252jRxvkBUd3jujampqYPWrM0LxdPoblMCYOp76FVO/lYZK03iGOrMK LEBhE4QGwhoag3zNjYSna/AQe27+hUD13oPxMjJWKkyydQ8M7dFxI2BPT0G2a6ciikY2 IcsKzEjuphrX+Xob0CP7+vd3krs7Vr0GmCxOnlkzFbQGOFz0FEQvXnCeKt8O4HTsNBGL td8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="bz/800+k"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hs29-20020a1709073e9d00b0078262e3839esi17261711ejc.27.2022.10.22.02.36.30; Sat, 22 Oct 2022 02:36:55 -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=@gmail.com header.s=20210112 header.b="bz/800+k"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230006AbiJVJRy (ORCPT + 99 others); Sat, 22 Oct 2022 05:17:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230133AbiJVJRF (ORCPT ); Sat, 22 Oct 2022 05:17:05 -0400 Received: from mail-qv1-xf36.google.com (mail-qv1-xf36.google.com [IPv6:2607:f8b0:4864:20::f36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED4FE5B9EF for ; Sat, 22 Oct 2022 01:31:11 -0700 (PDT) Received: by mail-qv1-xf36.google.com with SMTP id o8so3385601qvw.5 for ; Sat, 22 Oct 2022 01:31:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Ci1g2jTtvoSe7PJcNgNyYuF4Ea5CkP/pjC29djDMeMc=; b=bz/800+kZiSWRW5eELLh3EEWv0h632amG6g23xRhi2Oc5Gz85thclWR0q0CbQhntyp NCu6BLZ4iZ5tHLit/EImHgVbqPei33MckIWAUskDNBuvihbTOh0m+EPtqA5DTcUK2oKk CnLDJSP/wUeSIU4cr9e7x1lDyM6tFhYB1pjDg7e1iW8+BWUyz3j1JlGiTF34T2XJVmQ3 daT/CslOFXrX52Rnuj7+WtwohTfT/UBco9ISa7SYadTXQQ3NnmqCRVCuQKxxUPf+IQO+ ryIbTZvqms7LklLhWqmTH85FtONN2pxrYRx5Mm0JHnf3m/8L6AKQDqj/hxE/BEGvoNod Vlww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Ci1g2jTtvoSe7PJcNgNyYuF4Ea5CkP/pjC29djDMeMc=; b=SEBAaFJIqGXp4qzmgCObtWCfX+2lG3cQwaZwc2kTOfGRadA0hftGQUNd9TvUGYXd5E K+bE2T6nptV/XY9/EuXgEPVkrnaiZZK0XwBY61784lytZYBpmwxHScrhnwbcf7VztxlZ gynI4dH0uOpdy/bIGHFZH/saDp+tyJ7VJ1vqLSjwmsselTLPe6qUwEF4ez6Huo/pmIXL AurSBRGTqKv/38E6HEJSDzL7WewrWZPdJw7anLwJqdXEtAo6e66+/egf5TyaupHagW3D eWNAXWO5rPmj6oNDN7bIZeyqg2+TI/670UYO0dQ2eThf4h3UsG5YNqla1OFAAcztDCIH vcWQ== X-Gm-Message-State: ACrzQf3BS+2r7qAm8oCfo8CssohxK9KV2Ss+DY9hhJJ5jGX9eY0tUdPT Ia+GH7oa4+I5T6X6hK+3TwORzEcNi18l6jx28v/DVse04GH5liDgJlU= X-Received: by 2002:ad4:5d6c:0:b0:4af:b5e0:63f1 with SMTP id fn12-20020ad45d6c000000b004afb5e063f1mr19534141qvb.35.1666427374275; Sat, 22 Oct 2022 01:29:34 -0700 (PDT) MIME-Version: 1.0 References: <20221022070612.13009-1-tanjubrunostar0@gmail.com> <20221022070612.13009-6-tanjubrunostar0@gmail.com> In-Reply-To: From: Tanju Brunostar Date: Sat, 22 Oct 2022 09:29:22 +0100 Message-ID: Subject: Re: [PATCH v3 5/6] staging: vt6655: refactor long lines of code in the rest of the file To: Greg KH Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, outreachy@lists.linux.dev Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,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 9:17 AM Greg KH wrote: > > 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 OK