Doing this on LinkedIn would be really bad, because that data would be out there for recruiters, and you'd lose most of your leverage when trying to negotiate at a new job.
Secret salary information has near exclusive financial benefit to the employer. The only employee benefit is protecting their feeling.