aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/kernel/topology.c
diff options
context:
space:
mode:
authorTony Luck <tony.luck@intel.com>2012-11-07 18:51:04 -0500
committerTony Luck <tony.luck@intel.com>2012-11-07 18:51:04 -0500
commit4fafc8c21487f6b5259d462e9bee98661a02390d (patch)
tree16acaa4108bec61ad5fef16e5b4916728ff6d1ae /arch/ia64/kernel/topology.c
parent3d70f8c617a436c7146ecb81df2265b4626dfe89 (diff)
[IA64] Resolve name space collision for cache_show()
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>
Diffstat (limited to 'arch/ia64/kernel/topology.c')
-rw-r--r--arch/ia64/kernel/topology.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/ia64/kernel/topology.c b/arch/ia64/kernel/topology.c
index c64460b9c704..dc00b2c1b42a 100644
--- a/arch/ia64/kernel/topology.c
+++ b/arch/ia64/kernel/topology.c
@@ -275,7 +275,7 @@ static struct attribute * cache_default_attrs[] = {
275#define to_object(k) container_of(k, struct cache_info, kobj) 275#define to_object(k) container_of(k, struct cache_info, kobj)
276#define to_attr(a) container_of(a, struct cache_attr, attr) 276#define to_attr(a) container_of(a, struct cache_attr, attr)
277 277
278static ssize_t cache_show(struct kobject * kobj, struct attribute * attr, char * buf) 278static ssize_t ia64_cache_show(struct kobject * kobj, struct attribute * attr, char * buf)
279{ 279{
280 struct cache_attr *fattr = to_attr(attr); 280 struct cache_attr *fattr = to_attr(attr);
281 struct cache_info *this_leaf = to_object(kobj); 281 struct cache_info *this_leaf = to_object(kobj);
@@ -286,7 +286,7 @@ static ssize_t cache_show(struct kobject * kobj, struct attribute * attr, char *
286} 286}
287 287
288static const struct sysfs_ops cache_sysfs_ops = { 288static const struct sysfs_ops cache_sysfs_ops = {
289 .show = cache_show 289 .show = ia64_cache_show
290}; 290};
291 291
292static struct kobj_type cache_ktype = { 292static struct kobj_type cache_ktype = {