From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 16C8837CD29; Fri, 3 Apr 2026 08:41:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775205666; cv=none; b=hLyYDELgt5tp5/s73e3+p87DgLYNM4mI9UqUaKrb9TqE72Opo+iFlnxvITtQNG5Ygf2ziyH/WVt0ZVW2Xu2Ig8Ufk7uoVy7NKapwuklazY6nEPA2KZ0xiaHaWCpPzgxtOOxPAYqCc54+OHqJmk47axe7Rl2h18B6FBNOBNH4usE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775205666; c=relaxed/simple; bh=icbeHNMcof1jIuf9VnojjfM4z+AAb9RLz5Aip1jJNoQ=; h=Date:From:To:Cc:Subject:Message-ID; b=LHXD1sJDHZrxMllk6EZRfaD3kYMfhzjLahVvjKGLfDLkYJ7KCxP0OS5ZpvNPhJzIKep1dGcoSkha395q0KkTarURBeYZNc77VXB7Oy2zuOCV86u4bSOaTKh5YJMxCeUZGtNooqNupo3lisuoxU1HAv8G3WP9RRWKXpmRul44SDw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=dXX4gLOm; arc=none smtp.client-ip=198.175.65.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="dXX4gLOm" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1775205666; x=1806741666; h=date:from:to:cc:subject:message-id; bh=icbeHNMcof1jIuf9VnojjfM4z+AAb9RLz5Aip1jJNoQ=; b=dXX4gLOm5EzOvwck3zjSUD/1F/SYdPvyrm2ppWnDqE9U8IRjJc9Pfhje vxD23l+gRwbjR2OKSfa+bEruyxcDvsLf13tmWlTQkBUHivUxfjO9SCrR3 ArbHJyPtJkluQ36juzV9Wj/CvFn3VHwN6A78Q/l9o92wDmGXg1LLkZ2YM 8CueOmhW8+6QJeZ+NAPcz2uYa+yOPDEKkuMjNsfN3zASKKM8w33xXyhWJ 62wVmfr+FMq4aNZ/jPkzbZf8mVCW7A6zBSQe3PmLhXFcKWjTaxd0q7p2J oOA2grRy1xz7pT9X0FBeXHr2RJO12wE1muLpUzZo6Bk+lur91rHFu0DWn A==; X-CSE-ConnectionGUID: FZVvi4TbQxysJ3go/LAkmw== X-CSE-MsgGUID: zzR6i/NLRtWlNk3/HnYTmw== X-IronPort-AV: E=McAfee;i="6800,10657,11747"; a="76156640" X-IronPort-AV: E=Sophos;i="6.23,157,1770624000"; d="scan'208";a="76156640" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2026 01:41:00 -0700 X-CSE-ConnectionGUID: 8JwLXMwjS72msfp3E2Qi0g== X-CSE-MsgGUID: aHhqeIPAS/WkBf4dOmQIlA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,157,1770624000"; d="scan'208";a="224370766" Received: from lkp-server01.sh.intel.com (HELO 064ad336901d) ([10.239.97.150]) by fmviesa008.fm.intel.com with ESMTP; 03 Apr 2026 01:40:56 -0700 Received: from kbuild by 064ad336901d with local (Exim 4.98.2) (envelope-from ) id 1w8a5G-0000000012T-1UDP; Fri, 03 Apr 2026 08:40:54 +0000 Date: Fri, 03 Apr 2026 16:40:11 +0800 From: kernel test robot To: Mark Rutland Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev Subject: [mark:arm64/entry/rework 2/11] include/linux/entry-common.h:324:2: error: call to undeclared function 'local_irq_disable_exit_to_user'; ISO C99 and later do not support implicit function declarations Message-ID: <202604022127.5B34nHEM-lkp@intel.com> User-Agent: s-nail v14.9.25 Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: tree: https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git arm64/entry/rework head: 1e10c666f8f7ec4524fd226186a6ae0ad495aad5 commit: be5c2d5a23beab5211c64f1237c238a1df622c47 [2/11] entry: Remove local_irq_{enable,disable}_exit_to_user() config: x86_64-allnoconfig (https://download.01.org/0day-ci/archive/20260402/202604022127.5B34nHEM-lkp@intel.com/config) compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260402/202604022127.5B34nHEM-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202604022127.5B34nHEM-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from arch/x86/entry/syscall_64.c:8: >> include/linux/entry-common.h:324:2: error: call to undeclared function 'local_irq_disable_exit_to_user'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 324 | local_irq_disable_exit_to_user(); | ^ 1 error generated. vim +/local_irq_disable_exit_to_user +324 include/linux/entry-common.h c6156e1da633f2 Sven Schnelle 2020-12-01 288 a9f3a74a29af09 Thomas Gleixner 2020-07-22 289 /** a9f3a74a29af09 Thomas Gleixner 2020-07-22 290 * syscall_exit_to_user_mode - Handle work before returning to user mode a9f3a74a29af09 Thomas Gleixner 2020-07-22 291 * @regs: Pointer to currents pt_regs a9f3a74a29af09 Thomas Gleixner 2020-07-22 292 * e1647100c22eb7 Jinjie Ruan 2026-01-28 293 * Invoked with interrupts enabled and fully valid @regs. Returns with all a9f3a74a29af09 Thomas Gleixner 2020-07-22 294 * work handled, interrupts disabled such that the caller can immediately a9f3a74a29af09 Thomas Gleixner 2020-07-22 295 * switch to user mode. Called from architecture specific syscall and ret a9f3a74a29af09 Thomas Gleixner 2020-07-22 296 * from fork code. a9f3a74a29af09 Thomas Gleixner 2020-07-22 297 * a9f3a74a29af09 Thomas Gleixner 2020-07-22 298 * The call order is: a9f3a74a29af09 Thomas Gleixner 2020-07-22 299 * 1) One-time syscall exit work: a9f3a74a29af09 Thomas Gleixner 2020-07-22 300 * - rseq syscall exit a9f3a74a29af09 Thomas Gleixner 2020-07-22 301 * - audit a9f3a74a29af09 Thomas Gleixner 2020-07-22 302 * - syscall tracing 0cfcb2b9ef48bb Eric W. Biederman 2022-01-27 303 * - ptrace (single stepping) a9f3a74a29af09 Thomas Gleixner 2020-07-22 304 * a9f3a74a29af09 Thomas Gleixner 2020-07-22 305 * 2) Preparatory work e1647100c22eb7 Jinjie Ruan 2026-01-28 306 * - Disable interrupts a9f3a74a29af09 Thomas Gleixner 2020-07-22 307 * - Exit to user mode loop (common TIF handling). Invokes a9f3a74a29af09 Thomas Gleixner 2020-07-22 308 * arch_exit_to_user_mode_work() for architecture specific TIF work a9f3a74a29af09 Thomas Gleixner 2020-07-22 309 * - Architecture specific one time work arch_exit_to_user_mode_prepare() a9f3a74a29af09 Thomas Gleixner 2020-07-22 310 * - Address limit and lockdep checks a9f3a74a29af09 Thomas Gleixner 2020-07-22 311 * 310de1a678b218 Sven Schnelle 2020-12-01 312 * 3) Final transition (lockdep, tracing, context tracking, RCU), i.e. the 310de1a678b218 Sven Schnelle 2020-12-01 313 * functionality in exit_to_user_mode(). c6156e1da633f2 Sven Schnelle 2020-12-01 314 * e1647100c22eb7 Jinjie Ruan 2026-01-28 315 * This is a combination of syscall_exit_to_user_mode_work() (1), disabling e1647100c22eb7 Jinjie Ruan 2026-01-28 316 * interrupts followed by syscall_exit_to_user_mode_prepare() (2) and e1647100c22eb7 Jinjie Ruan 2026-01-28 317 * exit_to_user_mode() (3). This function is preferred unless there is a e1647100c22eb7 Jinjie Ruan 2026-01-28 318 * compelling architectural reason to invoke the functions separately. a9f3a74a29af09 Thomas Gleixner 2020-07-22 319 */ e43b8bb56e537b Charlie Jenkins 2025-03-20 320 static __always_inline void syscall_exit_to_user_mode(struct pt_regs *regs) e43b8bb56e537b Charlie Jenkins 2025-03-20 321 { e43b8bb56e537b Charlie Jenkins 2025-03-20 322 instrumentation_begin(); e43b8bb56e537b Charlie Jenkins 2025-03-20 323 syscall_exit_to_user_mode_work(regs); e1647100c22eb7 Jinjie Ruan 2026-01-28 @324 local_irq_disable_exit_to_user(); e1647100c22eb7 Jinjie Ruan 2026-01-28 325 syscall_exit_to_user_mode_prepare(regs); e43b8bb56e537b Charlie Jenkins 2025-03-20 326 instrumentation_end(); e43b8bb56e537b Charlie Jenkins 2025-03-20 327 exit_to_user_mode(); e43b8bb56e537b Charlie Jenkins 2025-03-20 328 } a9f3a74a29af09 Thomas Gleixner 2020-07-22 329 :::::: The code at line 324 was first introduced by commit :::::: e1647100c22eb718e9833211722cbb78e339047c entry: Rework syscall_exit_to_user_mode_work() for architecture reuse :::::: TO: Jinjie Ruan :::::: CC: Thomas Gleixner -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki