From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16]) (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 67EC73C30; Wed, 17 Jul 2024 02:01:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721181696; cv=none; b=hlnljKfv679dX16ycznvd7ak2semVscMYvXl0SYPzIFbZmztjk3RpzJhylOV0P21xCnJjxpjOjVKyVN3OfrcjWiErkCmRBmCyh727+kf8v6/rrpPPjSrTwQ4qPnn1pkyw8pz8nXTn7ikOIdZMdepEdACya1yQnIYQzQoS+9XSIw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721181696; c=relaxed/simple; bh=z6OqHAj52FhwkWGZ5tBGTOEYsGnl+ZAO9J0eQ9OVG4U=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=UcKn7rboGsy9iS9m8srLsy/3l3bUr+1yLFZg096+Tsg0bOMqnMRmuvnZIvv0oYpd5kvAm3IyP6QXuS5Btms9KMPvk3LupumwGGnsiayjyfujfRA3IjKdECswRLHv2GAC4v5hqnuTNBKTBe+8fjdeXwhJ18JDv8JmJeqABKjYjsA= 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=hENozu5h; arc=none smtp.client-ip=192.198.163.16 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="hENozu5h" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1721181695; x=1752717695; h=date:from:to:cc:subject:message-id:mime-version; bh=z6OqHAj52FhwkWGZ5tBGTOEYsGnl+ZAO9J0eQ9OVG4U=; b=hENozu5hXukw4YAwT/eITGtrTCEIvRRuTaKI/ZbgZoa7gD224/14bwQb byR3u+j9KckUrGaACW+VVvkb1u0onw9WN0UHAcNEMXNFhpusuaDm6LkmN nJArXW2C0ynwDaqJFmsO2+tJiIJrLDEjzJwftkQu/gJOpD6Tz65UcuK5y TwVgjFY9+27VBF9JYuri6t0aQRzIrlTrS9CU3f4/jaENY/ZaUnlSpyr83 3kmIx7tC4MkMip85Dfn+1F6WZVRRWyvftcnpZl/rRBOgXEIz/R6Qwkk36 z48IdoQh16LYDwX3xbWTW8YljS9eFBNh+NOPzsvKg3/3Vr5m1bjeGQx3G A==; X-CSE-ConnectionGUID: 8EpMJ0XeQmWypTCUmZC6sQ== X-CSE-MsgGUID: 2TD8IkdrT221gJn1id/mbQ== X-IronPort-AV: E=McAfee;i="6700,10204,11135"; a="12579918" X-IronPort-AV: E=Sophos;i="6.09,213,1716274800"; d="scan'208";a="12579918" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by fmvoesa110.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jul 2024 19:01:34 -0700 X-CSE-ConnectionGUID: O+0vVTB6TZuQZAevxZgOSg== X-CSE-MsgGUID: sK4sogZ5T5ynzVvUrrjqNA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,213,1716274800"; d="scan'208";a="50131644" Received: from lkp-server01.sh.intel.com (HELO 68891e0c336b) ([10.239.97.150]) by fmviesa008.fm.intel.com with ESMTP; 16 Jul 2024 19:01:32 -0700 Received: from kbuild by 68891e0c336b with local (Exim 4.96) (envelope-from ) id 1sTtyz-000fs8-33; Wed, 17 Jul 2024 02:01:29 +0000 Date: Wed, 17 Jul 2024 10:01:28 +0800 From: kernel test robot To: Puranjay Mohan Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Palmer Dabbelt , =?iso-8859-1?Q?Bj=F6rn_T=F6pel?= Subject: include/linux/ftrace.h:138:9: error: call to undeclared function 'arch_ftrace_get_regs'; ISO C99 and later do not support implicit function declarations Message-ID: <202407170925.lEkB1ZZ7-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Puranjay, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0434dbe32053d07d658165be681505120c6b1abc commit: 7caa9765465f60b6d88e22264892cee12d971888 ftrace: riscv: move from REGS to ARGS date: 8 weeks ago config: riscv-randconfig-001-20240717 (https://download.01.org/0day-ci/archive/20240717/202407170925.lEkB1ZZ7-lkp@intel.com/config) compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project a0c6b8aef853eedaa0980f07c0a502a5a8a9740e) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240717/202407170925.lEkB1ZZ7-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/202407170925.lEkB1ZZ7-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from arch/riscv/kernel/asm-offsets.c:10: In file included from include/linux/mm.h:2253: include/linux/vmstat.h:514:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 514 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ In file included from arch/riscv/kernel/asm-offsets.c:12: >> include/linux/ftrace.h:138:9: error: call to undeclared function 'arch_ftrace_get_regs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 138 | return arch_ftrace_get_regs(fregs); | ^ include/linux/ftrace.h:138:9: note: did you mean 'ftrace_get_regs'? include/linux/ftrace.h:133:40: note: 'ftrace_get_regs' declared here 133 | static __always_inline struct pt_regs *ftrace_get_regs(struct ftrace_regs *fregs) | ^ 134 | { 135 | if (!fregs) 136 | return NULL; 137 | 138 | return arch_ftrace_get_regs(fregs); | ~~~~~~~~~~~~~~~~~~~~ | ftrace_get_regs >> include/linux/ftrace.h:138:9: error: incompatible integer to pointer conversion returning 'int' from a function with result type 'struct pt_regs *' [-Wint-conversion] 138 | return arch_ftrace_get_regs(fregs); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning and 2 errors generated. make[3]: *** [scripts/Makefile.build:117: arch/riscv/kernel/asm-offsets.s] Error 1 shuffle=1354650548 make[3]: Target 'prepare' not remade because of errors. make[2]: *** [Makefile:1203: prepare0] Error 2 shuffle=1354650548 make[2]: Target 'prepare' not remade because of errors. make[1]: *** [Makefile:240: __sub-make] Error 2 shuffle=1354650548 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:240: __sub-make] Error 2 shuffle=1354650548 make: Target 'prepare' not remade because of errors. vim +/arch_ftrace_get_regs +138 include/linux/ftrace.h d19ad0775dcd64 Steven Rostedt (VMware 2020-10-28 132) d19ad0775dcd64 Steven Rostedt (VMware 2020-10-28 133) static __always_inline struct pt_regs *ftrace_get_regs(struct ftrace_regs *fregs) d19ad0775dcd64 Steven Rostedt (VMware 2020-10-28 134) { d19ad0775dcd64 Steven Rostedt (VMware 2020-10-28 135) if (!fregs) d19ad0775dcd64 Steven Rostedt (VMware 2020-10-28 136) return NULL; d19ad0775dcd64 Steven Rostedt (VMware 2020-10-28 137) 02a474ca266a47 Steven Rostedt (VMware 2020-10-27 @138) return arch_ftrace_get_regs(fregs); d19ad0775dcd64 Steven Rostedt (VMware 2020-10-28 139) } d19ad0775dcd64 Steven Rostedt (VMware 2020-10-28 140) :::::: The code at line 138 was first introduced by commit :::::: 02a474ca266a47ea8f4d5a11f4ffa120f83730ad ftrace/x86: Allow for arguments to be passed in to ftrace_regs by default :::::: TO: Steven Rostedt (VMware) :::::: CC: Steven Rostedt (VMware) -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki