projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
782c10d
)
rk3188: fix link error when build without CRC32 support
author
黄涛
<huangtao@rock-chips.com>
Fri, 24 May 2013 08:34:49 +0000
(16:34 +0800)
committer
黄涛
<huangtao@rock-chips.com>
Fri, 24 May 2013 08:34:49 +0000
(16:34 +0800)
drivers/base/cpu.c
patch
|
blob
|
history
diff --git
a/drivers/base/cpu.c
b/drivers/base/cpu.c
index 6acd74f39365d38e76789881ad4de10940a57e6f..b63ff9943650cac27c97f68f6c933f3745f2473c 100755
(executable)
--- 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));
-#if
def 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 )
{