Bug 37992 - It's not possible to compile kernel if CONFIG_NETCONSOLE_DYNAMIC is turned on
Summary: It's not possible to compile kernel if CONFIG_NETCONSOLE_DYNAMIC is turned on
Status: CLOSED CODE_FIX
Alias: None
Product: Drivers
Classification: Unclassified
Component: Network (show other bugs)
Hardware: All Linux
: P1 high
Assignee: drivers_network@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-20 19:09 UTC by David Hill
Modified: 2012-06-13 15:09 UTC (History)
4 users (show)

See Also:
Kernel Version: 3.0-rc3+
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description David Hill 2011-06-20 19:09:47 UTC
Hello guys,

    It's not possible to compile kernel if CONFIG_NETCONSOLE_DYNAMIC is turned on ...

drivers/built-in.o: In function `netconsole_target_put':
/usr/src/linux-3.0/drivers/net/netconsole.c:133: undefined reference to `config_item_put'
drivers/built-in.o: In function `netconsole_target_get':
/usr/src/linux-3.0/drivers/net/netconsole.c:127: undefined reference to `config_item_get'
drivers/built-in.o: In function `netconsole_target_put':
/usr/src/linux-3.0/drivers/net/netconsole.c:133: undefined reference to `config_item_put'
drivers/built-in.o: In function `netconsole_target_get':
/usr/src/linux-3.0/drivers/net/netconsole.c:127: undefined reference to `config_item_get'
drivers/built-in.o: In function `netconsole_target_put':
/usr/src/linux-3.0/drivers/net/netconsole.c:133: undefined reference to `config_item_put'
drivers/built-in.o: In function `drop_netconsole_target':
/usr/src/linux-3.0/drivers/net/netconsole.c:588: undefined reference to `config_item_put'
drivers/built-in.o: In function `make_netconsole_target':
/usr/src/linux-3.0/drivers/net/netconsole.c:561: undefined reference to `config_item_init_type_name'
drivers/built-in.o: In function `dynamic_netconsole_init':
/usr/src/linux-3.0/drivers/net/netconsole.c:109: undefined reference to `config_group_init'
/usr/src/linux-3.0/drivers/net/netconsole.c:111: undefined reference to `configfs_register_subsystem'
drivers/built-in.o: In function `dynamic_netconsole_exit':
/usr/src/linux-3.0/drivers/net/netconsole.c:116: undefined reference to `configfs_unregister_subsystem'
make: *** [.tmp_vmlinux1] Error 1


Thank you very much,

David C. Hill
Comment 1 Andrew Morton 2011-06-20 20:28:43 UTC
(switched to email.  Please respond via emailed reply-to-all, not via the
bugzilla web interface).

On Mon, 20 Jun 2011 19:09:49 GMT
bugzilla-daemon@bugzilla.kernel.org wrote:

> https://bugzilla.kernel.org/show_bug.cgi?id=37992
> 
>            Summary: It's not possible to compile kernel if
>                     CONFIG_NETCONSOLE_DYNAMIC is turned on
>            Product: Drivers
>            Version: 2.5
>     Kernel Version: 3.0-rc3+
>           Platform: All
>         OS/Version: Linux
>               Tree: Mainline
>             Status: NEW
>           Severity: high
>           Priority: P1
>          Component: Network
>         AssignedTo: drivers_network@kernel-bugs.osdl.org
>         ReportedBy: hilld@binarystorm.net
>         Regression: No
> 
> 
> Hello guys,
> 
>     It's not possible to compile kernel if CONFIG_NETCONSOLE_DYNAMIC is
>     turned
> on ...
> 
> drivers/built-in.o: In function `netconsole_target_put':
> /usr/src/linux-3.0/drivers/net/netconsole.c:133: undefined reference to
> `config_item_put'
> drivers/built-in.o: In function `netconsole_target_get':
> /usr/src/linux-3.0/drivers/net/netconsole.c:127: undefined reference to
> `config_item_get'
> drivers/built-in.o: In function `netconsole_target_put':
> /usr/src/linux-3.0/drivers/net/netconsole.c:133: undefined reference to
> `config_item_put'
> drivers/built-in.o: In function `netconsole_target_get':
> /usr/src/linux-3.0/drivers/net/netconsole.c:127: undefined reference to
> `config_item_get'
> drivers/built-in.o: In function `netconsole_target_put':
> /usr/src/linux-3.0/drivers/net/netconsole.c:133: undefined reference to
> `config_item_put'
> drivers/built-in.o: In function `drop_netconsole_target':
> /usr/src/linux-3.0/drivers/net/netconsole.c:588: undefined reference to
> `config_item_put'
> drivers/built-in.o: In function `make_netconsole_target':
> /usr/src/linux-3.0/drivers/net/netconsole.c:561: undefined reference to
> `config_item_init_type_name'
> drivers/built-in.o: In function `dynamic_netconsole_init':
> /usr/src/linux-3.0/drivers/net/netconsole.c:109: undefined reference to
> `config_group_init'
> /usr/src/linux-3.0/drivers/net/netconsole.c:111: undefined reference to
> `configfs_register_subsystem'
> drivers/built-in.o: In function `dynamic_netconsole_exit':
> /usr/src/linux-3.0/drivers/net/netconsole.c:116: undefined reference to
> `configfs_unregister_subsystem'
> make: *** [.tmp_vmlinux1] Error 1
Comment 2 Florian Mickler 2011-07-05 10:19:52 UTC
A patch referencing this bug report has been merged in Linux v3.0-rc6:

commit 58fa45973117ab7a79d5b6818275a887867fc4d7
Author: Randy Dunlap <randy.dunlap@oracle.com>
Date:   Tue Jun 21 08:01:20 2011 +0000

    netconsole: fix build when CONFIG_NETCONSOLE_DYNAMIC is turned on

Note You need to log in before you can comment on or make changes to this bug.