CONFIG_MACH_SPEAR310 is not available for thedefaultarchitecture x86.
Result is shown for architecture arm

SPEAr310

modulename: spear310.ko

configname: CONFIG_MACH_SPEAR310

Linux Kernel Configuration
└─>SPEAr310
In linux kernel since version 2.6.35 (release Date: 2010-08-01)  
Supports ST SPEAr310 Machine

source code:

depends
CONFIG_ARCH_SPEAR3XX |
| CONFIG_PLAT_SPEAR

is selected by
CONFIG_PINCTRL_SPEAR310