Skip to contentSkip to conversation

Kconfig variable "COBALT" is not defined anywhere

DISCUSSION Robert P. J. Day 5 participants 9 messages Jun 3, 2007 – Jun 4, 2007

lore
Share & tools
lore
#0 lore raw

(no one's listed as the official cobalt maintainer so i thought i'd
just throw this out there.)

there is no Kconfig file which defines the selectable option
"COBALT", which means that this snippet from drivers/char/nvram.c:

# if defined(CONFIG_COBALT)
# include <linux/cobalt-nvram.h>
# define MACH COBALT
# else
# define MACH PC
# endif

never evaluates to true, therefore making <linux/cobalt-nvram.h> fairly useless, at least under the circumstances.

rday

Signature · 7 lines
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================
#1 lore raw
Quoted 14 lines · On Sun, 3 Jun 2007 13:17:48 -0400 (EDT) Robert P. J. Day wrote:

(no one's listed as the official cobalt maintainer so i thought i'd
just throw this out there.)

there is no Kconfig file which defines the selectable option
"COBALT", which means that this snippet from drivers/char/nvram.c:

# if defined(CONFIG_COBALT)
# include <linux/cobalt-nvram.h>
# define MACH COBALT
# else
# define MACH PC
# endif

Quoted 2 lines

never evaluates to true, therefore making <linux/cobalt-nvram.h> fairly useless, at least under the circumstances.

Maybe it should be MIPS_COBALT ?

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

#2 lore raw
Quoted 16 lines · Randy Dunlap
Quoted 14 lines · On Sun, 3 Jun 2007 13:17:48 -0400 (EDT) Robert P. J. Day wrote:

(no one's listed as the official cobalt maintainer so i thought i'd
just throw this out there.)

there is no Kconfig file which defines the selectable option
"COBALT", which means that this snippet from drivers/char/nvram.c:

# if defined(CONFIG_COBALT)
# include <linux/cobalt-nvram.h>
# define MACH COBALT
# else
# define MACH PC
# endif

Quoted 4 lines
Quoted 2 lines

never evaluates to true, therefore making <linux/cobalt-nvram.h> fairly useless, at least under the circumstances.

Maybe it should be MIPS_COBALT ?

that's the first thing that occurred to me, but that header file is copyright sun microsystems and says nothing about MIPS, so that didn't really settle the issue. that's why i'd rather someone else resolve this one way or the other.

rday

Signature · 7 lines
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================
#3 lore raw
Quoted 12 lines
Quoted 11 lines
Quoted 11 lines

there is no Kconfig file which defines the selectable option
"COBALT", which means that this snippet from drivers/char/nvram.c:

# if defined(CONFIG_COBALT)
# include <linux/cobalt-nvram.h>
# define MACH COBALT
# else
# define MACH PC
# endif
never evaluates to true, therefore making <linux/cobalt-nvram.h> fairly useless, at least under the circumstances.

Quoted 6 lines
Quoted 1 line

Maybe it should be MIPS_COBALT ?

that's the first thing that occurred to me, but that header file is copyright sun microsystems and says nothing about MIPS, so that didn't really settle the issue. that's why i'd rather someone else resolve this one way or the other.

Actually, looking through the old kernel history, it looks like this was added by Tim Hockin's (CCed) patch "Add Cobalt Networks support to nvram driver". Which added this to drivers/cobalt:

+bool 'Support for Cobalt Networks x86 servers' CONFIG_COBALT

I guess Tim can clear up what's intended...

#4 lore raw

There were other patches which added more COBALT support, but they were dropped or lost or whatever.

I would not balk at having that code yanked. I never got around to doing proper Cobalt support for modern kernels. :(

Quoted 27 lines · Roland Dreier
Quoted 12 lines
Quoted 11 lines
Quoted 11 lines

there is no Kconfig file which defines the selectable option
"COBALT", which means that this snippet from drivers/char/nvram.c:

# if defined(CONFIG_COBALT)
# include <linux/cobalt-nvram.h>
# define MACH COBALT
# else
# define MACH PC
# endif
never evaluates to true, therefore making <linux/cobalt-nvram.h> fairly useless, at least under the circumstances.

Quoted 6 lines
Quoted 1 line

Maybe it should be MIPS_COBALT ?

that's the first thing that occurred to me, but that header file is copyright sun microsystems and says nothing about MIPS, so that didn't really settle the issue. that's why i'd rather someone else resolve this one way or the other.

Actually, looking through the old kernel history, it looks like this was added by Tim Hockin's (CCed) patch "Add Cobalt Networks support to nvram driver". Which added this to drivers/cobalt:

+bool 'Support for Cobalt Networks x86 servers' CONFIG_COBALT

I guess Tim can clear up what's intended...

#5 lore raw
Quoted 33 lines · Tim Hockin

There were other patches which added more COBALT support, but they were dropped or lost or whatever.

I would not balk at having that code yanked. I never got around to doing proper Cobalt support for modern kernels. :(

Quoted 26 lines · Roland Dreier
Quoted 12 lines
Quoted 11 lines
Quoted 11 lines

there is no Kconfig file which defines the selectable option
"COBALT", which means that this snippet from drivers/char/nvram.c:

# if defined(CONFIG_COBALT)
# include <linux/cobalt-nvram.h>
# define MACH COBALT
# else
# define MACH PC
# endif
never evaluates to true, therefore making <linux/cobalt-nvram.h> fairly useless, at least under the circumstances.

Quoted 6 lines
Quoted 1 line

Maybe it should be MIPS_COBALT ?

that's the first thing that occurred to me, but that header file is copyright sun microsystems and says nothing about MIPS, so that didn't really settle the issue. that's why i'd rather someone else resolve this one way or the other.

Actually, looking through the old kernel history, it looks like this was added by Tim Hockin's (CCed) patch "Add Cobalt Networks support to nvram driver". Which added this to drivers/cobalt:

+bool 'Support for Cobalt Networks x86 servers' CONFIG_COBALT

I guess Tim can clear up what's intended...

ok, that sounds like it might be a bigger issue than just a dead CONFIG variable. if that's all it is, i can submit a patch. if it's more than that, i'll leave it to someone higher up the food chain to figure out what cobalt-related stuff should be yanked.

rday

Signature · 7 lines
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================
#6 lore raw

I think the nvram is the only place left that uses CONFIG_COBALT

Quoted 51 lines · Robert P. J. Day
Quoted 33 lines · Tim Hockin

There were other patches which added more COBALT support, but they were dropped or lost or whatever.

I would not balk at having that code yanked. I never got around to doing proper Cobalt support for modern kernels. :(

Quoted 26 lines · Roland Dreier
Quoted 12 lines
Quoted 11 lines
Quoted 11 lines

there is no Kconfig file which defines the selectable option
"COBALT", which means that this snippet from drivers/char/nvram.c:

# if defined(CONFIG_COBALT)
# include <linux/cobalt-nvram.h>
# define MACH COBALT
# else
# define MACH PC
# endif
never evaluates to true, therefore making <linux/cobalt-nvram.h> fairly useless, at least under the circumstances.

Quoted 6 lines
Quoted 1 line

Maybe it should be MIPS_COBALT ?

that's the first thing that occurred to me, but that header file is copyright sun microsystems and says nothing about MIPS, so that didn't really settle the issue. that's why i'd rather someone else resolve this one way or the other.

Actually, looking through the old kernel history, it looks like this was added by Tim Hockin's (CCed) patch "Add Cobalt Networks support to nvram driver". Which added this to drivers/cobalt:

+bool 'Support for Cobalt Networks x86 servers' CONFIG_COBALT

I guess Tim can clear up what's intended...

ok, that sounds like it might be a bigger issue than just a dead CONFIG variable. if that's all it is, i can submit a patch. if it's more than that, i'll leave it to someone higher up the food chain to figure out what cobalt-related stuff should be yanked.

rday
--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================

#7 lore raw
Quoted 1 line · Tim Hockin

I think the nvram is the only place left that uses CONFIG_COBALT

sure, but once you remove this snippet near the top of drivers/char/nvram.c:

...
# if defined(CONFIG_COBALT)
# include <linux/cobalt-nvram.h>
# define MACH COBALT
# else
# define MACH PC
# endif
...

then everything else COBALT-related in that file should be tossed as well, which would include stuff conditional on:

  #if MACH == COBALT

and so on. just making sure that what you're saying is that *all* COBALT-related content in that file can be thrown out. i'll submit a patch shortly and you can pass judgment.

rday

Signature · 7 lines
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================
#8 lore raw

That sounds correct.

Quoted 41 lines · Robert P. J. Day
Quoted 1 line · Tim Hockin

I think the nvram is the only place left that uses CONFIG_COBALT

sure, but once you remove this snippet near the top of drivers/char/nvram.c:

...
# if defined(CONFIG_COBALT)
# include <linux/cobalt-nvram.h>
# define MACH COBALT
# else
# define MACH PC
# endif
...

then everything else COBALT-related in that file should be tossed as well, which would include stuff conditional on:

  #if MACH == COBALT

and so on. just making sure that what you're saying is that *all* COBALT-related content in that file can be thrown out. i'll submit a patch shortly and you can pass judgment.

rday
--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/