Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Aug 2012 16:40:01 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        Anton Yuzhanionov <ayuzhaninov@openstat.ru>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Problem with IPMI KCS driver
Message-ID:  <201208291640.01448.jhb@freebsd.org>
In-Reply-To: <503E6E59.2000600@openstat.ru>
References:  <503DE2AB.6030702@citrin.ru> <201208290825.44198.jhb@freebsd.org> <503E6E59.2000600@openstat.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday, August 29, 2012 3:32:41 pm Anton Yuzhanionov wrote:
> On 29.08.2012 16:25, John Baldwin wrote:
> > Hmm.  Can you try this:
> >
> > Index: kern/kern_clock.c
> > ===================================================================
> > --- kern/kern_clock.c	(revision 239819)
> > +++ kern/kern_clock.c	(working copy)
> > @@ -382,7 +382,7 @@
> >   int	stathz;
> >   int	profhz;
> >   int	profprocs;
> > -int	ticks;
> > +volatile int	ticks;
> >   int	psratio;
> >
> 
> With this patch if_cdce.c can't be compiled:
> 
> /usr/src/sys/modules/usb/cdce/../../../dev/usb/net/if_cdce.c: In 
> function 'cdce_attach':
> /usr/src/sys/modules/usb/cdce/../../../dev/usb/net/if_cdce.c:616: 
> warning: passing argument 2 of 'memcpy' discards qualifiers from pointer 
> target type
> *** Error code 1
> 
> memcpy(&sc->sc_ue.ue_eaddr[1], &ticks, sizeof(uint32_t));

That can just be fixed with a cast.  It just wants 4 bytes of some sort.

> I have installed patched kernel (without cdce) and need some time to 
> check if the problem with IPMI KCS is reproduced.

Ok.

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208291640.01448.jhb>