Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4515620pxf; Tue, 16 Mar 2021 16:00:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqSywSU0MHS+ZUTjOJxN5LGhW6797ga+O5zsb7v0uFLdfecfoG1H28ovrpXhYKQ3BgXpbP X-Received: by 2002:a17:907:9709:: with SMTP id jg9mr31391056ejc.276.1615935657728; Tue, 16 Mar 2021 16:00:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615935657; cv=none; d=google.com; s=arc-20160816; b=HrLEAIElgCT7PLTaqNk2BVgofOuqKbcQuazHYuXG0F/xCOzS+plG1y5fJ2HZDZFEcL YR38B2uU9J2RNt7dI92DFgNoflb+l8RnLhAsXUnEjXgxX9DGhaEUF0Cok735HN4rCPuP zBQxRKQOBeqxARPfBjwgBqBE8/IKEWxD57UILQnR15lr3KR8GUjtB5KbH+6e+/ag3F2e 0CWFSxmipbL5Pp4z11GKkXfsuQGSwjEazJ/mV1h8kKsJvIOSJ0YAeBVFx2tkCfHbmg66 mZVUT5uceETrz0phip6D0MTvrbB4FbSMj3zhdIZBKCMklrJYAXI8rRdYjCUjk5MeqTZk uFhw== 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=lqIWtl2xp+e+AddUQXVvackBapj1JOoVjO6xEMxFDvE=; b=WwIScNEvHhxXETBPMJp7HGZsq9PrStm+tbjZuvRzhxXDZuZuQkLo/KlrO3yMaGh4CZ YOFIqnfhBgm8dQthBh8xsqmRZVRuc8oTKvP6X3ImETXWjE3Gl5DcHFCM/0NBRRRUaSJL 7E0pQOThgzJAOBCUgMPgPDP3wN9Sh9DccGDJBJ341IeJvxGuPrpG6D1IupKS70qsUSLX FH+CkiElEsZFX/WZkN6FnMvLjPFka/IqylSSi2mvWBmeThRR4Qa9yFv6UwI2PmZjEnjJ 9SFmz/j6BHSjEBKXh6aK6pTQ3qwZTa/tyTh0fJcJ0Q78QwfS61FkF6bhU/7KEovwoPmx oeEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OLuyXVyY; 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 sa4si14336669ejb.662.2021.03.16.16.00.34; Tue, 16 Mar 2021 16:00:57 -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=OLuyXVyY; 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 S231565AbhCPWnL (ORCPT + 99 others); Tue, 16 Mar 2021 18:43:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231546AbhCPWmt (ORCPT ); Tue, 16 Mar 2021 18:42:49 -0400 Received: from mail-qk1-x735.google.com (mail-qk1-x735.google.com [IPv6:2607:f8b0:4864:20::735]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17351C06174A for ; Tue, 16 Mar 2021 15:42:49 -0700 (PDT) Received: by mail-qk1-x735.google.com with SMTP id 130so37011882qkh.11 for ; Tue, 16 Mar 2021 15:42:49 -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=lqIWtl2xp+e+AddUQXVvackBapj1JOoVjO6xEMxFDvE=; b=OLuyXVyY/gjw2H8U3mPr8kQd+klVqZJYIsH3OnyaRc5Mvbmalpu89rXgMrJEDJejUR zJdX2pcJQFrXZpQYkG9FoVAEOrCtzgyrOjphkKMsx/SK8WxSxkZuNejAME1+QNqQMkxc vRHqT/kd3MuP/QGcaVVRnO4y8ADBcm5KIOBwYWeZ44T5gQXLekY+Yj7QT5Q6LnEDnQuw oMEoHFAGFDZY/OqYcmCMpZvrwLR7PvCOTCWzeYXLiZQmk3YgWsS3N/DBZiN8xswiGJDI I2rX1MzMaPX5wGQrgABqdo5TTRWRSwA8mv+k4TTVMLNLnDsp4M3DmSepEtNFwja5qPhi dKyw== 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=lqIWtl2xp+e+AddUQXVvackBapj1JOoVjO6xEMxFDvE=; b=NmUM8CHB/Krl8Y6m9fLeRR8G22hVFcbns1gUr06cMF4XiIackC/2B2SVl/lA1XkdgM lpAY3fUxUHUBSpjvFhxoDRYZ2LvW9FVAQcoYUEr08ige1eUdy22DfH+/JO0VqcareLRM xvY/DWApI3t6+W7LmQINrLtKbIYc3y+FUFSQVWgzms+HQjToP5BgIa5ffsrvBRfv6nLm FNFdKtLHWpgV5gpgS8WWiISkCVywUc67AFsD6ueWa6QTLz0D+mUo/w/K/G48M2wuV9Ra czcNSiH0f5Jjc0E1AruHp7i2gZASMnaDQQhj6o2YR+tjDPLRBo4coQ7hS93rQW+RC/a9 FByw== X-Gm-Message-State: AOAM533O/dzIx/BVmeroCBO1E4K9bjiZKhwcetJYQ4/MJOag1oX7JG5Y HYZEQSNaxFl1FOnFFByC9e4= X-Received: by 2002:a05:620a:1323:: with SMTP id p3mr1433214qkj.175.1615934568309; Tue, 16 Mar 2021 15:42:48 -0700 (PDT) Received: from tong-desktop.local ([2601:5c0:c200:27c6:ec35:b39e:95f4:3370]) by smtp.googlemail.com with ESMTPSA id e15sm14444880qti.79.2021.03.16.15.42.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Mar 2021 15:42:48 -0700 (PDT) From: Tong Zhang To: Ian Abbott , H Hartley Sweeten , Greg Kroah-Hartman , Tong Zhang , "Alexander A. Klimov" , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: comedi: das800: fix request_irq() warn Date: Tue, 16 Mar 2021 18:42:26 -0400 Message-Id: <20210316224227.348310-1-ztong0001@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <92b7c57b-b645-9965-8157-4ca76a803cba@mev.co.uk> References: <92b7c57b-b645-9965-8157-4ca76a803cba@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() 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; -- 2.25.1