mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Prasanta Sadhukhan" <prasanta@tataelxsi.co.in>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: CONFIG_X86_L1_CACHE_SHIFT problem
Date: Thu, 10 Apr 2003 09:40:33 +0530	[thread overview]
Message-ID: <3E94EEB9.29002F86@tataelxsi.co.in> (raw)

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                               |
|      ;"""/ / |         |     |                                      |
|       ) /_/| |.-------.|     |                                      |
|      '  `-`' "         "     |                                      |
----------------------------------------------------------------------



                 reply	other threads:[~2003-04-10  4:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3E94EEB9.29002F86@tataelxsi.co.in \
    --to=prasanta@tataelxsi.co.in \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®