Skip to contentSkip to conversation

PROBLEM: kernel bug at net/core/net-sysfs.c:434 - kernel 2.6.16rc1

DISCUSSION Nikolay N. Ivanov 2 participants 2 messages Jan 28, 2006 – Feb 2, 2006

lore
Share & tools
lore
#0 lore raw

Hello!

---
CC net/core/net-sysfs.o
net/core/net-sysfs.c: In function `netdev_register_sysfs':
net/core/net-sysfs.c:434: error: `i' undeclared (first use in this function) net/core/net-sysfs.c:434: error: (Each undeclared identifier is reported only once net/core/net-sysfs.c:434: error: for each function it appears in.) net/core/net-sysfs.c:434: error: `attr' undeclared (first use in this function) make[2]: *** [net/core/net-sysfs.o] Error 1
make[1]: *** [net/core] Error 2
make: *** [net] Error 2
[nn@ linux-2.6.16-rc1]$ gcc --version
gcc (GCC) 3.3.4
---

After adding:

int i;

new errors appeared:

---
CC net/core/net-sysfs.o
net/core/net-sysfs.c: In function `netdev_register_sysfs':
net/core/net-sysfs.c:434: error: `attr' undeclared (first use in this function) net/core/net-sysfs.c:434: error: (Each undeclared identifier is reported only once net/core/net-sysfs.c:434: error: for each function it appears in.) make[2]: *** [net/core/net-sysfs.o] Error 1
make[1]: *** [net/core] Error 2
make: *** [net] Error 2
---

Signature · 2 lines
Nikolay N. Ivanov
mailto: [email protected]
#1 lore raw
Quoted 1 line · Nikolay N. Ivanov

Hello!

Hi Nikolay!

Quoted 12 lines

CC net/core/net-sysfs.o
net/core/net-sysfs.c: In function `netdev_register_sysfs':
net/core/net-sysfs.c:434: error: `i' undeclared (first use in this function)
...
[nn@ linux-2.6.16-rc1]$ gcc --version
gcc (GCC) 3.3.4
---

After adding:

int i;

Quoted 8 lines

new errors appeared:

---
CC net/core/net-sysfs.o
net/core/net-sysfs.c: In function `netdev_register_sysfs':
net/core/net-sysfs.c:434: error: `attr' undeclared (first use in this function)
...

Your errors don't fit in any way with what I see in line 434 of this file.

The following should work:
- unpack an unmodified 2.6.15 kernel source from ftp.kernel.org
- apply the 2.6.16-rc1 patch from ftp.kernel.org

Quoted 1 line

Nikolay N. Ivanov

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed