The only way to get rid of racism is to stop talking about it. This includes stopping those who promote it as though it were something.
What we call racism is really somebody or group trying to harm somebody or some other group. Go after anybody who does you real harm, rather than calling it racism of some kind.
Did somebody defame you? Take him to court for defamation of character, not racism. Did somebody beat you? Take him to court for damages for the beating, not for racism.
People are all people. Freedom of speech. Punish the wrongdoers. The racism idea is nothing but a big bunch of talk that is trying to disrupt society.
When I read the first paragraph of @BADecker's post I felt bad. How can people that go through the pain of abuse keep quiet? But when I read further learned that most racists are motivated by the attention they get. I agree that anyone caught engaging in racist acts should be arrested and persecuted without partiality. If they stop receiving attention, they might change their ways.
But it becomes a problem when racism is promoted by the government. Some organizations or nations engage in systematic racism that limits the rights of these victims. People need to speak out when the legal, political, and economic systems of most nations treat some citizens unequally because of their color.
Racism will never come to an end because the world has been designed in a way that some people have been perceived as inferiors. Racism is as old as man and will also change its form. Before now it started as slavery, moved to colonialism and it will keep changing its form. Even in my country where everybody has the same color an offshoot of racism called tribalism still exists. Some tribes believe that they are superior to others. So they ensure that the so-called minorities don't have access to political and economic powers.
Most people that engage in racism are not informed. I have been privileged to share a flat with some members of the most dreaded tribe in my country and I discovered that humans shouldn't be judged based on their tribe or color. These boys were exceptionally nice and I enjoyed every moment spent with them. They had better character than most of my tribesmen.