lkml.org 
[lkml]   [2012]   [Feb]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [Patch] resource: move EXPORT_SYMBOL right after definition
    On 12-02-03 08:42 AM, Cong Wang wrote:
    > EXPORT_SYMBOL(adjust_resource) should be right after adjust_resource().

    Presumably this is to get rid of a checkpatch warning?
    Maybe it makes sense to have it go via the trivial tree?

    TRIVIAL PATCHES
    M: Jiri Kosina <trivial@kernel.org>
    T: git git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial.git

    Paul.

    >
    > Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>
    >
    > ---
    > diff --git a/kernel/resource.c b/kernel/resource.c
    > index 7640b3a..7e8ea66 100644
    > --- a/kernel/resource.c
    > +++ b/kernel/resource.c
    > @@ -749,6 +749,7 @@ int adjust_resource(struct resource *res, resource_size_t start, resource_size_t
    > write_unlock(&resource_lock);
    > return result;
    > }
    > +EXPORT_SYMBOL(adjust_resource);
    >
    > static void __init __reserve_region_with_split(struct resource *root,
    > resource_size_t start, resource_size_t end,
    > @@ -792,8 +793,6 @@ void __init reserve_region_with_split(struct resource *root,
    > write_unlock(&resource_lock);
    > }
    >
    > -EXPORT_SYMBOL(adjust_resource);
    > -
    > /**
    > * resource_alignment - calculate resource's alignment
    > * @res: resource pointer


    \
     
     \ /
      Last update: 2012-02-03 17:21    [W:0.022 / U:92.132 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site