From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967256AbdEWJhk (ORCPT ); Tue, 23 May 2017 05:37:40 -0400 Received: from verein.lst.de ([213.95.11.211]:52988 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965452AbdEWJhh (ORCPT ); Tue, 23 May 2017 05:37:37 -0400 Date: Tue, 23 May 2017 11:37:35 +0200 From: Christoph Hellwig To: Thomas Gleixner Cc: Christoph Hellwig , Jens Axboe , Keith Busch , linux-nvme@lists.infradead.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/7] genirq/affinity: factor out a irq_affinity_set helper Message-ID: <20170523093735.GC23632@lst.de> References: <20170519085756.29742-1-hch@lst.de> <20170519085756.29742-4-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 21, 2017 at 09:03:06PM +0200, Thomas Gleixner wrote: > > +{ > > + struct irq_data *data = irq_desc_get_irq_data(desc); > > + struct irq_chip *chip = irq_data_get_irq_chip(data); > > + bool ret = false; > > + > > + if (!irqd_can_move_in_process_context(data) && chip->irq_mask) > > Using that inline directly will make this function useless on architectures > which have GENERIC_PENDING_IRQS not set. > > kernel/irq/manage.c has that wrapped. We need to move those wrappers to the > internal header file, so that it gets compiled out on other platforms. Ok, will do.