> Quoting Steve WIse <[EMAIL PROTECTED]>: > Subject: Re: [PATCH RFC 18/21] ofed_1_2 > Backportinfiniband/hw/cxgb3/core/cxio_resource.c to sles9sp3 > > > > Surely random32 can be a macro in kernel_addons? > > > > I started out trying to back-port random32(). But it was too hairy and > not worth the effort IMO. I don't know how make random32() use > get_random_bytes() in a macro and return the value. Show me how.
Use a gcc extension: #define random32() ({ int random32_internal_variable; \ get_random_bytes(&random32_internal_variable);\ random32_internal_variable; }) or just make it an inline function -- MST _______________________________________________ openib-general mailing list openib-general@openib.org http://openib.org/mailman/listinfo/openib-general To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general