Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1235171ybf; Sun, 1 Mar 2020 04:26:43 -0800 (PST) X-Google-Smtp-Source: APXvYqxL/MZWSu7/narolhaEhHkI7KUg5FvBX7E9ANkeIwAtCTOYWo99smGCPXVcqt45Xd2J1ha6 X-Received: by 2002:a05:6830:1257:: with SMTP id s23mr9741787otp.241.1583065603222; Sun, 01 Mar 2020 04:26:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583065603; cv=none; d=google.com; s=arc-20160816; b=ucgJGAl6bfXHLeIjXvliexAO1ErnTr5Kwt1niP31oPz1CNqVRvHUqpmVrCTDzkJWZ2 +crO1ZkoCK/RywzripXbf9154qxOQtMGAk33CTrXHatN1Do+62WTxXbnxWFMJgRL3bLK NkLHGkktD1T1mvvfw6lThcR0QLU9qZOb/z3d0iV1Jx2MrKO7YLdEFCWi79d7g3QpKmbF yA0MpWOuHGpOs9RQxCq81xb8XS2/0pmLzZnTujGnXXYhIhS/l6cBCcyysPvOiCFctwtM KzdTh8PQSrOzIAndQ+kp3KQ2RefzxVBknQj4L3EOkupoJQnoffl3LGRmuLvCoGTa8fbu s/tw== 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=GwzKa0DItfJGYOnV3JBEhSxHQvPh4KoiHhRXQg4dsi4=; b=j41845wVrCKUvvxZFtHV/OT8NI4hSbrDx+v3ym+QIMDPzfUQ0w7MQJpRQPV73sYWAV JzlKZ9sqxS3P0j36ZHhlpNwHS8alrjPKbS0oA6hxsV4KTaNU8YuwMqsMmZCP/6uRwj0Z i9z54Hp9FNFR42iXTsP4UUekfBF/kSEuXvWIL/3e+mCH+efKMPy73XQTsb3UUcEB7Im8 6s5R7jXGD8S0KBa0J6uPJFPDt/+vv5hUgwg8JeW0Xv8gQEWN5dzNN48kbXOItGQWWQfm ghD1ouDjXWQxn47EqFaSv8nHQ8Jrb4sNdN83eCbvimR0c0B7te1yehJOxqdpRNaw1IRz iTPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ud2jSOiC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d24si4523364otq.202.2020.03.01.04.26.30; Sun, 01 Mar 2020 04:26:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ud2jSOiC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726751AbgCAMZS (ORCPT + 99 others); Sun, 1 Mar 2020 07:25:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:54990 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725787AbgCAMZR (ORCPT ); Sun, 1 Mar 2020 07:25:17 -0500 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 CDD0520880; Sun, 1 Mar 2020 12:25:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583065517; bh=iwl45dktsriIQbBFVjaFO9PWC/Xfz0mIkUcdKvoKvP4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ud2jSOiCjXYngm+tP22PoFfyggtDCHH/5M/DC8QPtchPnlQhfvBmXWMa9aS2mK01x WMyf/NAiAVHt1o/VDwFrk+GgSZw7ZFx3gNEahQUAEZB+CzxO1OY1njUWM+KF0hs5Ek S+xql6mkqy0aKMUp5FzqVhcGfie/NO7LAY32b5ww= Date: Sun, 1 Mar 2020 13:25:14 +0100 From: Greg Kroah-Hartman To: Oscar Carter Cc: Forest Bond , devel@driverdev.osuosl.org, Malcolm Priestley , linux-kernel@vger.kernel.org, Gabriela Bittencourt , Colin Ian King Subject: Re: [PATCH] staging: vt6656: Declare a few variables as __read_mostly Message-ID: <20200301122514.GA1461917@kroah.com> References: <20200301112620.7892-1-oscar.carter@gmx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200301112620.7892-1-oscar.carter@gmx.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 01, 2020 at 12:26:20PM +0100, Oscar Carter wrote: > These include module parameters. > > Signed-off-by: Oscar Carter > --- > drivers/staging/vt6656/main_usb.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/staging/vt6656/main_usb.c b/drivers/staging/vt6656/main_usb.c > index 5e48b3ddb94c..701300202b21 100644 > --- a/drivers/staging/vt6656/main_usb.c > +++ b/drivers/staging/vt6656/main_usb.c > @@ -49,12 +49,12 @@ MODULE_LICENSE("GPL"); > MODULE_DESCRIPTION(DEVICE_FULL_DRV_NAM); > > #define RX_DESC_DEF0 64 > -static int vnt_rx_buffers = RX_DESC_DEF0; > +static int __read_mostly vnt_rx_buffers = RX_DESC_DEF0; > module_param_named(rx_buffers, vnt_rx_buffers, int, 0644); > MODULE_PARM_DESC(rx_buffers, "Number of receive usb rx buffers"); > > #define TX_DESC_DEF0 64 > -static int vnt_tx_buffers = TX_DESC_DEF0; > +static int __read_mostly vnt_tx_buffers = TX_DESC_DEF0; > module_param_named(tx_buffers, vnt_tx_buffers, int, 0644); > MODULE_PARM_DESC(tx_buffers, "Number of receive usb tx buffers"); > Why? What does this help with? thanks, greg k-h