It’s a macro, which by default is replaced by nothing:
#ifndef __latent_entropy
# define __latent_entropy
#endif
With GCC, in some cases it becomes an attribute instead:
#if defined(LATENT_ENTROPY_PLUGIN) && !defined(__CHECKER__)
#define __latent_entropy __attribute__((latent_entropy))
#endif
This is used by the GCC entropy plugin.