Bug 6465

Summary: make error at CONFIG_HDLC=m went away using CONFIG_HDLC=y
Product: Drivers Reporter: Toralf Förster (toralf.foerster)
Component: OtherAssignee: drivers_other
Status: CLOSED PATCH_ALREADY_AVAILABLE    
Severity: normal CC: diegocg
Priority: P2    
Hardware: i386   
OS: Linux   
Kernel Version: 2.6.18-rc4 Subsystem:
Regression: --- Bisected commit-id:
Attachments: kernel config
make log
kernel config
fix kconfig dependecy

Description Toralf Förster 2006-04-30 04:21:41 UTC
Most recent kernel where this bug did not occur:
Distribution:Gentoo Stable
Hardware Environment:
Software Environment:
Problem Description:

Steps to reproduce:see config and make log
Comment 1 Toralf Förster 2006-04-30 04:22:04 UTC
Created attachment 7995 [details]
kernel config
Comment 2 Toralf Förster 2006-04-30 04:22:20 UTC
Created attachment 7996 [details]
make log
Comment 3 Toralf Förster 2006-05-01 13:39:01 UTC
Created attachment 8008 [details]
kernel config

There is a similar behaviour (see below for the attached config at this
remark), which can be solved by the following diff:
n22 /mnt/ramdisk/src # diff .config ../config.rnd.4
4c4
< # Mon May  1 20:04:38 2006
---
> # Mon May  1 18:30:22 2006
775c775
< CONFIG_HDLC=y
---
> CONFIG_HDLC=m

Here is the make error without the diff above:
  GEN	  .version
  CHK	  include/linux/compile.h
  UPD	  include/linux/compile.h
  CC	  init/version.o
  LD	  init/built-in.o
  LD	  .tmp_vmlinux1
drivers/built-in.o: In function `hdlcdev_open':
drivers/char/synclink_gt.c:1436: undefined reference to `hdlc_open'
drivers/char/synclink_gt.c:1469: undefined reference to `hdlc_set_carrier'
drivers/built-in.o: In function `hdlcdev_close':
drivers/char/synclink_gt.c:1494: undefined reference to `hdlc_close'
drivers/built-in.o: In function `hdlcdev_ioctl':
drivers/char/synclink_gt.c:1601: undefined reference to `hdlc_ioctl'
drivers/built-in.o: In function `hdlcdev_init':
drivers/char/synclink_gt.c:1690: undefined reference to `alloc_hdlcdev'
drivers/char/synclink_gt.c:1714: undefined reference to `register_hdlc_device'
drivers/built-in.o: In function `hdlcdev_exit':
drivers/char/synclink_gt.c:1732: undefined reference to
`unregister_hdlc_device'
drivers/built-in.o: In function `dcd_change':
drivers/char/synclink_gt.c:1974: undefined reference to `hdlc_set_carrier'
make: *** [.tmp_vmlinux1] Error 1
Comment 4 Diego Calleja 2006-05-08 06:09:34 UTC
Created attachment 8047 [details]
fix kconfig dependecy

This should fix it
Comment 5 Diego Calleja 2006-05-08 06:15:01 UTC
*** Bug 6464 has been marked as a duplicate of this bug. ***
Comment 6 Diego Calleja 2006-05-11 04:37:49 UTC
Comment on attachment 8047 [details]
fix kconfig dependecy

wrong fix, synclink drivers should be compilable without HDLC