From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (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 46276275DF for ; Wed, 19 Jul 2023 19:48:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689796120; x=1721332120; h=date:from:to:cc:subject:message-id:mime-version; bh=PmC07DG3pcK51NMBfJGIDrslv+vUb8e+zMPnpeX57Lk=; b=KKYGrxW2RbJJSOkMrYlEvS60ltH4pkH3j8bRCMUWoRLlmNmYM/WSUs++ 3q2yF6iRltl4Q2RU9rmnfOrp+mnXrX53LG+gWWkawjjaX3rQkheUqhvhg sVQDLpPcI2u/+qJzcBrj/srwXezMRntv6I91flQyOdH+ZyZsp296Ty66v nq4FjX0CIeWyaJDT2kVuMObNN81qxDQrfdZY/xYWDjav7mpBdphFp24g2 K9D91P+OUfSG6lY0JRGE7HhiGMTNiyzl35+uYwe9QfKN1hx3ialvZ2Vzm Baqm0et6T2ro/b5nH34f6CIJMXCJmuy+umsyVPsgvqoJ8uP2I3F2ze/Wo g==; X-IronPort-AV: E=McAfee;i="6600,9927,10776"; a="432746749" X-IronPort-AV: E=Sophos;i="6.01,216,1684825200"; d="scan'208";a="432746749" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jul 2023 12:48:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10776"; a="970741634" X-IronPort-AV: E=Sophos;i="6.01,216,1684825200"; d="scan'208";a="970741634" Received: from lkp-server02.sh.intel.com (HELO 36946fcf73d7) ([10.239.97.151]) by fmsmga006.fm.intel.com with ESMTP; 19 Jul 2023 12:48:39 -0700 Received: from kbuild by 36946fcf73d7 with local (Exim 4.96) (envelope-from ) id 1qMD90-0005QN-2O; Wed, 19 Jul 2023 19:47:59 +0000 Date: Thu, 20 Jul 2023 03:46:29 +0800 From: kernel test robot To: Matthew Wilcox Cc: oe-kbuild-all@lists.linux.dev Subject: [willy-pagecache:folio-flags 3/14] include/linux/page-flags.h:702:9: error: call to undeclared function 'clear_bit_unlock_is_negative_byte'; ISO C99 and later do not support implicit function declarations Message-ID: <202307200311.OR5kWIh3-lkp@intel.com> Precedence: bulk X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline tree: git://git.infradead.org/users/willy/pagecache folio-flags head: 006eb1a68e63a55bcc2cba90f713909316f4eaf1 commit: b0a09d554792a2b160c743df5e732e103d5e3f5c [3/14] mm: Add folio_clear_has_waiters() config: riscv-randconfig-r042-20230720 (https://download.01.org/0day-ci/archive/20230720/202307200311.OR5kWIh3-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) reproduce: (https://download.01.org/0day-ci/archive/20230720/202307200311.OR5kWIh3-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/202307200311.OR5kWIh3-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:7: In file included from include/linux/gfp.h:7: In file included from include/linux/mmzone.h:23: >> include/linux/page-flags.h:702:9: error: call to undeclared function 'clear_bit_unlock_is_negative_byte'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 702 | return clear_bit_unlock_is_negative_byte(flag, folio_flags(folio, 0)); | ^ In file included from arch/riscv/kernel/asm-offsets.c:10: In file included from include/linux/mm.h:990: In file included from include/linux/huge_mm.h:8: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:97:11: warning: array index 3 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 97 | return (set->sig[3] | set->sig[2] | | ^ ~ include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here 62 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/riscv/kernel/asm-offsets.c:10: In file included from include/linux/mm.h:990: In file included from include/linux/huge_mm.h:8: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:97:25: warning: array index 2 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 97 | return (set->sig[3] | set->sig[2] | | ^ ~ include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here 62 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/riscv/kernel/asm-offsets.c:10: In file included from include/linux/mm.h:990: In file included from include/linux/huge_mm.h:8: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:98:4: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 98 | set->sig[1] | set->sig[0]) == 0; | ^ ~ include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here 62 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/riscv/kernel/asm-offsets.c:10: In file included from include/linux/mm.h:990: In file included from include/linux/huge_mm.h:8: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:100:11: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 100 | return (set->sig[1] | set->sig[0]) == 0; | ^ ~ include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here 62 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/riscv/kernel/asm-offsets.c:10: In file included from include/linux/mm.h:990: In file included from include/linux/huge_mm.h:8: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:113:11: warning: array index 3 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds] 113 | return (set1->sig[3] == set2->sig[3]) && | ^ ~ include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here 62 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/riscv/kernel/asm-offsets.c:10: In file included from include/linux/mm.h:990: In file included from include/linux/huge_mm.h:8: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:113:27: warning: array index 3 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds] 113 | return (set1->sig[3] == set2->sig[3]) && | ^ ~ include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here 62 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/riscv/kernel/asm-offsets.c:10: In file included from include/linux/mm.h:990: In file included from include/linux/huge_mm.h:8: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:114:5: warning: array index 2 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds] 114 | (set1->sig[2] == set2->sig[2]) && | ^ ~ include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here 62 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/riscv/kernel/asm-offsets.c:10: In file included from include/linux/mm.h:990: In file included from include/linux/huge_mm.h:8: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: vim +/clear_bit_unlock_is_negative_byte +702 include/linux/page-flags.h 692 693 /** 694 * folio_clear_has_waiters - Clear a flag that can be waited upon 695 * @folio: The folio. 696 * @flag: The flag to clear 697 * 698 */ 699 static inline 700 bool folio_clear_has_waiters(struct folio *folio, unsigned int flag) 701 { > 702 return clear_bit_unlock_is_negative_byte(flag, folio_flags(folio, 0)); 703 } 704 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki