LOS ANGELES — Three days after signing reliever Trevor Rosenthal to a minor league contract, the Yankees landed right-handed reliever Cory Gearrin off waivers Friday from the Mariners and added him to the 40-man roster.

The 33-year-old Gearrin worked 48 games (two starts) for the Mariners this season and was 0-2 with a 3.92 ERA. Gearrin has pitched in 318 big league games for the Braves, Giants, Rangers, Athletics and Mariners.

What attracted the Yankees to Gearrin was his ability to handle right-handed hitters.

“Excited to get him, a guy who is tough on right-handed hitters. Hopefully there are things we can do with him to improve his game a little bit more,’’ Aaron Boone said before the Yankees’ 10-2 win over the Dodgers. “In the month of September when [rosters] expand, he can be a guy there are some lanes for during the course of the game he can be really good.’’

Gearrin held righty hitters to .227 (22-for-97) this year and they are hitting .228 (157-for-690) against him in his career. Jonathan Loaisiga was sent out to make room for Gearrin on the 25-man roster.

To make room on the 40-man roster, the Yankees released one-time pitching prospect Domingo Acevedo — whose velocity has dipped in recent years.

The 25-year-old Acevedo appeared in the Futures Game in 2017, the same year he was named by the organization as the minor league player of the year.

A starter for most of his first six minor league seasons, the 6-foot-7, 240-pound Acevedo worked in 32 games out of the bullpen this year when he was 8-1 with a 4.35 ERA. In seven minor league seasons, he is 26-17 with a 3.02 in 117 games (80 starts).

According to Boone, Luis Severino will throw another bullpen session on Sunday. After that Severino, on the injured list after right shoulder and lat ailments, could throw 30 to 35 pitches next time out against hitters.

“At that point we will see where we are at,’’ Boone said.