Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4221405pxf; Tue, 16 Mar 2021 08:20:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHQTXYiPy4kwdSp2YXysU7v5gtVRbsu3MeY51VVWCtk3OslYiqT/HwGwmLYtJ3DJUIAzU8 X-Received: by 2002:a05:6402:268c:: with SMTP id w12mr18751533edd.280.1615908028823; Tue, 16 Mar 2021 08:20:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615908028; cv=none; d=google.com; s=arc-20160816; b=gsSy3A7tW2zLa8j9mWdKAzJVV8/fi4My1zbZPK6iSrRkEEIQ3ED/r3ibkueT+XJcMm kNPdAiCb72DCrU4grdkiZQRj9ihx8kDOzX8UlMeuHb3domWRtT6bdCM/mTx5PtAeyGnI 6A8uUzkz3qHXhrWawQvDnOUFdOlE7bOsMOLC7AyItXsaWacE3OjmxeesHgD9Pdzxtcs1 xybhJvB3KYEC7ZYF8Q3fc77AzZSwtPzcADEzJwCYxybR4xUaEVQBu0h/1/iPjhdY+okI wo5v8RFWF2t5X3sSbJZkmf+YWbxRlVpVEhzvxPfPAj4GYnivxhFUZl+9UJ4qvAYPctGe QFbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:to:subject:dkim-signature; bh=KRgk6qK79Q+mzBlcpSNvhKgEpRnrG4M0y7BRA/dy/2c=; b=kSkghCMhj5+Vq2qe53/VbK94aFykSff1j9/ndgzPXOJN5nhJ4br33tMDHajVYg2WMi 1JJ0WJxlzUfL191JIdxcc1EQa59ArjpY8lBf7g3//XLmvgVmybx+2dd87rWVWFA+nKA1 n4wB6lxnqFBnEHr8HHyg4MfU0dQ/iog/fsABRiPSVrnnek/1MSFeAhkmR4XfUf8i7xrQ pICQT5yNaV7Nj9a7zgq74lghHG5ecef/GTnrPz6bZFzBhX2UnduxuOL8F2ukApMkXh3H y484ZLcgMOKc9WhEE3L2uTOdqvkPXQVbFeoVTzDxJfk4M4lMZ2Fj66sZCylEAOS5gm5P ZeMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mev.co.uk header.s=20190130-41we5z8j header.b=BD71bKwa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g3si14117220edr.463.2021.03.16.08.20.06; Tue, 16 Mar 2021 08:20:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mev.co.uk header.s=20190130-41we5z8j header.b=BD71bKwa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236677AbhCPKbl (ORCPT + 99 others); Tue, 16 Mar 2021 06:31:41 -0400 Received: from smtp119.ord1c.emailsrvr.com ([108.166.43.119]:49558 "EHLO smtp119.ord1c.emailsrvr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236699AbhCPKbc (ORCPT ); Tue, 16 Mar 2021 06:31:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mev.co.uk; s=20190130-41we5z8j; t=1615890691; bh=mwT18wqfxXbfbbf/yugkbhkjXJijF9Lw3D4H5UEXS9U=; h=Subject:To:From:Date:From; b=BD71bKwa9+JKcLzdXjZ67fVULd/XFLCyoD91IwMIMy+9SGxQHo1Ev/LKgykFNbTMD I6lr375E/514QcNoMcHET6mtXZVLR2dRPmsC/y8T2ZoJNubpeWgYyWoQWAUelbBbnV gMmkw9jFw8CdYXtjz36ntiykyGcqxC0du1OHZaoo= X-Auth-ID: abbotti@mev.co.uk Received: by smtp15.relay.ord1c.emailsrvr.com (Authenticated sender: abbotti-AT-mev.co.uk) with ESMTPSA id DE4B220126; Tue, 16 Mar 2021 06:31:30 -0400 (EDT) Subject: Re: [PATCH v2] staging: comedi: cb_pcidas64: fix request_irq() warn To: Tong Zhang , H Hartley Sweeten , Greg Kroah-Hartman , "Alexander A. Klimov" , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org References: <858341a6-c105-1440-aa4d-ea0217f2ec89@mev.co.uk> <20210315195814.4692-1-ztong0001@gmail.com> From: Ian Abbott Organization: MEV Ltd. Message-ID: Date: Tue, 16 Mar 2021 10:31:29 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: <20210315195814.4692-1-ztong0001@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Classification-ID: 6cf650db-b512-42c3-a719-2d044d753507-1-1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15/03/2021 19:58, 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 > since the .name might be used by userspace and we don't want to break > userspace, so we are changing the parameters passed to request_irq() > > [ 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] > > Suggested-by: Ian Abbott > Signed-off-by: Tong Zhang > --- > v2: revert changes to .name field so that we dont break userspace > > drivers/staging/comedi/drivers/cb_pcidas64.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/comedi/drivers/cb_pcidas64.c b/drivers/staging/comedi/drivers/cb_pcidas64.c > index fa987bb0e7cd..6d3ba399a7f0 100644 > --- a/drivers/staging/comedi/drivers/cb_pcidas64.c > +++ b/drivers/staging/comedi/drivers/cb_pcidas64.c > @@ -4035,7 +4035,7 @@ static int auto_attach(struct comedi_device *dev, > init_stc_registers(dev); > > retval = request_irq(pcidev->irq, handle_interrupt, IRQF_SHARED, > - dev->board_name, dev); > + "cb_pcidas64", dev); > if (retval) { > dev_dbg(dev->class_dev, "unable to allocate irq %u\n", > pcidev->irq); > Looks good. Reviewed-by: Ian Abbott -- -=( Ian Abbott || 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 )=-