Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5313845rwb; Sun, 11 Dec 2022 04:05:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf40gUWhi2y2mNv69+0RBSaQHNucCwXFsDeLMwuPxGKj3YC8xRwUKVUT+6tI+Kye/lnBdevt X-Received: by 2002:a17:906:3fc8:b0:7b7:718d:235 with SMTP id k8-20020a1709063fc800b007b7718d0235mr10693974ejj.55.1670760336059; Sun, 11 Dec 2022 04:05:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670760336; cv=none; d=google.com; s=arc-20160816; b=xt3dWrFRkvjDao9DfjX6+PK7lKOLTYgqCzau/kd/dPI0rWNxp2RqUys4UnIrmrAnML onyCr2Fsspu+iveKVk7ZG/p76+n87iHvJIhJuEiwHId34Zfv4h7Yj85VwCTkD6s9ly4B UjGnEw7iQw8rhD07yVmcRYOgX16Jn0bSgiukOFq1R7LE3H22q9O+fiB2YsCLDqg1SI7T B8au++CAf4WBSXyD/+hPeXd8mjEi7lkeU+7zj6BnLxvDEHYoomRMVTdODLUdE51OGYcO lRepETp45roPC2ac4UZLvQtGwNnbtoQAZ+ah+JyTGnC+ow+WcBZqyXJ+PDtVB7vJTwZZ K6Fw== 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=XjRMZmbon1LL1jsnqtKP+WzIBTRaQWUroUBAzOuNce8=; b=zqY/RO6ElG/kViiuDVa0Lq8y+uOTFKhozQoyevU7UrzYdMM084Hb00Ab/8R8KqHTh9 FPRXSJ3TlocVT5sSlCoRY6PrbgMHp0FwIH6Ytn7AAHDUrLvx923Vz0OGU3vML8YaE7ju +dyChbklgHwb3ep8aK8ZyVomxNE+/WiXnMJFHD2BlJVTeL9C2uhW19Wy6RhFmO8uOF7g aGpab+lKGBxgaF9PMVHsY/tiKpmuDqwDguAdbi7SYprS06TvDQsuWFj8jaHKkwpyzOrc WxbShV30fKYv3+8NKtoqqbimuKkTQO068XbxxncL98VX67OxHT2b/RfGOCA6FAJKerFx /cXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="f/GE4d4n"; 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 j20-20020a50ed14000000b00469589a6f57si4508843eds.561.2022.12.11.04.05.13; Sun, 11 Dec 2022 04:05:36 -0800 (PST) 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="f/GE4d4n"; 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 S230215AbiLKLdk (ORCPT + 75 others); Sun, 11 Dec 2022 06:33:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230209AbiLKLdj (ORCPT ); Sun, 11 Dec 2022 06:33:39 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 755B0BC3B for ; Sun, 11 Dec 2022 03:33:38 -0800 (PST) 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 sin.source.kernel.org (Postfix) with ESMTPS id C1694CE0B1A for ; Sun, 11 Dec 2022 11:33:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 931BFC433EF; Sun, 11 Dec 2022 11:33:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1670758414; bh=yXxiBhh4kn8sPgZWQf/bxgFMPGx3iwySDzRuKdth0gQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=f/GE4d4nEldb5laZOZUau/uWRTOeoyVvI8z4zwkpGd6wyxgQvpMBkg1cHSkqBDuG5 Ertaw8WfJ4oiQtYsQedg75lcpb3DifuYCyLmqjPr0hogcgrF2G7Vnd6/mb+H4M/QO4 eICd3mi+/ko3G1AbdijxRQF6NEA8At7D9Ce/LY2Q= Date: Sun, 11 Dec 2022 12:33:30 +0100 From: Greg Kroah-Hartman To: Dalvin Aiguobas Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, outreachy@lists.linux.dev Subject: Re: [PATCH] staging: wlan-ng: fix checkpatch error for spinlock Message-ID: References: <20221211105649.GA4683@koolguy> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 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 Sun, Dec 11, 2022 at 12:06:04PM +0100, Greg Kroah-Hartman wrote: > On Sun, Dec 11, 2022 at 11:56:49AM +0100, Dalvin Aiguobas wrote: > > Checkpatch Styleproblem fixed by adding comment. > > > > Signed-off-by: Dalvin > > --- > > drivers/staging/wlan-ng/hfa384x.h | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/drivers/staging/wlan-ng/hfa384x.h b/drivers/staging/wlan-ng/hfa384x.h > > index 0611e37df6ac..ad117d570bb6 100644 > > --- a/drivers/staging/wlan-ng/hfa384x.h > > +++ b/drivers/staging/wlan-ng/hfa384x.h > > @@ -1171,6 +1171,7 @@ struct hfa384x_usbctlx { > > }; > > > > struct hfa384x_usbctlxq { > > + /* lock: Protect structure fields */ Also, does this comment really make sense? To properly document a lock takes a bit more text, if you read this would it help out in understanding the code any? thanks, greg k-h