7. If the set $\left\{x \mid \cos ^{2} x+\sin x+m=0\right\} \neq \varnothing$, then the range of values for $m$ is
$\qquad$
7. $-\frac{5}{4} \leqslant m \leqslant 1$.

From the condition, we know that the equation $\cos ^{2} x+\sin x+m=0$ has a solution, $m=\sin ^{2} x-\sin x-1=\left(\sin x -\frac{1}{2}\right)^{2}-\frac{5}{4}$, hence $0 \leqslant\left(\sin x-\frac{1}{2}\right)^{2} \leqslant \frac{9}{4}$, so $-\frac{5}{4} \leqslant m \leqslant 1$.