#endif
 
 #ifdef CONFIG_HARDENED_USERCOPY
-void usercopy_warn(const char *name, const char *detail, bool to_user,
-                  unsigned long offset, unsigned long len);
 void __noreturn usercopy_abort(const char *name, const char *detail,
                               bool to_user, unsigned long offset,
                               unsigned long len);
 
  * kmem_cache_create_usercopy() function to create the cache (and
  * carefully audit the whitelist range).
  */
-void usercopy_warn(const char *name, const char *detail, bool to_user,
-                  unsigned long offset, unsigned long len)
-{
-       WARN_ONCE(1, "Bad or missing usercopy whitelist? Kernel memory %s attempt detected %s %s%s%s%s (offset %lu, size %lu)!\n",
-                to_user ? "exposure" : "overwrite",
-                to_user ? "from" : "to",
-                name ? : "unknown?!",
-                detail ? " '" : "", detail ? : "", detail ? "'" : "",
-                offset, len);
-}
-
 void __noreturn usercopy_abort(const char *name, const char *detail,
                               bool to_user, unsigned long offset,
                               unsigned long len)