opensubscriber
   Find in this group all groups
 
Unknown more information…

f : freebsd-stable@freebsd.org 30 August 2012 • 3:32AM -0400

Re: Problem with IPMI KCS driver
by Anton Yuzhanionov

REPLY TO AUTHOR
 
REPLY TO GROUP




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));

As I understand, memcpy() don't accept pointers to volatile objects.
May be some other source can be used for generated MAC address.

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

--
  Anton Yuzhaninov
_______________________________________________
freebsd-stable@free... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@free..."

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.