[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <858341a6-c105-1440-aa4d-ea0217f2ec89@mev.co.uk>
Date: Mon, 15 Mar 2021 10:48:38 +0000
From: Ian Abbott <abbotti@....co.uk>
To: Tong Zhang <ztong0001@...il.com>,
H Hartley Sweeten <hsweeten@...ionengravers.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"Alexander A. Klimov" <grandmaster@...klimov.de>,
devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] staging: comedi: replace slash in name
On 15/03/2021 10:44, Ian Abbott wrote:
> On 14/03/2021 03:57, Tong Zhang wrote:
>> request_irq() wont accept a name which contains slash so we need to
>> repalce it with something else -- otherwise it will trigger a warning
>> and the entry in /proc/irq/ will not be created
>>
>> [ 1.565966] name 'pci-das6402/16'
>> [ 1.566149] WARNING: CPU: 0 PID: 184 at fs/proc/generic.c:180 __xlate_proc_name+0x93/0xb0
>> [ 1.568923] RIP: 0010:__xlate_proc_name+0x93/0xb0
>> [ 1.574200] Call Trace:
>> [ 1.574722] proc_mkdir+0x18/0x20
>> [ 1.576629] request_threaded_irq+0xfe/0x160
>> [ 1.576859] auto_attach+0x60a/0xc40 [cb_pcidas64]
>>
>> Signed-off-by: Tong Zhang <ztong0001@...il.com>
[snip]
> Userspace applications can use these strings to determine the board
> type, so changing the strings would break those applications.
>
> I suggest passing the comedi driver name "cb_pcidas" to request_irq()
> for now.
Oops, I meant "cb_pcidas64". But you could reach that via
dev->driver->driver_name if you want (where dev is the struct
comedi_device * parameter).
--
-=( Ian Abbott <abbotti@....co.uk> || MEV Ltd. is a company )=-
-=( registered in England & Wales. Regd. number: 02862268. )=-
-=( Regd. addr.: S11 & 12 Building 67, Europa Business Park, )=-
-=( Bird Hall Lane, STOCKPORT, SK3 0XA, UK. || www.mev.co.uk )=-
Powered by blists - more mailing lists