From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753115AbbJMOaK (ORCPT ); Tue, 13 Oct 2015 10:30:10 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:8870 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752714AbbJMOaI (ORCPT ); Tue, 13 Oct 2015 10:30:08 -0400 Subject: Re: [RFC v2 PATCH 06/14] irq: add struct ipi_mapping and its helper functions To: Thomas Gleixner References: <1444731382-19313-1-git-send-email-qais.yousef@imgtec.com> <1444731382-19313-7-git-send-email-qais.yousef@imgtec.com> CC: , , , , , From: Qais Yousef Message-ID: <561D156D.1090403@imgtec.com> Date: Tue, 13 Oct 2015 15:30:05 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.154.94] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/13/2015 02:31 PM, Thomas Gleixner wrote: > On Tue, 13 Oct 2015, Qais Yousef wrote: > > + > +int irq_unmap_ipi(struct ipi_mapping *map, > + unsigned int cpu, irq_hw_number_t *hwirq) > +{ > + if (cpu >= map->nr_cpus) > + return -EINVAL; > + > + if (map->cpumap[cpu] == INVALID_HWIRQ) > + return -EINVAL; > + > + if (hwirq) > + *hwirq = map->cpumap[cpu]; > Why do we store hwirq in unmap? So that the irqchip driver can return the hwirq to its available IPI pool. > > All these new functions lack kerneldoc comments. Apologies about the missing docs here and in other places. Thanks, Qais