Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3498282rwl; Sun, 2 Apr 2023 08:42:37 -0700 (PDT) X-Google-Smtp-Source: AK7set8ETkNRkNq5ALU3eu9x0iTzeonyIWH2JxelQAya7hVSMCE4G3rOpfxGDcsZE7l4WLjBUnPc X-Received: by 2002:a05:6a20:1221:b0:dd:cae3:641c with SMTP id v33-20020a056a20122100b000ddcae3641cmr25703656pzf.55.1680450156730; Sun, 02 Apr 2023 08:42:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680450156; cv=none; d=google.com; s=arc-20160816; b=MeHySmfHtSOmN/vZyTijAb5TG3um/0DhXeu7mv5IndJQr6To+0uUe8I7IjP8lQLTh+ bNYgdZY8LwZeN4/VB3SDM419+z88X/TygTlO9ylLLVwXKKL41DT6JyLS6CTbps79uQMa Z/mX477HzpJ4mLCb8KtWKbKyl2bhoi0/NBz5c9IVCFj8eXyHzj616rZBtdmphn2MwF3e BF7LUwc+UDjS24AlNkY4fZjglK8N+b5nV4RUKfkukHih9uOGUxhKW+ND82sBDf+3qOB/ n9QmSIRnpkLMzRaadT1T6I0eyeEGKRN9ejLaZsyxCwDGuQR9tIhXkSD/0o7n8H4oMTip YUKQ== 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=3s8sQaRFNa5pyOzv9VBHytUOGR8WCkd6JQTH5Eh36pE=; b=TA2FDqq8cRJLv6Sotls8yfWjN8O7VdjiGmnPt+oA9NjivLCHTqFWAErze2H93LDjOe QH4T219Jnjnwg1RNCBpcS7oz/jJcoqLRGdLX51QS/qUN+Yhsn/xPlh1s/ZoDWdG+tQq9 FivN2ej36LM9EHSn+77AST+jNY6xRnYZ0pkyMH6F57H3984l8e4cG0YvIgYttF6aI4XM 3U1U1tGbGf536S8RjRsum4nOvDnEMw7Yo5jueR0iMWUen/DGsxE4uPpJh2GZrSo4MWNX cg5OdC0ADXS7WN22K+RezMdyC9NUHFO76TpIrYKand4ysvbQYtM9NW6diybNMdUAQUbE 4LTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=x5k+CXPR; 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 w68-20020a636247000000b0050bf6a432ecsi7109074pgb.681.2023.04.02.08.42.25; Sun, 02 Apr 2023 08:42:36 -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=x5k+CXPR; 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 S231171AbjDBPgl (ORCPT + 99 others); Sun, 2 Apr 2023 11:36:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230456AbjDBPgk (ORCPT ); Sun, 2 Apr 2023 11:36:40 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27EBF10E for ; Sun, 2 Apr 2023 08:36:39 -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 BD7BAB80EB7 for ; Sun, 2 Apr 2023 15:36:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E5C0FC433D2; Sun, 2 Apr 2023 15:36:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1680449796; bh=1VA+q3LChcT+W3q9UzN7C9s0v5nEGgLqDRIKblkTHzI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=x5k+CXPRcW6iqApryqwIoGWakJtym1nabZ2bS1sXKgBVKyNZ171HnDCTqZ/AsSYK1 0Ats11KIU6UodSmGZ4uDKKBWodzMrXvi0SQD9PqDVozielwZ9aAw9PAVgo/L82rt92 jqBciCaMTMokzuoHxSeWWeAupDffalBKlh20CrbM= Date: Sun, 2 Apr 2023 17:36:33 +0200 From: Greg KH To: Dalvin-Ehinoma Noah Aiguobas Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: wlan-ng: add comment to spinlock_t Message-ID: <2023040231-lyricist-retouch-37d9@gregkh> References: <20230402153244.GA12609@koolguy> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230402153244.GA12609@koolguy> X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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, Apr 02, 2023 at 05:32:44PM +0200, Dalvin-Ehinoma Noah Aiguobas wrote: > Fix checkpatch.pl warning: spinlock_t definition without comment in > drivers/staging/wlan-ng/hfa384x.h > > Signed-off-by: Dalvin-Ehinoma Noah Aiguobas > --- > drivers/staging/wlan-ng/hfa384x.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/wlan-ng/hfa384x.h b/drivers/staging/wlan-ng/hfa384x.h > index e33dd1b9c40e..fc6d67cec5b1 100644 > --- a/drivers/staging/wlan-ng/hfa384x.h > +++ b/drivers/staging/wlan-ng/hfa384x.h > @@ -1000,7 +1000,7 @@ struct hfa384x_usbctlx { > }; > > struct hfa384x_usbctlxq { > - spinlock_t lock; > + spinlock_t lock; /* disable interrupts while working in hfa384 or hfa384x_usbctlx */ Disable interrupts? Are you sure that is what this lock is doing? And what exactly does "while working in..." mean? Why not just write real kernel doc for all of the fields in this structure? thanks, greg k-h