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 687AEE77173 for ; Mon, 9 Dec 2024 04:22:15 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D957D6B03B5; Sun, 8 Dec 2024 23:22:14 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id D1E746B03B6; Sun, 8 Dec 2024 23:22:14 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BBED36B03B7; Sun, 8 Dec 2024 23:22:14 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 9A20B6B03B5 for ; Sun, 8 Dec 2024 23:22:14 -0500 (EST) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 1BE591209D4 for ; Mon, 9 Dec 2024 04:22:14 +0000 (UTC) X-FDA: 82874122800.12.B776C11 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) by imf13.hostedemail.com (Postfix) with ESMTP id A16AD2000B for ; Mon, 9 Dec 2024 04:21:51 +0000 (UTC) Authentication-Results: imf13.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Q5oakBH2; spf=pass (imf13.hostedemail.com: domain of lkp@intel.com designates 198.175.65.12 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1733718110; 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=1HMwLpgnbCLFfgv7nOczRVNFeE7lD4rER6AubKMUGsA=; b=m1wSlYV6VTjFchr+a6x3W/bTnfubxQp7lHNYsn8v+f5tjbv5mIcM0u81QhX4+swWjWS8Iu vC06DdLd04rcCN8d6PFrzlYc00jBD5LjtLipO5ZQVEsVNJ90og80/t8eBVeen/qtLmpEv4 mMzMdMWNXG1uCjVdhnaFvXeG7z0Yyeg= ARC-Authentication-Results: i=1; imf13.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Q5oakBH2; spf=pass (imf13.hostedemail.com: domain of lkp@intel.com designates 198.175.65.12 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1733718110; a=rsa-sha256; cv=none; b=k0ZD7BW/PnxGbG8R4s88pHQIay0j3HwO3bQYDxWsvgkbLz1zGrmDoXweewB2dqGE47nAFu G84uWeIpIjHavmmv60ypC+0Ou7RId0VpX8NjjLMRcTZp3F4Vn4h2oy65f8Jr0HpXK7wQT5 v0G195/hP7txecn+ttEoCOHYrc47Edo= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1733718132; x=1765254132; h=date:from:to:cc:subject:message-id:mime-version; bh=fioZyazK2wMAHB48EwQV0DGRd/URREtjodnsulS02Ck=; b=Q5oakBH252nNyMQMzXcqXV6130rd9VW/J3KZY3VyZCNDREd7mcRHrCCl 6UPu9bHZV5ZjIuYV4mF7tqdimcTuF9sgZHN7JU2iXWEr+8Xc343cEqswz 8f+XUygYioZzcyd4PTZ5QL+Kpm0gRi1Xi7uuvUQYNGUgDdLSFKguiN/xo 2SU93zIsyPi3m/RbOnqbqT9KB8hINiWQKba63/1BbE59dXjnCsLul0Chn er9eQjYThXTTYOJAQiOMjEDi5bDaqFKYdyyIvvyMbGyRRTJyOxtgHwXD8 L82MxBRNeI7apVBsEb6LG+SHTH3b6+XsMP3k0Y/iQBpMqDCsaaaCnt11E A==; X-CSE-ConnectionGUID: vL7+UwZxSzW1U0/o+2Yw/w== X-CSE-MsgGUID: V+/BEMnUSAGHpXZNSowaBg== X-IronPort-AV: E=McAfee;i="6700,10204,11278"; a="45379955" X-IronPort-AV: E=Sophos;i="6.12,214,1728975600"; d="scan'208";a="45379955" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2024 20:22:11 -0800 X-CSE-ConnectionGUID: ZbVyVuvASc+IT0gpRm4UFg== X-CSE-MsgGUID: mKcHchFPS2aePwt8c8dgRQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,218,1728975600"; d="scan'208";a="99005793" Received: from lkp-server01.sh.intel.com (HELO 82a3f569d0cb) ([10.239.97.150]) by fmviesa003.fm.intel.com with ESMTP; 08 Dec 2024 20:22:09 -0800 Received: from kbuild by 82a3f569d0cb with local (Exim 4.96) (envelope-from ) id 1tKVHb-0003q5-0H; Mon, 09 Dec 2024 04:22:07 +0000 Date: Mon, 9 Dec 2024 12:21:55 +0800 From: kernel test robot To: Lorenzo Stoakes Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Andrew Morton , Linux Memory Management List Subject: [akpm-mm:mm-unstable 166/172] include/linux/memfd.h:27:5: warning: no previous prototype for function 'memfd_check_seals_mmap' Message-ID: <202412072101.6xUaltAj-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: A16AD2000B X-Rspam-User: X-Stat-Signature: 81j63w8igoq6mewuqzzir5i4onxdco5k X-HE-Tag: 1733718111-650629 X-HE-Meta: U2FsdGVkX1/4t7F9gREvwiTTjr8GaO+TPsJMhfDe1lNhrWCH0j8t2dGc6l3r0zDE7gevRwsBto/oGBrHeXWAMxG93qQNjhegG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56Xi6vBAm7eyFyfGdgFtGBjLpSOwPEUhXA1aYOOfiWEZc+XHJ0ZqV9V3GM+LAwQ6Es/0jR2Kqhz64mEWpNu5tdYtRbm3rQOcdezbDXuyudhBAeNjnBi+Y+HUannUIdvcaKVXXpazuZoCXRlkbU711EXl7x2oT8Pw9HjpIsxUFOUIKHihfqA== 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/akpm/mm.git mm-unstable head: 6e165f54437931f329d09dca6c19d99af08a36e1 commit: 6b72648c4e2b94fc7df65cab28a59b185a37c997 [166/172] mm: perform all memfd seal checks in a single place config: arm-randconfig-004-20241207 (https://download.01.org/0day-ci/archive/20241207/202412072101.6xUaltAj-lkp@intel.com/config) compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 592c0fe55f6d9a811028b5f3507be91458ab2713) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241207/202412072101.6xUaltAj-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/202412072101.6xUaltAj-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from fs/fcntl.c:8: In file included from include/linux/syscalls.h:94: In file included from include/trace/syscall.h:7: In file included from include/linux/trace_events.h:6: In file included from include/linux/ring_buffer.h:5: In file included from include/linux/mm.h:2287: include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ In file included from fs/fcntl.c:26: >> include/linux/memfd.h:27:5: warning: no previous prototype for function 'memfd_check_seals_mmap' [-Wmissing-prototypes] 27 | int memfd_check_seals_mmap(struct file *file, unsigned long *vm_flags) | ^ include/linux/memfd.h:27:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 27 | int memfd_check_seals_mmap(struct file *file, unsigned long *vm_flags) | ^ | static 2 warnings generated. vim +/memfd_check_seals_mmap +27 include/linux/memfd.h 6 7 #ifdef CONFIG_MEMFD_CREATE 8 extern long memfd_fcntl(struct file *file, unsigned int cmd, unsigned int arg); 9 struct folio *memfd_alloc_folio(struct file *memfd, pgoff_t idx); 10 /* 11 * Check for any existing seals on mmap, return an error if access is denied due 12 * to sealing, or 0 otherwise. 13 * 14 * We also update VMA flags if appropriate by manipulating the VMA flags pointed 15 * to by vm_flags_ptr. 16 */ 17 int memfd_check_seals_mmap(struct file *file, unsigned long *vm_flags_ptr); 18 #else 19 static inline long memfd_fcntl(struct file *f, unsigned int c, unsigned int a) 20 { 21 return -EINVAL; 22 } 23 static inline struct folio *memfd_alloc_folio(struct file *memfd, pgoff_t idx) 24 { 25 return ERR_PTR(-EINVAL); 26 } > 27 int memfd_check_seals_mmap(struct file *file, unsigned long *vm_flags) 28 { 29 return 0; 30 } 31 #endif 32 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki