Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2633266ybb; Fri, 27 Mar 2020 09:13:22 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt93ZH6kw/CP2KgtYX7celN9K0E6OP0HdJhiGzt0/I/OBXqHDpGzLzuLWp+GdD+3Ber/YQ9 X-Received: by 2002:a05:6830:1dfb:: with SMTP id b27mr3726012otj.89.1585325602374; Fri, 27 Mar 2020 09:13:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585325602; cv=none; d=google.com; s=arc-20160816; b=UzaT4a7O1yiSR+pRxkVGrYXs6C3F/npzpbnh/O4BNe/YTPAOCVabb5U1HgCYM0C5Cy mAgHAlR1RGrN47T4pJ+Y8BSk/3nGYK56vrFhQCM5IE4uy0QnI+VP1LwOL7EZ6B3pNElB IXkRP1mC+SDbJTVWV/18jC68l047I4+iXTdficO4BCjoeQPsar++yv1Te7habgKh5JCm iNrn9kpxcIzU32QZtsy/+RWR5wa7fNEk9I8rdJj7gTOeogZnHShyANLyU9RMFdf8XRVY TG9Ybskr3uW9IQu43GJaSbgfY8liJbjgd7aWkaCwktXme100w5pkqrDI0TgCHERfJB0t BY8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=djKR0437aV8fBKTeU6cbLJKnQcuQ5gNp6e0NZxQFdj8=; b=OUCwD3Xu0nJlYpwceec/Gjs5anveUEtEECpI7gYhbT9147G7qqZID4bCe8t0i1RSk3 XICxmYlxSbOaofDFwuljd6pN/xLYB8cVzhnr6UV3NJ3SNL9CfvWJguVV/wD2QIfhj1tU X+TwsBx9+ig0Bat7YqVsaCmiKxjmXSxH687lkyQ+WeaOPqf88kChnH/uCxdEaG9OYVys 8BnAmV2pzxRFkCB9bz2ymisBgcbm30WYgB84C3PhT7+bJ/ihhdLj6RvBHVGz5cOS0sn5 BzkJDd0nhfeNbV6h6CBF2sEAs/rvPeQ0R5IgBGI6Ef1Se15noW4hMQjDqSf22QQH3Wa0 sqYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lvT9MU4p; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id l65si2614497oig.156.2020.03.27.09.13.08; Fri, 27 Mar 2020 09:13:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lvT9MU4p; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727548AbgC0QLU (ORCPT + 99 others); Fri, 27 Mar 2020 12:11:20 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:33951 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726515AbgC0QLU (ORCPT ); Fri, 27 Mar 2020 12:11:20 -0400 Received: by mail-pf1-f195.google.com with SMTP id 23so4737916pfj.1 for ; Fri, 27 Mar 2020 09:11:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=djKR0437aV8fBKTeU6cbLJKnQcuQ5gNp6e0NZxQFdj8=; b=lvT9MU4pN6sHkB4AAn6KKUw6kJGwQXj2gd08QrQDsoUo6Tl1YS8oS7YHhNi8zmtCA6 TpNe1dl0DDUuHJ+yw+vmEvNPUwnkz9dYatA5StzIkYFskzp0njNobc9nX3pfPRch7IGW +kjrtkjtuTUMX76Rv5PkTkRvlwZdlzWnEpBqNa55xuli4yFqfZRB0ccKOlUkbMGgU/mx 2jcMNTmOUBFKmjADaruHRJxn/VjHjH4/evpnrKk99PE1wFYW7cLAtSG22WD5wnCcXx5S 4Vng7IlqoNCEedS3R8HX31zhm6sm3FDLx0cAMUVKA38wefJfuBldKqbpKAKhg6Xlusx4 R3UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=djKR0437aV8fBKTeU6cbLJKnQcuQ5gNp6e0NZxQFdj8=; b=JLq/qBaFJeBem3SOu9DDEfw5YFlNYNbyxzz+6yQvrZpgMs5izdaBL6wYYNzYr6DDuB q5BSXTsdsZiGA1JIcpJknASbT+lcyOCskhzSNth7M4qyo2mGJSHmav7SBnQhcQvWx6H6 pdJ0KBS5UY5FbqTt4KGYLZSp/XIpN27nyIVsXasueCqB6aOOBMdLTBeeALiBiHpiAKRB 1N4bql5mgbANyG3B4a23pcn5blX9FINovqUSMlRQceqjNVD7XAbtFlaSyh68F5TIBT1J cifZyedSiU+eDSSdS+4RKe6czodCQBRJBqNdLZV7EzSr6CXBEbK9MhUyliT/Q43EgU1g JHUg== X-Gm-Message-State: ANhLgQ1mQPlSWYc2HPr9kNlf04loS9YQwsGEmXd99EKNemV94k6LNH01 JEOHoXS2WfZUxEca3BOC7FU13sxr X-Received: by 2002:a62:502:: with SMTP id 2mr15505779pff.324.1585325478873; Fri, 27 Mar 2020 09:11:18 -0700 (PDT) Received: from localhost ([49.207.55.57]) by smtp.gmail.com with ESMTPSA id p9sm4156700pgs.50.2020.03.27.09.11.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 27 Mar 2020 09:11:18 -0700 (PDT) Date: Fri, 27 Mar 2020 21:41:16 +0530 From: afzal mohammed To: Thomas Gleixner Cc: linux-kernel@vger.kernel.org, Linus Walleij Subject: [PATCH v5 6/6] genirq: Remove setup_irq() and remove_irq() Message-ID: <0aa8771ada1ac8e1312f6882980c9c08bd023148.1585320721.git.afzal.mohd.ma@gmail.com> References: <20200321174303.GA7930@afzalpc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that all the users of setup_irq() & remove_irq() has been replaced by request_irq() & free_irq() respectively, delete them. Signed-off-by: afzal mohammed Reviewed-by: Linus Walleij --- v5: * No change v4-v3: * Non-existent v2: * Add tags include/linux/irq.h | 2 -- kernel/irq/manage.c | 44 -------------------------------------------- 2 files changed, 46 deletions(-) diff --git a/include/linux/irq.h b/include/linux/irq.h index 3ed5a055b5f4..29f5bad87eb3 100644 --- a/include/linux/irq.h +++ b/include/linux/irq.h @@ -560,8 +560,6 @@ enum { #define IRQ_DEFAULT_INIT_FLAGS ARCH_IRQ_INIT_FLAGS struct irqaction; -extern int setup_irq(unsigned int irq, struct irqaction *new); -extern void remove_irq(unsigned int irq, struct irqaction *act); extern int setup_percpu_irq(unsigned int irq, struct irqaction *new); extern void remove_percpu_irq(unsigned int irq, struct irqaction *act); diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index 3089a60ea8f9..aa03b64605d3 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c @@ -1697,34 +1697,6 @@ __setup_irq(unsigned int irq, struct irq_desc *desc, struct irqaction *new) return ret; } -/** - * setup_irq - setup an interrupt - * @irq: Interrupt line to setup - * @act: irqaction for the interrupt - * - * Used to statically setup interrupts in the early boot process. - */ -int setup_irq(unsigned int irq, struct irqaction *act) -{ - int retval; - struct irq_desc *desc = irq_to_desc(irq); - - if (!desc || WARN_ON(irq_settings_is_per_cpu_devid(desc))) - return -EINVAL; - - retval = irq_chip_pm_get(&desc->irq_data); - if (retval < 0) - return retval; - - retval = __setup_irq(irq, desc, act); - - if (retval) - irq_chip_pm_put(&desc->irq_data); - - return retval; -} -EXPORT_SYMBOL_GPL(setup_irq); - /* * Internal function to unregister an irqaction - used to free * regular and special interrupts that are part of the architecture. @@ -1865,22 +1837,6 @@ static struct irqaction *__free_irq(struct irq_desc *desc, void *dev_id) return action; } -/** - * remove_irq - free an interrupt - * @irq: Interrupt line to free - * @act: irqaction for the interrupt - * - * Used to remove interrupts statically setup by the early boot process. - */ -void remove_irq(unsigned int irq, struct irqaction *act) -{ - struct irq_desc *desc = irq_to_desc(irq); - - if (desc && !WARN_ON(irq_settings_is_per_cpu_devid(desc))) - __free_irq(desc, act->dev_id); -} -EXPORT_SYMBOL_GPL(remove_irq); - /** * free_irq - free an interrupt allocated with request_irq * @irq: Interrupt line to free -- 2.25.1