public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [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'?
@ 2026-01-30  8:54 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-01-30  8:54 UTC (permalink / raw)
  To: Gregory Price; +Cc: llvm, oe-kbuild-all

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-01-30  8:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-30  8:54 [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'? kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox