Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1085153pxf; Thu, 18 Mar 2021 20:50:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxE8wb8n+B6WCOJO5NoRaeuCYCfKc8rav4//+XxQnI29Bt+bQkNAsWTJg91GDqgZbzFmdWA X-Received: by 2002:a17:906:f56:: with SMTP id h22mr2073439ejj.494.1616125817157; Thu, 18 Mar 2021 20:50:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616125817; cv=none; d=google.com; s=arc-20160816; b=ZK9yjoEDKTgWcihYmWb8Le6UjJHCTSoZLbvNKK/vHh+und1KRlS/x1QtozEZHiBmV6 jEVt5BjBtLc2m09MRhxd2L/7eravXCEyvwDUDnd9Vbl0XPLjDBzuNIfFLHv5BS2qR3Gg U0qfgPSOAewfHrvtneiOQaXsNRdcn3HK5TRDJngBonUlMZbjAUpVEuF4dFDW5RbNFkmF gUw+l1WqO4iPMHyCd6/Xzg9ArN6GgiHhcppeY+XyVTPOF2mqz/4nTm9OTE685BXG6lgj MtHH2dRIOsFmjNhxoDx3yjk2d5KZrrwgH+BZREemf5Ov1e33iDx8tU+58ozM/o05QvsO W4/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=hxhh6pAeMJKWUC39tUcChryYGa8hpOFSDYpkxrgsErw=; b=RGzq0YG6eEUwmTKUXaoVsaBy0zfSDaJzxMHmOfRUQ7QnHatSbeGL5yPlhhtVMYcUz4 0PANVK22aSvEt4wPVbLu/OLA9OfNLY3zBw871sxizuNuyK7hzT1DvDSBQXFPGtpQDaeT wkxEoNM/lvA3YjqsRygNNNmoSGkJjWrpXnoiCZyztPN0Cv+XPlrnx4wKnUGiVd9CFA+I wWJk5P5Nmr5+PvvCIbk79KS5gKGnAllz8wzTbS5eb89Iq1Qte+ylSy7e0g3DC3e4cQmT d5pHbu8japtW4UJWTWqf2+nJCM2GZoM/5rRnz2Mr1Z4diqnM9hVUoig9YuZU/vs/ARql HbqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=r7sclbCM; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gz11si3471944ejc.745.2021.03.18.20.49.55; Thu, 18 Mar 2021 20:50:17 -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=@gmail.com header.s=20161025 header.b=r7sclbCM; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233620AbhCSDsx (ORCPT + 99 others); Thu, 18 Mar 2021 23:48:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233613AbhCSDsw (ORCPT ); Thu, 18 Mar 2021 23:48:52 -0400 Received: from mail-il1-x136.google.com (mail-il1-x136.google.com [IPv6:2607:f8b0:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28C59C06174A for ; Thu, 18 Mar 2021 20:48:52 -0700 (PDT) Received: by mail-il1-x136.google.com with SMTP id t18so6856905iln.3 for ; Thu, 18 Mar 2021 20:48:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hxhh6pAeMJKWUC39tUcChryYGa8hpOFSDYpkxrgsErw=; b=r7sclbCMB6a+rHNtxfflluf2hpMjzxuVu1a7hdqZd5jXMrWUt2WTn8GArdJ/jdpzLC ohmLlSuPzlBFZbj51NN1Vc0OmH9T1dQRacneLDlK+z8ew9xEQukaIPInps3HZ4rZibgi a5sHBa2Ga5gj4pJ9CerRhsI4G8q0JMGoJknzgFb3zfd/bX5yUbcfMzTR9VeCV5JsWkik 1pakKGoi2p4u+plpVDTojy+fGm1P7fIqQuKlIa9xXz4Pz151v3GPGz6P6B7T0j+5Od0a oIL7yeUjOHjdXBu5jE8wodzCQTcBVxgGO+pWH3nQYeX7U1LR+xLm3PAheZWdUl9PoWyJ yjmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hxhh6pAeMJKWUC39tUcChryYGa8hpOFSDYpkxrgsErw=; b=kQgG4g1PNAh2/atffP/WxV1vahCaBgh8lvE0Om1ucpAkEz7eMxPtW8iDLSdDaTzP0b 8O4ib0bL+wv/a+buYKJTaMzmM1O3KXQaMY7GhfOJFpSerqZd/KXTykI2IKG5mMA3tIMC /85rEpnUD5TghTjW6wG23AYk6XyNSOI45Tf07aBshtV/LzQ1mMUUUAMsYlB6KOS5O+ZP 0HfMioTIX7z86LpYt34D8Of0YYPCEjEsXXvRjOzIto9A3VZ2ZU/sPk5PLhlGP1zUSjp1 sLCdw2dvF3lsSmrGXq1TsZJzA6obTbHiaO3fG7/dEX7KKtvnQP/9/j4d71npws9uOAoK UvWA== X-Gm-Message-State: AOAM532PC3k86bZHBffy4Y5t8wSnCaJNR0flAgN8xYCxvtZPQ5E05DBM gV0pLpfXrWuqF0VMzLDkfcvicMyfyHU8S2H0bV4aIA2cRCI= X-Received: by 2002:a92:5214:: with SMTP id g20mr1212495ilb.260.1616125731645; Thu, 18 Mar 2021 20:48:51 -0700 (PDT) MIME-Version: 1.0 References: <92b7c57b-b645-9965-8157-4ca76a803cba@mev.co.uk> <20210316224227.348310-1-ztong0001@gmail.com> <8c65b02e-4315-153f-de2c-153862f195be@mev.co.uk> In-Reply-To: <8c65b02e-4315-153f-de2c-153862f195be@mev.co.uk> From: Tong Zhang Date: Thu, 18 Mar 2021 23:48:41 -0400 Message-ID: Subject: Re: [PATCH] staging: comedi: das800: fix request_irq() warn To: Ian Abbott Cc: H Hartley Sweeten , Greg Kroah-Hartman , "Alexander A. Klimov" , devel@driverdev.osuosl.org, open list Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thank you all, I fixed the commit log and resent as v2. Thanks, - Tong On Wed, Mar 17, 2021 at 8:48 AM Ian Abbott wrote: > > On 16/03/2021 22:42, 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() > > > > Suggested-by: Ian Abbott > > Signed-off-by: Tong Zhang > > --- > > drivers/staging/comedi/drivers/das800.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/staging/comedi/drivers/das800.c b/drivers/staging/comedi/drivers/das800.c > > index 2881808d6606..bc08324f422f 100644 > > --- a/drivers/staging/comedi/drivers/das800.c > > +++ b/drivers/staging/comedi/drivers/das800.c > > @@ -668,7 +668,7 @@ static int das800_attach(struct comedi_device *dev, struct comedi_devconfig *it) > > dev->board_name = board->name; > > > > if (irq > 1 && irq <= 7) { > > - ret = request_irq(irq, das800_interrupt, 0, dev->board_name, > > + ret = request_irq(irq, das800_interrupt, 0, "das800", > > dev); > > if (ret == 0) > > dev->irq = irq; > > > > Looks good (apart from the minor spelling niggle spotted by Dan > Carpenter), thanks! > > 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 )=-