From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <54BF9C46.8060302@linux.intel.com> Date: Wed, 21 Jan 2015 20:32:06 +0800 From: Jiang Liu MIME-Version: 1.0 To: Thomas Gleixner CC: "Rafael J. Wysocki" , Bjorn Helgaas , Yinghai Lu , Borislav Petkov , Len Brown , Dan Williams , Vinod Koul , Vivek Goyal , Thierry Reding , Andrew Morton , Mike Travis , Tony Luck , x86@kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-acpi@vger.kernel.org, dmaengine@vger.kernel.org Subject: Re: [RFC Patch 17/19] resources: Move struct resource_list_entry from ACPI into resource core References: <1420684386-5975-1-git-send-email-jiang.liu@linux.intel.com> <1420684386-5975-18-git-send-email-jiang.liu@linux.intel.com> <3428063.tN1BxOoXSN@vostro.rjw.lan> <54BF4911.7030906@linux.intel.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252 Sender: linux-acpi-owner@vger.kernel.org List-ID: On 2015/1/21 17:43, Thomas Gleixner wrote: > On Wed, 21 Jan 2015, Jiang Liu wrote: >> On 2015/1/21 9:10, Rafael J. Wysocki wrote: >>>> + >>>> +void resource_list_insert(struct list_head *head, >>>> + struct resource_list_entry *entry, bool tail) >>> >>> I would call this resource_list_add() if anything. >>> >>> Also it may be better to have two helpers, one for "add" and one for "add_tail" >>> (and perhaps define them as static inline?). >> We can't use inline functions here because that needs pulling list.h >> into ioport.h, then causing building issues to header inclusion order. > > Create a new header file to avoid the circular dependencies then. Great, create include/linux/resource_list.h for it so we could inline those simple functions. Regards, Gerry > > Thanks, > > tglx > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ >