Given $C$ a weakly closed convex subset of a (real) Banach space $B$, with $0\in C$ and $\varphi:C\longrightarrow \mathbb{R}$ weakly continuous, with $\varphi(0)=0$, can we extend $\varphi$ to a $\widetilde{\varphi}\in B^*$ ?
I guess not, in general. Is it true if $C$ is weakly compact?