All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Ruidong Tian <tianruidong@linux.alibaba.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [RFC PATCH] device/dax: Allow MCE recovery when accessing PFN metadata
Date: Wed, 31 Dec 2025 00:39:42 +0100	[thread overview]
Message-ID: <202512310049.R86iwUtl-lkp@intel.com> (raw)
In-Reply-To: <20251230075951.85252-1-tianruidong@linux.alibaba.com>

Hi Ruidong,

[This is a private test report for your RFC patch.]
kernel test robot noticed the following build errors:

[auto build test ERROR on cxl/next]
[also build test ERROR on linus/master v6.19-rc3 next-20251219]
[cannot apply to cxl/pending]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Ruidong-Tian/device-dax-Allow-MCE-recovery-when-accessing-PFN-metadata/20251230-160432
base:   https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git next
patch link:    https://lore.kernel.org/r/20251230075951.85252-1-tianruidong%40linux.alibaba.com
patch subject: [RFC PATCH] device/dax: Allow MCE recovery when accessing PFN metadata
config: x86_64-rhel-9.4-kunit (https://download.01.org/0day-ci/archive/20251231/202512310049.R86iwUtl-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251231/202512310049.R86iwUtl-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/202512310049.R86iwUtl-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from drivers/dax/super.c:16:
>> drivers/dax/dax-private.h:158:2: error: #endif without #if
     158 | #endif
         |  ^~~~~
--
   In file included from drivers/dax/device.c:13:
>> drivers/dax/dax-private.h:158:2: error: #endif without #if
     158 | #endif
         |  ^~~~~
   In file included from include/linux/mmzone.h:23,
                    from include/linux/memremap.h:5,
                    from drivers/dax/device.c:3:
   drivers/dax/device.c: In function 'dax_set_mapping':
>> include/linux/page-flags.h:308:33: error: passing argument 1 of 'dax_test_page_mc' from incompatible pointer type [-Wincompatible-pointer-types]
     306 | #define page_folio(p)           (_Generic((p),                          \
         |                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     307 |         const struct page *:    (const struct folio *)_compound_head(p), \
         |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     308 |         struct page *:          (struct folio *)_compound_head(p)))
         |         ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                                 |
         |                                 struct folio *
   drivers/dax/device.c:93:61: note: in expansion of macro 'page_folio'
      93 |                 if (dax_test_page_mc(p) || dax_test_page_mc(page_folio(p)))
         |                                                             ^~~~~~~~~~
   drivers/dax/dax-private.h:144:55: note: expected 'const struct page *' but argument is of type 'struct folio *'
     144 | static inline int dax_test_page_mc(const struct page *page)
         |                                    ~~~~~~~~~~~~~~~~~~~^~~~
--
   In file included from device.c:13:
   dax-private.h:158:2: error: #endif without #if
     158 | #endif
         |  ^~~~~
   In file included from include/linux/mmzone.h:23,
                    from include/linux/memremap.h:5,
                    from device.c:3:
   device.c: In function 'dax_set_mapping':
>> include/linux/page-flags.h:308:33: error: passing argument 1 of 'dax_test_page_mc' from incompatible pointer type [-Wincompatible-pointer-types]
     306 | #define page_folio(p)           (_Generic((p),                          \
         |                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     307 |         const struct page *:    (const struct folio *)_compound_head(p), \
         |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     308 |         struct page *:          (struct folio *)_compound_head(p)))
         |         ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                                 |
         |                                 struct folio *
   device.c:93:61: note: in expansion of macro 'page_folio'
      93 |                 if (dax_test_page_mc(p) || dax_test_page_mc(page_folio(p)))
         |                                                             ^~~~~~~~~~
   dax-private.h:144:55: note: expected 'const struct page *' but argument is of type 'struct folio *'
     144 | static inline int dax_test_page_mc(const struct page *page)
         |                                    ~~~~~~~~~~~~~~~~~~~^~~~


vim +158 drivers/dax/dax-private.h

b2485f92a36cf3 Ruidong Tian 2025-12-30  132  
b2485f92a36cf3 Ruidong Tian 2025-12-30  133  #ifndef copy_mc_to_kernel
b2485f92a36cf3 Ruidong Tian 2025-12-30  134  static inline int dax_test_page_mc(const struct page *page)
b2485f92a36cf3 Ruidong Tian 2025-12-30  135  {
b2485f92a36cf3 Ruidong Tian 2025-12-30  136  	return 0;
b2485f92a36cf3 Ruidong Tian 2025-12-30  137  }
b2485f92a36cf3 Ruidong Tian 2025-12-30  138  static inline int dax_test_folio_mc(const struct folio *page)
b2485f92a36cf3 Ruidong Tian 2025-12-30  139  {
b2485f92a36cf3 Ruidong Tian 2025-12-30  140  	return 0;
b2485f92a36cf3 Ruidong Tian 2025-12-30  141  }
b2485f92a36cf3 Ruidong Tian 2025-12-30  142  #else
b2485f92a36cf3 Ruidong Tian 2025-12-30  143  #include <linux/uaccess.h>
b2485f92a36cf3 Ruidong Tian 2025-12-30  144  static inline int dax_test_page_mc(const struct page *page)
b2485f92a36cf3 Ruidong Tian 2025-12-30  145  {
b2485f92a36cf3 Ruidong Tian 2025-12-30  146  	struct page _p;
b2485f92a36cf3 Ruidong Tian 2025-12-30  147  
b2485f92a36cf3 Ruidong Tian 2025-12-30  148  	return copy_mc_to_kernel(&_p, page, sizeof(struct page));
b2485f92a36cf3 Ruidong Tian 2025-12-30  149  }
b2485f92a36cf3 Ruidong Tian 2025-12-30  150  static inline int dax_test_folio_mc(const struct folio *folio)
b2485f92a36cf3 Ruidong Tian 2025-12-30  151  {
b2485f92a36cf3 Ruidong Tian 2025-12-30  152  	struct folio _f;
b2485f92a36cf3 Ruidong Tian 2025-12-30  153  
b2485f92a36cf3 Ruidong Tian 2025-12-30  154  	return copy_mc_to_kernel(&_f, folio, sizeof(struct folio));
b2485f92a36cf3 Ruidong Tian 2025-12-30  155  }
b2485f92a36cf3 Ruidong Tian 2025-12-30  156  #endif
b2485f92a36cf3 Ruidong Tian 2025-12-30  157  #endif
efebc711180f7f Dave Jiang   2017-04-07 @158  #endif

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

      reply	other threads:[~2025-12-30 23:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-30  7:59 [RFC PATCH] device/dax: Allow MCE recovery when accessing PFN metadata Ruidong Tian
2025-12-30 23:39 ` kernel test robot [this message]

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=202512310049.R86iwUtl-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=tianruidong@linux.alibaba.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.