1. Remove the headliner.
2. Remove the nuts.
3. Remove the roof carrier bracket.

4. Install in the reverse order of removal.
Rear spoiler removal/installation
MoldingMazda 6 Service Manual: Excessive Speed Warning
If the vehicle speed exceeds the speed limit sign displayed on the active driving
display, the warning sound is activated and the area around the speed limit sign
displayed on the active driving display flashes 3 times in amber, and if the vehicle
speed continues to exceed the displayed speed ...
Mazda 6 Service Manual: Front/rear abs wheel-speed sensor inspection
Visual Inspection
Remove the wheel and tire, and inspect the sensor for looseness and damage.
Replace the sensor if necessary.
Clearance Inspection
Inspect the clearance between the wheel-speed sensor and the sensor rotor.
Clearance
0.3-1.1 mm {0.012-0.043 in}
Resistance Inspection
...