Patch "shmem: fix compilation warnings on unused functions" has been added to the 4.9-stable tree