Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1085380pxf; Thu, 18 Mar 2021 20:50:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwodBjAeiPtCGKiBRFTd0rxxrv871pdMGK0D1BjrDzr8z7zUbqYc98sJiZbZMD+Ddk3gaHJ X-Received: by 2002:a17:907:1b20:: with SMTP id mp32mr2010435ejc.495.1616125853870; Thu, 18 Mar 2021 20:50:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616125853; cv=none; d=google.com; s=arc-20160816; b=Mu1PiIWNr7RHe9POkI9CsaOQrbXI2chbRHIUxEKjnwB/5El+l2ndXHeFdQAheUxAFJ CRZJ1JyySwvMCE5KW9CUEPPzMQQwKeyhdYZDq6mUlxwnVh5lOrMb5oA9AkFrKjW9MvcB l1MCWlafLQzXqdkucewmfEUm9GTw4zWXa4RkkV+AcK3s+mkw1UQZ+/fALqatBeSGpKil dBYkMlBrMADtaOHQIK7ZoQkosfB0OV8XhsBcR1/z8zBzwx9rFOJaJc1ZhwP+x7CYneYD Kh85xLrZ6YJR+/fR0p3mcLXUxd3bWG3ERojziLGIsLhq4qqI/TH/cibes/1k0wqeDzso iUuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=B2RnqxUzVjAaF9SlFdp/h+e1t2F2emkuMz4kNyNbvto=; b=SYQVo0WPcJ40hVIkVdW//s9GFyn0ZkStS0Tkugkm2X0lGR3nYiGKzn/eDmGC/VhavW UlVjYSUV0rhfeo2waSiF//wUTocgIcMubZyqukvSEpAtTQQ5R16NZYqQ/h0iAYnnzSQX v2OiXAPQr6Td192LpHtRp/yvuDx2ykcpZ3K0jJEQUAN18v9D971uYhSSclQSYsMpPbCH kOHGpIgbShelddcQXxwe8AODAngAdSQYQjobnqCrpJkA6dqF3WOZwhNy6nm/JxrbCih+ VCv7HhdHRyGXJfbb14/DI64BoSy/LNCvrJSqzbQFKktN5Eh2qyITlMQxjVTUdDmtB1FC LoNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="UAXzEV/J"; 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 e18si3245669edj.485.2021.03.18.20.50.32; Thu, 18 Mar 2021 20:50:53 -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="UAXzEV/J"; 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 S233527AbhCSDsW (ORCPT + 99 others); Thu, 18 Mar 2021 23:48:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233839AbhCSDsR (ORCPT ); Thu, 18 Mar 2021 23:48:17 -0400 Received: from mail-qt1-x829.google.com (mail-qt1-x829.google.com [IPv6:2607:f8b0:4864:20::829]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6286C06174A for ; Thu, 18 Mar 2021 20:48:16 -0700 (PDT) Received: by mail-qt1-x829.google.com with SMTP id l13so5799866qtu.9 for ; Thu, 18 Mar 2021 20:48:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=B2RnqxUzVjAaF9SlFdp/h+e1t2F2emkuMz4kNyNbvto=; b=UAXzEV/Jy55ieTkPbGz6esq+7fFMXhejFTLq7AsyGdltaCDoP1xDBqUEvv1LDRcFNx AVBqLpW12gG3yHULkCjc5YJumvfA0d6XyZf0uKGs1S1295nckcInjsSnngkbhjaMj0TR +OdOQGqpPXZIOleAV0OSpd3Ouegh5NS5JTX/N9jsg37PY7wMXmsXv5xMit2ahswBUoEG afeTDAGSTWMSi8YBCati8NKvccfdb/wRW92QlNjJqJiFxJp9tZ247ermn64ZcneUejB0 JFwaAxs1rWjOrgquexYgW3fYcr0Bjhl6yX+Q1fOZB1ndsPFS4JDd4phEMm1bKz1+k6iL KTrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=B2RnqxUzVjAaF9SlFdp/h+e1t2F2emkuMz4kNyNbvto=; b=HdsmnFuTcYxb4N2MfITITyOgtrPCHg2ktQK4/EORpN9aEsz6TONzAWXhz95HCYbCML ElRNuOIxvJIusxPUW4SNbC0GqI9sa6fokpkzVnbuRnodhEmDn4CKM7kQFhkg6l5Q1tgM EzpFyLHBiQ1VPr83VzbuJ8pDZHX8nQB+v12ipBF+YcSPGBRiXK/ZfscGXy3KWQ4NgEIM PoG8SwS9hn903LpUmYFwmPDtnxnnwtMdyTejylb/ahlJBQqbMq2nPuUqINPj1nvQucC7 LMH9ymSwcOrzjN3dxMqt8+Xzcm4dxk7B0Las72pw+UHqNIrUeG8c0FAW/TjNpB7l0ydJ E0mw== X-Gm-Message-State: AOAM530UDR0E/Pz7LEApMZDrtzMfCXYR1qfj8lFFZCseWwRP31TpYZew fBslSUdIRxKnAOG004NBoWk= X-Received: by 2002:ac8:702:: with SMTP id g2mr6738584qth.215.1616125695747; Thu, 18 Mar 2021 20:48:15 -0700 (PDT) Received: from tong-desktop.local ([2601:5c0:c200:27c6:ed59:df3e:7ad8:c600]) by smtp.googlemail.com with ESMTPSA id j1sm2974265qti.55.2021.03.18.20.48.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Mar 2021 20:48:15 -0700 (PDT) From: Tong Zhang To: Ian Abbott , H Hartley Sweeten , Greg Kroah-Hartman , "Alexander A. Klimov" , Tong Zhang , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] staging: comedi: das800: fix request_irq() warn Date: Thu, 18 Mar 2021 23:47:52 -0400 Message-Id: <20210319034753.435811-1-ztong0001@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <8c65b02e-4315-153f-de2c-153862f195be@mev.co.uk> References: <8c65b02e-4315-153f-de2c-153862f195be@mev.co.uk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org request_irq() won't accept a name which contains slash so we need to replace it with something else -- otherwise it will throw 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 Reviewed-by: Ian Abbott --- v2: fix commit log 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; -- 2.25.1