[IA64] Resolve name space collision for cache_show()
authorTony Luck <tony.luck@intel.com>
Wed, 7 Nov 2012 23:51:04 +0000 (15:51 -0800)
committerTony Luck <tony.luck@intel.com>
Wed, 7 Nov 2012 23:51:04 +0000 (15:51 -0800)
We have a local static function named rather generically
"cache_show()". Changes in progress in the slab code want
to use this same name globally - so they are adding their
declaration to <linux/slab.h> which then causes the compiler
to choke with:

arch/ia64/kernel/topology.c:278: error: conflicting types for 'cache_show'

Fix by adding an "ia64_" prefix to our local function.

Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/topology.c

index c64460b9c704d56e7cb5efd9fb750e251a9f707f..dc00b2c1b42ab39d6bae4abbc1ed27396dd3d73d 100644 (file)
@@ -275,7 +275,7 @@ static struct attribute * cache_default_attrs[] = {
 #define to_object(k) container_of(k, struct cache_info, kobj)
 #define to_attr(a) container_of(a, struct cache_attr, attr)
 
-static ssize_t cache_show(struct kobject * kobj, struct attribute * attr, char * buf)
+static ssize_t ia64_cache_show(struct kobject * kobj, struct attribute * attr, char * buf)
 {
        struct cache_attr *fattr = to_attr(attr);
        struct cache_info *this_leaf = to_object(kobj);
@@ -286,7 +286,7 @@ static ssize_t cache_show(struct kobject * kobj, struct attribute * attr, char *
 }
 
 static const struct sysfs_ops cache_sysfs_ops = {
-       .show   = cache_show
+       .show   = ia64_cache_show
 };
 
 static struct kobj_type cache_ktype = {