All of lore.kernel.org
 help / color / mirror / Atom feed
* [peterz-queue:modules/WIP 23/24] kernel/module.c:1033: undefined reference to `ftrace_module_release'
@ 2020-04-30 23:31 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-04-30 23:31 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 4013 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git modules/WIP
head:   d525bf9c75d505af76d3e6759aba116afa78eaf9
commit: 44180b4742e40bb4afc0fb79ed75366411d5fc6c [23/24] ftrace: Merge ftrace_module_{init,enable}()
config: sparc64-randconfig-a001-20200430 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 44180b4742e40bb4afc0fb79ed75366411d5fc6c
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=sparc64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   sparc64-linux-ld: kernel/module.o: in function `__do_sys_delete_module':
>> kernel/module.c:1033: undefined reference to `ftrace_module_release'
   sparc64-linux-ld: kernel/module.o: in function `do_init_module':
   kernel/module.c:3641: undefined reference to `ftrace_module_release'
   sparc64-linux-ld: kernel/module.o: in function `load_module':
   kernel/module.c:3936: undefined reference to `ftrace_module_release'

vim +1033 kernel/module.c

   969	
   970	SYSCALL_DEFINE2(delete_module, const char __user *, name_user,
   971			unsigned int, flags)
   972	{
   973		struct module *mod;
   974		char name[MODULE_NAME_LEN];
   975		int ret, forced = 0;
   976	
   977		if (!capable(CAP_SYS_MODULE) || modules_disabled)
   978			return -EPERM;
   979	
   980		if (strncpy_from_user(name, name_user, MODULE_NAME_LEN-1) < 0)
   981			return -EFAULT;
   982		name[MODULE_NAME_LEN-1] = '\0';
   983	
   984		audit_log_kern_module(name);
   985	
   986		if (mutex_lock_interruptible(&module_mutex) != 0)
   987			return -EINTR;
   988	
   989		mod = find_module(name);
   990		if (!mod) {
   991			ret = -ENOENT;
   992			goto out;
   993		}
   994	
   995		if (!list_empty(&mod->source_list)) {
   996			/* Other modules depend on us: get rid of them first. */
   997			ret = -EWOULDBLOCK;
   998			goto out;
   999		}
  1000	
  1001		/* Doing init or already dying? */
  1002		if (mod->state != MODULE_STATE_LIVE) {
  1003			/* FIXME: if (force), slam module count damn the torpedoes */
  1004			pr_debug("%s already dying\n", mod->name);
  1005			ret = -EBUSY;
  1006			goto out;
  1007		}
  1008	
  1009		/* If it has an init func, it must have an exit func to unload */
  1010		if (mod->init && !mod->exit) {
  1011			forced = try_force_unload(flags);
  1012			if (!forced) {
  1013				/* This module can't be removed */
  1014				ret = -EBUSY;
  1015				goto out;
  1016			}
  1017		}
  1018	
  1019		/* Stop the machine so refcounts can't move and disable module. */
  1020		ret = try_stop_module(mod, flags, &forced);
  1021		if (ret != 0)
  1022			goto out;
  1023	
  1024		mutex_unlock(&module_mutex);
  1025		/* Final destruction now no one is using it. */
  1026		if (mod->exit != NULL)
  1027			mod->exit();
  1028		blocking_notifier_call_chain(&module_notify_list,
  1029					     MODULE_STATE_GOING, mod);
  1030		klp_module_going(mod);
  1031		blocking_notifier_call_chain(&module_notify_list,
  1032					     MODULE_STATE_GONE, mod);
> 1033		ftrace_module_release(mod);
  1034	
  1035		async_synchronize_full();
  1036	
  1037		/* Store the name of the last unloaded module for diagnostic purposes */
  1038		strlcpy(last_unloaded_module, mod->name, sizeof(last_unloaded_module));
  1039	
  1040		free_module(mod);
  1041		/* someone could wait for the module in add_unformed_module() */
  1042		wake_up_all(&module_wq);
  1043		return 0;
  1044	out:
  1045		mutex_unlock(&module_mutex);
  1046		return ret;
  1047	}
  1048	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 26079 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-04-30 23:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-30 23:31 [peterz-queue:modules/WIP 23/24] kernel/module.c:1033: undefined reference to `ftrace_module_release' kbuild test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.