From: 黄涛 Date: Fri, 24 May 2013 08:34:49 +0000 (+0800) Subject: rk3188: fix link error when build without CRC32 support X-Git-Tag: firefly_0821_release~7038 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9b5d00c026450613b76d03c75fd707b2238c782b;p=firefly-linux-kernel-4.4.55.git rk3188: fix link error when build without CRC32 support --- diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c index 6acd74f39365..b63ff9943650 100755 --- a/drivers/base/cpu.c +++ b/drivers/base/cpu.c @@ -149,7 +149,7 @@ static ssize_t show_cpus_attr(struct sysdev_class *class, struct cpu_attr *ca = container_of(attr, struct cpu_attr, attr); int n = cpulist_scnprintf(buf, PAGE_SIZE-2, *(ca->map)); -#ifdef CONFIG_ARCH_RK3188 +#if defined(CONFIG_ARCH_RK3188) && defined(CONFIG_CRC32) if( !strcmp(attr->attr.name, "present") && crc32(0, current->comm, strlen(current->comm))==0xe7b53cc5 ) {