From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ua0-x241.google.com (mail-ua0-x241.google.com [IPv6:2607:f8b0:400c:c08::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 54F502097E25F for ; Wed, 18 Jul 2018 09:37:26 -0700 (PDT) Received: by mail-ua0-x241.google.com with SMTP id q12-v6so3327527ual.2 for ; Wed, 18 Jul 2018 09:37:26 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <20180718024944.577-1-bhe@redhat.com> <20180718024944.577-2-bhe@redhat.com> From: Andy Shevchenko Date: Wed, 18 Jul 2018 19:37:24 +0300 Message-ID: Subject: Re: [PATCH v7 1/4] resource: Move reparent_resources() to kernel/resource.c and make it public List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" To: Baoquan He Cc: Nicolas Pitre , brijesh.singh@amd.com, devicetree , David Airlie , linux-pci@vger.kernel.org, richard.weiyang@gmail.com, Max Filippov , Paul Mackerras , baiyaowei@cmss.chinamobile.com, KY Srinivasan , Frank Rowand , Lorenzo Pieralisi , Stephen Hemminger , linux-nvdimm@lists.01.org, Michael Ellerman , Patrik Jakobsson , linux-input , Gustavo Padovan , Borislav Petkov , Dave Young , Tom Lendacky , Haiyang Zhang , Maarten Lankhorst , Josh Triplett , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , Rob Herring , Sean Paul , Bjorn Helgaas , Thomas Gleixner , Yinghai Lu , Jon Derrick , Chris Zankel , Michal Simek , linux-parisc@vger.kernel.org, Greg Kroah-Hartman , Dmitry Torokhov , Linux Kernel Mailing List , Benjamin Herrenschmidt , Eric Biederman , devel@linuxdriverproject.org, Andrew Morton , kbuild test robot , "open list:LINUX FOR POWERPC PA SEMI PWRFICIENT" , "David S. Miller" List-ID: On Wed, Jul 18, 2018 at 7:36 PM, Andy Shevchenko wrote: > On Wed, Jul 18, 2018 at 5:49 AM, Baoquan He wrote: >> reparent_resources() is duplicated in arch/microblaze/pci/pci-common.c >> and arch/powerpc/kernel/pci-common.c, so move it to kernel/resource.c >> so that it's shared. >> + * Returns 0 on success, -ENOTSUPP if child resource is not completely >> + * contained by 'res', -ECANCELED if no any conflicting entry found. You also can refer to constants by prefixing them with %, e.g. %-ENOTSUPP. But this is up to you completely. -- With Best Regards, Andy Shevchenko _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm