Patch "nospec: Allow index argument to have const-qualified type" has been added to the 4.9-stable tree