All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kernel@openeuler.org, Yang Yingliang <yangyingliang@huawei.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [openeuler:openEuler-1.0-LTS 1941/1941] drivers/base/node.c:77: warning: Function parameter or member 'hmem_attrs' not described in 'node_access_nodes'
Date: Sat, 13 Dec 2025 08:00:03 +0800	[thread overview]
Message-ID: <202512130735.vWIWdRUh-lkp@intel.com> (raw)

tree:   https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS
head:   df8d11fbcbb07177c2500e63d7f5a36063977596
commit: 82d6c2a64cfad2a43bc6f777df1a42f61865182b [1941/1941] Intel: node: Add heterogenous memory access attributes
config: x86_64-randconfig-103-20251212 (https://download.01.org/0day-ci/archive/20251213/202512130735.vWIWdRUh-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 1335a05ab8bc8339ce24be3a9da89d8c3f4e0571)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251213/202512130735.vWIWdRUh-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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512130735.vWIWdRUh-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from <built-in>:2:
   In file included from include/linux/compiler_types.h:59:
   include/linux/compiler-clang.h:20:9: warning: '__SANITIZE_ADDRESS__' macro redefined [-Wmacro-redefined]
      20 | #define __SANITIZE_ADDRESS__
         |         ^
   <built-in>:354:9: note: previous definition is here
     354 | #define __SANITIZE_ADDRESS__ 1
         |         ^
   1 warning generated.
>> drivers/base/node.c:77: warning: Function parameter or member 'hmem_attrs' not described in 'node_access_nodes'
   drivers/base/node.c:539: warning: Function parameter or member 'mem_nid' not described in 'register_memory_node_under_compute_node'
   drivers/base/node.c:539: warning: Function parameter or member 'cpu_nid' not described in 'register_memory_node_under_compute_node'
   drivers/base/node.c:539: warning: Excess function parameter 'mem_node' description in 'register_memory_node_under_compute_node'
   drivers/base/node.c:539: warning: Excess function parameter 'cpu_node' description in 'register_memory_node_under_compute_node'


vim +77 drivers/base/node.c

^1da177e4c3f41 Linus Torvalds 2005-04-16  62  
9e8e325cfd089c Keith Busch    2021-09-11  63  /**
9e8e325cfd089c Keith Busch    2021-09-11  64   * struct node_access_nodes - Access class device to hold user visible
9e8e325cfd089c Keith Busch    2021-09-11  65   * 			      relationships to other nodes.
9e8e325cfd089c Keith Busch    2021-09-11  66   * @dev:	Device for this memory access class
9e8e325cfd089c Keith Busch    2021-09-11  67   * @list_node:	List element in the node's access list
9e8e325cfd089c Keith Busch    2021-09-11  68   * @access:	The access class rank
9e8e325cfd089c Keith Busch    2021-09-11  69   */
9e8e325cfd089c Keith Busch    2021-09-11  70  struct node_access_nodes {
9e8e325cfd089c Keith Busch    2021-09-11  71  	struct device		dev;
9e8e325cfd089c Keith Busch    2021-09-11  72  	struct list_head	list_node;
9e8e325cfd089c Keith Busch    2021-09-11  73  	unsigned		access;
82d6c2a64cfad2 Keith Busch    2021-09-11  74  #ifdef CONFIG_HMEM_REPORTING
82d6c2a64cfad2 Keith Busch    2021-09-11  75  	struct node_hmem_attrs	hmem_attrs;
82d6c2a64cfad2 Keith Busch    2021-09-11  76  #endif
9e8e325cfd089c Keith Busch    2021-09-11 @77  };
9e8e325cfd089c Keith Busch    2021-09-11  78  #define to_access_nodes(dev) container_of(dev, struct node_access_nodes, dev)
9e8e325cfd089c Keith Busch    2021-09-11  79  

:::::: The code at line 77 was first introduced by commit
:::::: 9e8e325cfd089c66c9a2f570f99021a62bf0ae09 node: Link memory nodes to their compute nodes

:::::: TO: Keith Busch <keith.busch@intel.com>
:::::: CC: Yang Yingliang <yangyingliang@huawei.com>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2025-12-13  0:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202512130735.vWIWdRUh-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kernel@openeuler.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=yangyingliang@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.