lkml.org 
[lkml]   [2003]   [Apr]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectCONFIG_X86_L1_CACHE_SHIFT problem
Hi,
In linux RH 7.3 and 8.0.
When we are trying to compile our driver, it is giving the following
error
In file included from /usr/src/linux-2.4/include/linux/prefetch.h:13,
from /usr/src/linux-2.4/include/linux/list.h:6,
from
/usr/src/linux-2.4/include/linux/module.h:12,
from k_compat.h:103,
from madgecb.c:31:
/usr/src/linux-2.4/include/asm/processor.h:56 :
`CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/src/linux-2.4/include/asm/processor.h:56 : requested alignmnet is
not a constant
make : ***[madgecb.o] Error 1

We have used our own k_compat.h because with 7.1 pcmcia package,
k_compat.h was not provided.
We tried compiling with pcmcia/k_compat.h also. It is giving the same
problem.

But if we copied /usr/include/asm/processor.h to
/usr/src/linux-2.4/include/asm/processor.h
then the problem is going..

The difference between the header inclusion in
/usr/src/linux-2.4/include/asm/processor.h and
/usr/include/asm/processor.h is in
/usr/src/linux-2.4/include/asm/processor.h there is an extra
<linux.cache.h>
cache.h is including <linux/config.h> and <asm/cache.h>
<linux/config.h> is including <linux/autoconf.h> where
CONFIG_X86_L1_CACHE_SHIFT is defined.then why this problem is coming.

What can be wrong?

--
-----------------------------------------------------------------------
| __ __ | Tata Elxsi Ltd |
| / ,, /| |'-. | http://www.tataelxsi.com |
| .\__/ || | | |===================================== |
| _ / `._ \|_|_.-' | Prasanta Sadhukhan |
| | / \__.`=._) (_ | mailto:prasanta_sadhukhan@yahoo.com |
| |/ ._/ |"""""""""| | Bangalore |
| |'. `\ | | | India |
| ;"""/ / | | | |
| ) /_/| |.-------.| | |
| ' `-`' " " | |
----------------------------------------------------------------------


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:34    [W:0.032 / U:2.856 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site