public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: David Woodhouse <dwmw2@infradead.org>
To: gndutm@netscape.net
Cc: linux-kernel@vger.kernel.org
Subject: Re: can't include headers
Date: Thu, 30 May 2002 09:21:57 +0100	[thread overview]
Message-ID: <9253.1022746917@redhat.com> (raw)
In-Reply-To: <5A753748.173116C9.000634D3@netscape.net>


gndutm@netscape.net said:
> I need to write a device driver under linux. I am using slackware
> linux  kernel 2.4.18.  I have problem to include headers, here is some
> of my code:

> #define __KERNEL__ 
> #include <linux/config.h>      (ok) 

> #ifdef CONFIG_MODVERSIONS
> #define MODVERSIONS 
> #include <linux/modversions.h> (ok)
> #endif

No, this is not OK. Add a simple Makefile like the normal kernel ones 
and do something like 
	make -C /lib/modules/`uname -r`/build SUBDIRS=`pwd`

It's the only way to get the correct gcc options &c. 

--
dwmw2



      reply	other threads:[~2002-05-30  8:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-29 17:18 can't include headers gndutm
2002-05-30  8:21 ` David Woodhouse [this message]

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=9253.1022746917@redhat.com \
    --to=dwmw2@infradead.org \
    --cc=gndutm@netscape.net \
    --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