[S390] Fix appldata build break with !NET
authorSachin Sant <[email protected]>
Thu, 26 Mar 2009 14:24:00 +0000 (15:24 +0100)
committerMartin Schwidefsky <[email protected]>
Thu, 26 Mar 2009 14:24:10 +0000 (15:24 +0100)
With CONFIG_NET not set appldata build breaks on s390.

arch/s390/appldata/built-in.o: In function appldata_get_net_sum_data:
appldata_net_sum.c:(.text+0x2684): undefined reference to dev_get_stats
appldata_net_sum.c:(.text+0x2688): undefined reference to init_net
appldata_net_sum.c:(.text+0x268c): undefined reference to init_net
appldata_net_sum.c:(.text+0x2694): undefined reference to dev_base_lock

The following patch fixes the issue for me.

Signed-off-by: Sachin Sant <[email protected]>
Signed-off-by: Heiko Carstens <[email protected]>
Signed-off-by: Martin Schwidefsky <[email protected]>
arch/s390/Kconfig

index 6b0a3538dc63b9ab8ff62344904f186b01876702..3f470604a89afcd22996d1715a321ec5d2c5375d 100644 (file)
@@ -521,7 +521,7 @@ config APPLDATA_OS
 
 config APPLDATA_NET_SUM
        tristate "Monitor overall network statistics"
-       depends on APPLDATA_BASE
+       depends on APPLDATA_BASE && NET
        help
          This provides network related data to the Linux - VM Monitor Stream,
          currently there is only a total sum of network I/O statistics, no