All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Jon Smirl <jonsmirl@gmail.com>
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: Re: getting rid of inter_module_xx
Date: Sat, 23 Oct 2004 10:44:13 +0100	[thread overview]
Message-ID: <20041023094413.GA30137@infradead.org> (raw)
In-Reply-To: <9e473391041022100835da7baf@mail.gmail.com>

On Fri, Oct 22, 2004 at 01:08:08PM -0400, Jon Smirl wrote:
> I'm looking at getting rid of DRM's use of inter_module_xx. DRM makes
> use of this to locate and use the AGP module. AGP is an optional
> module since some system only have PCI graphics.
> 
> Right now DRM uses inter_module_get("AGP") to locate the module if it
> exists. It then changes behavior if this call secedes or fails.
> 
> If I remove inter_module_get("AGP") and use the symbols directly, such
> as agp_backend_acquire(), how do I resolve the symbol link when AGP is
> not loaded? If the symbols link as NULL DRM will see that and act
> correctly.

not at all.  Everything else in the kernel is compile-time depencies.
Just make the agp backend module mandatory if CONFIG_AGP is set, you'll
lose tons of complexity at a minimum amount of used memory, and as an
added benefit look like the rest of the kernel.


  reply	other threads:[~2004-10-23  9:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-22 17:08 getting rid of inter_module_xx Jon Smirl
2004-10-23  9:44 ` Christoph Hellwig [this message]
2004-10-24 16:27   ` Alan Cox
2004-11-28 22:06     ` Rusty Russell

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=20041023094413.GA30137@infradead.org \
    --to=hch@infradead.org \
    --cc=jonsmirl@gmail.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.