[LinuxPPS] Re: [PATCH 1/1] LinuxPPS: Pulse per Second support for Linux

Udo van den Heuvel udovdh at xs4all.nl
Sat May 12 13:39:35 CEST 2007


Udo van den Heuvel wrote:
> [......]
>   CC [M]  drivers/parport/parport_serial.o
> drivers/parport/parport_serial.c: In function âparport_serial_pci_resumeâ:
> drivers/parport/parport_serial.c:402: warning: ignoring return value of
> âpci_enable_deviceâ, declared with attribute warn_unused_result
>   CC      drivers/pps/pps.o
> drivers/pps/pps.c: In function âpps_initâ:
> drivers/pps/pps.c:339: error: too many arguments to function
> ânetlink_kernel_createâ
> make[2]: *** [drivers/pps/pps.o] Error 1
> make[1]: *** [drivers/pps] Error 2
> make: *** [drivers] Error 2

Just started a clean kernel source tree for 2.6.21.1 and had the same,
so it was the fault of patch issues or whatever.
About patching 2.6.21.1:

[...]
[root at epia linux]# bzip2 -dc ../patch-2.6.21.1.bz2 |patch -p1
patching file Makefile
patching file net/ipv4/fib_frontend.c
patching file net/ipv6/exthdrs.c
[root at epia linux]# patch -p1 <
/mnt/samba/download/linux/ntp-pps-2.6.21-bis.diff
(Stripping trailing CRs from patch.)
patching file Documentation/pps.txt
(Stripping trailing CRs from patch.)
patching file MAINTAINERS
Hunk #1 succeeded at 2700 (offset -160 lines).
(Stripping trailing CRs from patch.)
patching file drivers/Kconfig
(Stripping trailing CRs from patch.)
patching file drivers/Makefile
Hunk #1 FAILED at 59.
1 out of 1 hunk FAILED -- saving rejects to file drivers/Makefile.rej
(Stripping trailing CRs from patch.)
patching file drivers/char/lp.c
Hunk #1 succeeded at 750 (offset 4 lines).
Hunk #3 succeeded at 914 (offset 4 lines).
(Stripping trailing CRs from patch.)
(cut)

Plesae note the CRs messages and the small reject in the drivers Makefile:
***************
*** 59,64 ****
  obj-$(CONFIG_I2O)             += message/
  obj-$(CONFIG_RTC_LIB)         += rtc/
  obj-y                         += i2c/
  obj-$(CONFIG_W1)              += w1/
  obj-$(CONFIG_HWMON)           += hwmon/
  obj-$(CONFIG_PHONE)           += telephony/
--- 59,65 ----
  obj-$(CONFIG_I2O)             += message/
  obj-$(CONFIG_RTC_LIB)         += rtc/
  obj-y                         += i2c/
+ obj-$(CONFIG_PPS)             += pps/
  obj-$(CONFIG_W1)              += w1/
  obj-$(CONFIG_HWMON)           += hwmon/
  obj-$(CONFIG_PHONE)           += telephony/


Now, what can I do to fix?



More information about the LinuxPPS mailing list