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

Udo van den Heuvel udovdh at xs4all.nl
Sat May 12 14:21:23 CEST 2007


Udo van den Heuvel wrote:
> Udo van den Heuvel wrote:
> course the sources I changed
> 
> static int __init pps_init(void)
> {
>         int ret;
> 
>         nl_sk = netlink_kernel_create(NETLINK_PPSAPI,
>                                         pps_nl_data_ready, NULL,
> THIS_MODULE);
>         //nl_sk = netlink_kernel_create(NETLINK_PPSAPI, 0,
>         //                              pps_nl_data_ready, NULL,
> THIS_MODULE);
> 
> (yes, I only removed the 0 for now) which gives me:
> 
> 
>   CC      drivers/pps/pps.o
> drivers/pps/pps.c: In function âpps_initâ:
> drivers/pps/pps.c:339: warning: passing argument 2 of
> ânetlink_kernel_createâ makes integer from pointer without a cast
> 
> So, is this OK?

static int __init pps_init(void)
{
        int ret;

        nl_sk = netlink_kernel_create(NETLINK_PPSAPI, 0,
                                        pps_nl_data_ready,  THIS_MODULE);
(cut)

Gives me a clean compile.






More information about the LinuxPPS mailing list