1. Verify that the joint shaft is not twisted or cracked.
2. Turn the joint shaft by hand and verify that the bearing rotates smoothly and freely.

Drive shaft
Joint shaft removal/installationMazda 6 Service Manual: Transmitter
NOTE
(With theft-deterrent system) The hazard warning lights flash
when the theft-deterrent system is armed or turned off. Refer to Theft-Deterrent
System.
(With the advanced keyless function) A beep sound can be heard
for confirmation when the doors are locked/ unlocked using the k ...
Mazda 6 Service Manual: Cargo compartment light switch inspection
1. Remove the liftgate lower trim. (See LIFTGATE LOWER TRIM
REMOVAL/INSTALLATION)
2. Disconnect the cargo compartment light switch connector.
3. Inspect for continuity between the cargo compartment light switch
terminals using an ohmmeter.
If not as specified, replace the liftgate lock.
...