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 8A2E2CD1288 for ; Sun, 31 Mar 2024 09:30:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A87BC6B0083; Sun, 31 Mar 2024 05:30:29 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A37B56B0085; Sun, 31 Mar 2024 05:30:29 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8FF286B0087; Sun, 31 Mar 2024 05:30:29 -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 73C376B0083 for ; Sun, 31 Mar 2024 05:30:29 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id CFC2D1C0C0B for ; Sun, 31 Mar 2024 09:30:28 +0000 (UTC) X-FDA: 81956813736.23.8FA0510 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by imf05.hostedemail.com (Postfix) with ESMTP id 9724A10000A for ; Sun, 31 Mar 2024 09:30:25 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=ixb0D9PS; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf05.hostedemail.com: domain of lkp@intel.com designates 198.175.65.10 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=1711877426; 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=RNBiWKcuyb+OwVrHQNZ+APRcfiC0VkcK4Haw2yd+UDQ=; b=vyTiJmLPudsZ1K8X85dd9VkW7B0Exfby8Kt5srx7nNJgVMSnfKwTdP1RVqwnjkfwDoEwdN M2C3WXpNXQ+j37JiBVvb9mhOGtzYoDPsbrocAwMXoGowhhP6FwYNcGliIplVBs75YSldUH mkUOM8Ahgas7i/a2c76OoLWrun/rKlw= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=ixb0D9PS; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf05.hostedemail.com: domain of lkp@intel.com designates 198.175.65.10 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1711877426; a=rsa-sha256; cv=none; b=i2JEff1Sot+gwCmf5xeAifOLQaVvrDXAjbSgvCmgEr5d0bb2W+U/XQqf/CQRRBuQAqhChz xe0llxMWQdGbiyvdu9LWH9dOkD1OMwjOyQeE57Sil8ZJW/mtfmAIsji3fs5FFtrlRCVA1B prYNnu98Q30FAMeBiDl59iQIV7F2K1U= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1711877426; x=1743413426; h=date:from:to:cc:subject:message-id:mime-version; bh=L7vWnNC9hHZ7ZLX4M85gGhLpVGzsvXvsNJusiL0gWJk=; b=ixb0D9PSFA69hO7jlBfs4uuGPP9MDpW5h+Wsz2fmLgDHuGrXhQWCJDqx 4367bTTH+JU/MQdP5RgG95wVydb6z6aMc6pR2vPcbbkO0FpSYDMyx4tfD n2vjJ81C7GEHXO1wFtyHX/KXp0tZJ5tnWSNgU1JxwuDLVjLWdEdNQdXmZ QCsxJYLkIs0LHC7Lyks6bOzpD1BH8PS6YNlYlUC9ISSGC9HjRfQBe664/ ZwQzgAWTSwlDIHuGraziR7ZG3qkRGQVGoIWVGxVwEfztMKCvqINpwpRNr rOcy6nwTBje+YyRYgGr/Uq6m/7d4PSlF7KpntRAItVXyGIO3FZYqZj2Vm Q==; X-CSE-ConnectionGUID: Kqw6Bk7JS5yQjDUo390V0Q== X-CSE-MsgGUID: bQFmaeY+QlOPoRdZp37nWg== X-IronPort-AV: E=McAfee;i="6600,9927,11029"; a="24472810" X-IronPort-AV: E=Sophos;i="6.07,169,1708416000"; d="scan'208";a="24472810" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Mar 2024 02:30:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,169,1708416000"; d="scan'208";a="17495666" Received: from lkp-server01.sh.intel.com (HELO 3d808bfd2502) ([10.239.97.150]) by fmviesa008.fm.intel.com with ESMTP; 31 Mar 2024 02:30:21 -0700 Received: from kbuild by 3d808bfd2502 with local (Exim 4.96) (envelope-from ) id 1rqrW7-0000z6-1j; Sun, 31 Mar 2024 09:30:19 +0000 Date: Sun, 31 Mar 2024 17:29:53 +0800 From: kernel test robot To: "Ho-Ren (Jack) Chuang" Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Andrew Morton , Linux Memory Management List , "Huang, Ying" Subject: [akpm-mm:mm-unstable 262/270] include/linux/memory-tiers.h:143:25: warning: no previous prototype for function 'mt_find_alloc_memory_type' Message-ID: <202403311754.pBuEzHw6-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 9724A10000A X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: nrrq8zgmox86yggx6h4ifjgu5gx9zqxs X-HE-Tag: 1711877425-568789 X-HE-Meta: U2FsdGVkX18vsm017dul9e8m0BHZEsekcehPAzWMb2T1qa+Lu9GQVoWTG+4AL5v9wVFyPLuqhPxIx0vTNaUMnQMqIr1fbGQaXcfHFQZh9rdOjRPWIn1+v62LmR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m1HlsE6HqEJn4BZg/BfNquBYIFHOCWxCswRRY/2Ey+xUgZNBAjCZx4YHe/2qAyNEBlRtZwhVYjiI3ZpEEBZvLwywrZzLtutM3t4nQznjcCVlP1B4K/tE12KU5TF8s+IjpifUwAl7lo 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: 0cef2c0a2a356137b170c3cb46cb9c1dd2ca3e6b commit: 57fc2afac84efdb0968e028382023a937bb4d6a0 [262/270] memory tier: dax/kmem: introduce an abstract layer for finding, allocating, and putting memory types config: x86_64-allnoconfig (https://download.01.org/0day-ci/archive/20240331/202403311754.pBuEzHw6-lkp@intel.com/config) compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240331/202403311754.pBuEzHw6-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/202403311754.pBuEzHw6-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from kernel/sched/fair.c:43: >> include/linux/memory-tiers.h:143:25: warning: no previous prototype for function 'mt_find_alloc_memory_type' [-Wmissing-prototypes] 143 | struct memory_dev_type *mt_find_alloc_memory_type(int adist, struct list_head *memory_types) | ^ include/linux/memory-tiers.h:143:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 143 | struct memory_dev_type *mt_find_alloc_memory_type(int adist, struct list_head *memory_types) | ^ | static >> include/linux/memory-tiers.h:148:6: warning: no previous prototype for function 'mt_put_memory_types' [-Wmissing-prototypes] 148 | void mt_put_memory_types(struct list_head *memory_types) | ^ include/linux/memory-tiers.h:148:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 148 | void mt_put_memory_types(struct list_head *memory_types) | ^ | static kernel/sched/fair.c:488:20: warning: unused function 'list_del_leaf_cfs_rq' [-Wunused-function] 488 | static inline void list_del_leaf_cfs_rq(struct cfs_rq *cfs_rq) | ^~~~~~~~~~~~~~~~~~~~ kernel/sched/fair.c:509:19: warning: unused function 'tg_is_idle' [-Wunused-function] 509 | static inline int tg_is_idle(struct task_group *tg) | ^~~~~~~~~~ kernel/sched/fair.c:533:19: warning: unused function 'max_vruntime' [-Wunused-function] 533 | static inline u64 max_vruntime(u64 max_vruntime, u64 vruntime) | ^~~~~~~~~~~~ kernel/sched/fair.c:1308:20: warning: unused function 'is_core_idle' [-Wunused-function] 1308 | static inline bool is_core_idle(int cpu) | ^~~~~~~~~~~~ kernel/sched/fair.c:3561:20: warning: unused function 'account_numa_enqueue' [-Wunused-function] 3561 | static inline void account_numa_enqueue(struct rq *rq, struct task_struct *p) | ^~~~~~~~~~~~~~~~~~~~ kernel/sched/fair.c:3565:20: warning: unused function 'account_numa_dequeue' [-Wunused-function] 3565 | static inline void account_numa_dequeue(struct rq *rq, struct task_struct *p) | ^~~~~~~~~~~~~~~~~~~~ kernel/sched/fair.c:3569:20: warning: unused function 'update_scan_period' [-Wunused-function] 3569 | static inline void update_scan_period(struct task_struct *p, int new_cpu) | ^~~~~~~~~~~~~~~~~~ kernel/sched/fair.c:5123:20: warning: unused function 'cfs_rq_is_decayed' [-Wunused-function] 5123 | static inline bool cfs_rq_is_decayed(struct cfs_rq *cfs_rq) | ^~~~~~~~~~~~~~~~~ kernel/sched/fair.c:5138:20: warning: unused function 'remove_entity_load_avg' [-Wunused-function] 5138 | static inline void remove_entity_load_avg(struct sched_entity *se) {} | ^~~~~~~~~~~~~~~~~~~~~~ kernel/sched/fair.c:6568:20: warning: unused function 'cfs_bandwidth_used' [-Wunused-function] 6568 | static inline bool cfs_bandwidth_used(void) | ^~~~~~~~~~~~~~~~~~ kernel/sched/fair.c:6576:20: warning: unused function 'sync_throttle' [-Wunused-function] 6576 | static inline void sync_throttle(struct task_group *tg, int cpu) {} | ^~~~~~~~~~~~~ kernel/sched/fair.c:6589:19: warning: unused function 'throttled_lb_pair' [-Wunused-function] 6589 | static inline int throttled_lb_pair(struct task_group *tg, | ^~~~~~~~~~~~~~~~~ kernel/sched/fair.c:6600:37: warning: unused function 'tg_cfs_bandwidth' [-Wunused-function] 6600 | static inline struct cfs_bandwidth *tg_cfs_bandwidth(struct task_group *tg) | ^~~~~~~~~~~~~~~~ kernel/sched/fair.c:6604:20: warning: unused function 'destroy_cfs_bandwidth' [-Wunused-function] 6604 | static inline void destroy_cfs_bandwidth(struct cfs_bandwidth *cfs_b) {} | ^~~~~~~~~~~~~~~~~~~~~ kernel/sched/fair.c:6605:20: warning: unused function 'update_runtime_enabled' [-Wunused-function] 6605 | static inline void update_runtime_enabled(struct rq *rq) {} | ^~~~~~~~~~~~~~~~~~~~~~ kernel/sched/fair.c:6606:20: warning: unused function 'unthrottle_offline_cfs_rqs' [-Wunused-function] 6606 | static inline void unthrottle_offline_cfs_rqs(struct rq *rq) {} | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 18 warnings generated. vim +/mt_find_alloc_memory_type +143 include/linux/memory-tiers.h 142 > 143 struct memory_dev_type *mt_find_alloc_memory_type(int adist, struct list_head *memory_types) 144 { 145 return NULL; 146 } 147 > 148 void mt_put_memory_types(struct list_head *memory_types) 149 { 150 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki