lkml.org 
[lkml]   [2007]   [Nov]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [rfc 45/45] Modules: Hack to handle symbols that have a zero value
On Mon, 19 Nov 2007, Mathieu Desnoyers wrote:

> * clameter@sgi.com (clameter@sgi.com) wrote:
> > The module subsystem cannot handle symbols that are zero. It prints out
> > a message that these symbols are unresolved. Define a constant
> >
> > UNRESOLVED
> >
> > that is used to hold the value used for unresolved symbols. Set it to 1
> > (its hopefully unlikely that a symbol will have the value 1). This is necessary
> > so that the pda variable which is placed at offset 0 of the per cpu
> > segment is handled correctly.
> >
>
> Wouldn't it be better to simply return a standard ERR_PTR(-ENO....) ?

Good idea. But can you guarantee that this wont clash with an address?

-
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: 2007-11-20 03:53    [W:0.083 / U:1.684 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site