[added to the 4.1 stable tree] profile: hide unused functions when !CONFIG_PROC_FS