From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 33245CF9C71 for ; Wed, 25 Sep 2024 04:30:05 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 711BF6B0083; Wed, 25 Sep 2024 00:30:04 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6C1EB6B0088; Wed, 25 Sep 2024 00:30:04 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 589596B008A; Wed, 25 Sep 2024 00:30:04 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 3ABCD6B0083 for ; Wed, 25 Sep 2024 00:30:04 -0400 (EDT) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 8DAB61C6089 for ; Wed, 25 Sep 2024 04:30:03 +0000 (UTC) X-FDA: 82601983086.08.4380607 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) by imf15.hostedemail.com (Postfix) with ESMTP id 86117A0002 for ; Wed, 25 Sep 2024 04:30:00 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=hUAqLCCV; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf15.hostedemail.com: domain of lkp@intel.com designates 198.175.65.20 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1727238469; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=aXJjmPZ8AMY0e+jLuPCDRR4OSbrGGUKD0GiiPrr7mhQ=; b=6yaVxiTmiKSh0hV9d1OvM6rPvST/08BoC0F1MN2rxQYdOV2XQG02wIN9J9dOH8kVGoNXI1 Mhor1HU3JMT9ACVDQ0hNVC6C/VWMuWZpQsKh6wlgLCNZW+u+QN86+VrCKwngI0WkSAto39 /drPXCa23L26bpR5SAZvkZECLf1A2sU= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1727238469; a=rsa-sha256; cv=none; b=ZfhHkOQ7rR4IPdbw7TbWLsuWB/dKZwz4OnqBe84jc6/FQnrTa+/xdGi3t1naCbYqNqVVez Y5F2kW/nvTRMtbmWh20bzMPgYnxGfkmdChRZP5yEvC/4BvjovQVW9eaA5Iu/db7asIN6z5 sI3B/aC+pm5OoQIJCOqxIkTNAeOO5to= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=hUAqLCCV; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf15.hostedemail.com: domain of lkp@intel.com designates 198.175.65.20 as permitted sender) smtp.mailfrom=lkp@intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1727238600; x=1758774600; h=date:from:to:cc:subject:message-id:mime-version; bh=OcI455Loq3bDqND5gx7ftN7n9RILjntQ2hzlB+yBegM=; b=hUAqLCCVFujJcCmXDEvJXUBUMrwGHqHZAX5toPerzmRMqCRODe7cKBcw 4VxQTwFNCbgWSBhTLz4yH+B7JOEzehbXBEfOrv/Kmk+Fdq50rqvjlG1mA 8Mf+HpRSkDBtTK/KG5lfo05m2XZWe8kpyIsgT4lBEkWCh3qVmj23byZcB 2t7jj6fUXOMQ5qwya87hvBATvL3bUXzQjeejs9uugmPMmORwo7FRsFrSQ H5MZ1aWtIGnLTUV/RjBKr4yxynR/mtMGaOp2xqCoG1rZA/3OLNOticDH7 PrgPH9HpXUP0VR5TiQNKVHV6zeTnNLtdP51HjWNBdtp0Nmruk8UB6sim+ Q==; X-CSE-ConnectionGUID: ZAAxf26JR9aqOLU+uuyBXw== X-CSE-MsgGUID: Ljkr+hMeQiqp+d36dpqgFg== X-IronPort-AV: E=McAfee;i="6700,10204,11205"; a="26085148" X-IronPort-AV: E=Sophos;i="6.10,256,1719903600"; d="scan'208";a="26085148" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2024 21:29:58 -0700 X-CSE-ConnectionGUID: h9iiwiDJQ9uNgT3Qvo5NOg== X-CSE-MsgGUID: KbE9O20xSaGePHZ1mVdwOw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,256,1719903600"; d="scan'208";a="76034720" Received: from lkp-server01.sh.intel.com (HELO 53e96f405c61) ([10.239.97.150]) by fmviesa005.fm.intel.com with ESMTP; 24 Sep 2024 21:29:57 -0700 Received: from kbuild by 53e96f405c61 with local (Exim 4.96) (envelope-from ) id 1stJf1-000J8H-1E; Wed, 25 Sep 2024 04:29:55 +0000 Date: Wed, 25 Sep 2024 12:29:03 +0800 From: kernel test robot To: Miguel Ojeda Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List Subject: [linux-next:master 12681/12687] rust/helpers/spinlock.c:10:23: error: implicit declaration of function 'spinlock_check' is invalid in C99 Message-ID: <202409251238.vetlgXE9-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 86117A0002 X-Stat-Signature: 1tgcq4yexrep7dy1njygr4scens5qjbi X-Rspam-User: X-HE-Tag: 1727238600-322001 X-HE-Meta: U2FsdGVkX1+nL/N76m5eae9c9eRgYYTwB+yK8mPhL9VhixMTEWV/LLYN01+VrEmZbZ9w5gcCBiClHwgosGbrV0wQO2/O6kdBmfa1p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bwWxjOJbgoRPFG6djvH84umGB0M5G7tXOqspI6NDLWk/kL6HQmCgx4wAJN5bQvYcy5Hr82gHgljiDa5B/kJwU8AgprQSWrOo7emScZ8CJgsAkk//sx6O44ThvW5f4dgIl/Fkq3zWYwR5YR+Pukd+w4J6WUi1hAxgZ8mF5pzP2BANJDrkeT3lnONO3kg3G9mdbKe2SOk3V1Sx2edsv7zEY= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 4d0326b60bb753627437fff0f76bf1525bcda422 commit: 000e589e413dd734f191ba4e73340559e65f104d [12681/12687] Merge branch 'rust-next' of https://github.com/Rust-for-Linux/linux.git config: arm64-randconfig-r122-20240924 (https://download.01.org/0day-ci/archive/20240925/202409251238.vetlgXE9-lkp@intel.com/config) compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1) reproduce: (https://download.01.org/0day-ci/archive/20240925/202409251238.vetlgXE9-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/202409251238.vetlgXE9-lkp@intel.com/ All error/warnings (new ones prefixed by >>): In file included from rust/helpers/helpers.c:22: >> rust/helpers/spinlock.c:10:23: error: implicit declaration of function 'spinlock_check' is invalid in C99 [-Werror,-Wimplicit-function-declaration] __raw_spin_lock_init(spinlock_check(lock), name, key, LD_WAIT_CONFIG); ^ >> rust/helpers/spinlock.c:10:23: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'raw_spinlock_t *' (aka 'struct raw_spinlock *') [-Wint-conversion] __raw_spin_lock_init(spinlock_check(lock), name, key, LD_WAIT_CONFIG); ^~~~~~~~~~~~~~~~~~~~ include/linux/spinlock.h:101:52: note: passing argument to parameter 'lock' here extern void __raw_spin_lock_init(raw_spinlock_t *lock, const char *name, ^ 1 warning and 1 error generated. make[3]: *** [scripts/Makefile.build:229: rust/helpers/helpers.o] Error 1 >> rust/helpers/spinlock.c:10:23: error: implicit declaration of function 'spinlock_check' is invalid in C99 [-Wimplicit-function-declaration] >> rust/helpers/spinlock.c:10:23: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'raw_spinlock_t *' (aka 'struct raw_spinlock *') [-Wint-conversion] include/linux/spinlock.h:101:52: note: passing argument to parameter 'lock' here >> clang diag: rust/helpers/spinlock.c:10:23: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'raw_spinlock_t *' (aka 'struct raw_spinlock *') [-Wint-conversion] make[3]: *** [rust/Makefile:304: rust/bindings/bindings_helpers_generated.rs] Error 101 make[3]: *** Deleting file 'rust/bindings/bindings_helpers_generated.rs' make[3]: Target 'rust/' not remade because of errors. make[2]: *** [Makefile:1209: prepare] Error 2 make[1]: *** [Makefile:224: __sub-make] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:224: __sub-make] Error 2 make: Target 'prepare' not remade because of errors. Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for OMAP2PLUS_MBOX Depends on [n]: MAILBOX [=y] && (ARCH_OMAP2PLUS || ARCH_K3 [=n]) Selected by [m]: - TI_K3_M4_REMOTEPROC [=m] && REMOTEPROC [=y] && (ARCH_K3 [=n] || COMPILE_TEST [=y]) vim +/spinlock_check +10 rust/helpers/spinlock.c 876346536c1b59 Andreas Hindborg 2024-08-15 5 876346536c1b59 Andreas Hindborg 2024-08-15 6 void rust_helper___spin_lock_init(spinlock_t *lock, const char *name, 876346536c1b59 Andreas Hindborg 2024-08-15 7 struct lock_class_key *key) 876346536c1b59 Andreas Hindborg 2024-08-15 8 { 876346536c1b59 Andreas Hindborg 2024-08-15 9 #ifdef CONFIG_DEBUG_SPINLOCK 876346536c1b59 Andreas Hindborg 2024-08-15 @10 __raw_spin_lock_init(spinlock_check(lock), name, key, LD_WAIT_CONFIG); 876346536c1b59 Andreas Hindborg 2024-08-15 11 #else 876346536c1b59 Andreas Hindborg 2024-08-15 12 spin_lock_init(lock); 876346536c1b59 Andreas Hindborg 2024-08-15 13 #endif 876346536c1b59 Andreas Hindborg 2024-08-15 14 } 876346536c1b59 Andreas Hindborg 2024-08-15 15 :::::: The code at line 10 was first introduced by commit :::::: 876346536c1b59a5b1b5e44477b1b3ece77647fd rust: kbuild: split up helpers.c :::::: TO: Andreas Hindborg :::::: CC: Miguel Ojeda -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki