From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757527Ab1KOWeE (ORCPT ); Tue, 15 Nov 2011 17:34:04 -0500 Received: from mail.vyatta.com ([76.74.103.46]:59099 "EHLO mail.vyatta.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757484Ab1KOWeC (ORCPT ); Tue, 15 Nov 2011 17:34:02 -0500 Date: Tue, 15 Nov 2011 14:33:59 -0800 From: Stephen Hemminger To: David Decotigny Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "David S. Miller" , Ian Campbell , Eric Dumazet , Jeff Kirsher , Ben Hutchings , Jiri Pirko , Joe Perches , Szymon Janc , Richard Jones , Ayaz Abdulla Subject: Re: [PATCH net-next v4 4/8] forcedeth: expose module parameters in /sys/module Message-ID: <20111115143359.781ba295@s6510.linuxnetplumber.net> In-Reply-To: <558f3ff3d373b1cdcbebebe842816b3c91438728.1321384662.git.david.decotigny@google.com> References: <558f3ff3d373b1cdcbebebe842816b3c91438728.1321384662.git.david.decotigny@google.com> Organization: Vyatta X-Mailer: Claws Mail 3.7.10 (GTK+ 2.24.7; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 15 Nov 2011 11:25:37 -0800 David Decotigny wrote: > +module_param(msi, int, S_IRUGO); > MODULE_PARM_DESC(msi, "MSI interrupts are enabled by setting to 1 and disabled by setting to 0."); > -module_param(msix, int, 0); > +module_param(msix, int, S_IRUGO); > MODULE_PARM_DESC(msix, "MSIX interrupts are enabled by setting to 1 and disabled by setting to 0."); > -module_param(dma_64bit, int, 0); > +module_param(dma_64bit, int, S_IRUGO); Once again these attributes are visible through other means (/proc/interrupts for MSI) and the 64bit dma is NETIF_F_HIGHDMA. They shouldn't be module parameters.