Staging: lustre: obdclass: obdo: Declare iattr_from_obdo as static
authorShraddha Barke <shraddha.6596@gmail.com>
Wed, 7 Oct 2015 20:06:08 +0000 (01:36 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Oct 2015 09:21:08 +0000 (10:21 +0100)
Declare iattr_from_obdo as static since it is used only in this
particular file.Also remove the corresponding declaration from
header file.

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/include/obd_class.h
drivers/staging/lustre/lustre/obdclass/obdo.c

index 648132a75cea35352d7a05972310892574d9811e..82f1a267092837dd34bb31a176b078c14031acf5 100644 (file)
@@ -271,7 +271,6 @@ struct obdo;
 void obdo_refresh_inode(struct inode *dst, struct obdo *src, u32 valid);
 
 void obdo_to_ioobj(struct obdo *oa, struct obd_ioobj *ioobj);
-void iattr_from_obdo(struct iattr *attr, struct obdo *oa, u32 valid);
 void md_from_obdo(struct md_op_data *op_data, struct obdo *oa, u32 valid);
 
 #define OBT(dev)       (dev)->obd_type
index 1a950fb8e76911e273284a8435a50f0aa4667d45..75e1deadddd97bf61984d121f08a8d96d1bf408e 100644 (file)
@@ -127,7 +127,7 @@ void obdo_to_ioobj(struct obdo *oa, struct obd_ioobj *ioobj)
 }
 EXPORT_SYMBOL(obdo_to_ioobj);
 
-void iattr_from_obdo(struct iattr *attr, struct obdo *oa, u32 valid)
+static void iattr_from_obdo(struct iattr *attr, struct obdo *oa, u32 valid)
 {
        valid &= oa->o_valid;
 
@@ -174,7 +174,6 @@ void iattr_from_obdo(struct iattr *attr, struct obdo *oa, u32 valid)
                attr->ia_valid |= ATTR_GID;
        }
 }
-EXPORT_SYMBOL(iattr_from_obdo);
 
 void md_from_obdo(struct md_op_data *op_data, struct obdo *oa, u32 valid)
 {
This page took 0.02658 seconds and 5 git commands to generate.