It is a linear equation if and only if f(x) is a linear function of x of the form
f(x) = ax + b.
If, on contrary, f(x) is not a linear function, then equation f(x) = -5 is not linear.
Thoroughly answered and explained.
//////////////
Ignore the post by @josgarithmetic as non-sensical.