As reported to the FAA. Reports are unverified, and codes are left as the FAA publishes them.
What was found
EN ROUTE DTW-SFO CLIMBING THROUGH FL180, CREW REPORTED UNCOMMANDED RIGHT AILERON MOVEMENT. AN EMERGENCY WAS DECLARED. THE FLIGHT DIVERTED TO ORD AND LANDED WITHOUT INCIDENT. MAINTENANCE REPLACED THE LATERAL CONTROL MIXER AND RIGGED THE AILERON CONTROL SYSTEM. AILERON SYSTEM TESTS WERE SATISFACTORY.