From: kernel test robot <lkp@intel.com>
To: Gregory Price <gourry@gourry.net>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [gourryinverse:scratch/gourry/cxl/region_rework_v3 8/9] drivers/cxl/core/sysram_region.c:31:7: error: use of undeclared identifier 'MMOP_OFFLINE'; did you mean 'KOBJ_OFFLINE'?
Date: Fri, 30 Jan 2026 16:54:40 +0800 [thread overview]
Message-ID: <202601301640.RCXOteOZ-lkp@intel.com> (raw)
tree: https://github.com/gourryinverse/linux scratch/gourry/cxl/region_rework_v3
head: ef956221cc52b1c29b05280fcec99686d744d6b4
commit: f01228503f96ed593825ba00ad03dfa5cd01041f [8/9] cxl/core: Add dax_kmem_region and sysram_region drivers
config: i386-buildonly-randconfig-003-20260130 (https://download.01.org/0day-ci/archive/20260130/202601301640.RCXOteOZ-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260130/202601301640.RCXOteOZ-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/202601301640.RCXOteOZ-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/cxl/core/sysram_region.c:31:7: error: use of undeclared identifier 'MMOP_OFFLINE'; did you mean 'KOBJ_OFFLINE'?
31 | case MMOP_OFFLINE:
| ^~~~~~~~~~~~
| KOBJ_OFFLINE
include/linux/kobject.h:59:2: note: 'KOBJ_OFFLINE' declared here
59 | KOBJ_OFFLINE,
| ^
>> drivers/cxl/core/sysram_region.c:33:7: error: use of undeclared identifier 'MMOP_ONLINE'
33 | case MMOP_ONLINE:
| ^
>> drivers/cxl/core/sysram_region.c:35:7: error: use of undeclared identifier 'MMOP_ONLINE_MOVABLE'
35 | case MMOP_ONLINE_MOVABLE:
| ^
drivers/cxl/core/sysram_region.c:49:30: error: use of undeclared identifier 'MMOP_OFFLINE'; did you mean 'KOBJ_OFFLINE'?
49 | cxlr_sysram->online_type = MMOP_OFFLINE;
| ^~~~~~~~~~~~
| KOBJ_OFFLINE
include/linux/kobject.h:59:2: note: 'KOBJ_OFFLINE' declared here
59 | KOBJ_OFFLINE,
| ^
drivers/cxl/core/sysram_region.c:51:30: error: use of undeclared identifier 'MMOP_ONLINE'
51 | cxlr_sysram->online_type = MMOP_ONLINE;
| ^
drivers/cxl/core/sysram_region.c:53:30: error: use of undeclared identifier 'MMOP_ONLINE_MOVABLE'
53 | cxlr_sysram->online_type = MMOP_ONLINE_MOVABLE;
| ^
6 errors generated.
vim +31 drivers/cxl/core/sysram_region.c
24
25 static ssize_t online_type_show(struct device *dev,
26 struct device_attribute *attr, char *buf)
27 {
28 struct cxl_sysram_region *cxlr_sysram = to_cxl_sysram_region(dev);
29
30 switch (cxlr_sysram->online_type) {
> 31 case MMOP_OFFLINE:
32 return sysfs_emit(buf, "offline\n");
> 33 case MMOP_ONLINE:
34 return sysfs_emit(buf, "online\n");
> 35 case MMOP_ONLINE_MOVABLE:
36 return sysfs_emit(buf, "online_movable\n");
37 default:
38 return sysfs_emit(buf, "invalid\n");
39 }
40 }
41
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-01-30 8:54 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=202601301640.RCXOteOZ-lkp@intel.com \
--to=lkp@intel.com \
--cc=gourry@gourry.net \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox