Hi Thierry,

kernel test robot noticed the following build errors:

[auto build test ERROR on next-20250902]
[also build test ERROR on v6.17-rc4]
[cannot apply to robh/for-next akpm-mm/mm-everything tegra/for-next 
linus/master v6.17-rc4 v6.17-rc3 v6.17-rc2]
[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/Thierry-Reding/dt-bindings-reserved-memory-Document-Tegra-VPR/20250902-235038
base:   next-20250902
patch link:    
https://lore.kernel.org/r/20250902154630.4032984-6-thierry.reding%40gmail.com
patch subject: [PATCH 5/9] dma-buf: heaps: Add support for Tegra VPR
config: s390-allmodconfig 
(https://download.01.org/0day-ci/archive/20250905/202509051316.hlzf9haw-...@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 
3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20250905/202509051316.hlzf9haw-...@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 <l...@intel.com>
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202509051316.hlzf9haw-...@intel.com/

All errors (new ones prefixed by >>):

>> drivers/dma-buf/heaps/tegra-vpr.c:158:26: error: called object type 'void *' 
>> is not a function or function pointer
     158 |                 err = pm_generic_freeze(node->dev);
         |                       ~~~~~~~~~~~~~~~~~^
   drivers/dma-buf/heaps/tegra-vpr.c:175:24: error: called object type 'void *' 
is not a function or function pointer
     175 |                 err = pm_generic_thaw(node->dev);
         |                       ~~~~~~~~~~~~~~~^
   drivers/dma-buf/heaps/tegra-vpr.c:192:14: error: call to undeclared function 
'__ptep_get'; ISO C99 and later do not support implicit function declarations 
[-Wimplicit-function-declaration]
     192 |         pte_t pte = __ptep_get(ptep);
         |                     ^
   drivers/dma-buf/heaps/tegra-vpr.c:192:14: note: did you mean 'ptep_get'?
   include/linux/pgtable.h:338:21: note: 'ptep_get' declared here
     338 | static inline pte_t ptep_get(pte_t *ptep)
         |                     ^
   drivers/dma-buf/heaps/tegra-vpr.c:192:8: error: initializing 'pte_t' with an 
expression of incompatible type 'int'
     192 |         pte_t pte = __ptep_get(ptep);
         |               ^     ~~~~~~~~~~~~~~~~
   drivers/dma-buf/heaps/tegra-vpr.c:194:36: error: use of undeclared 
identifier 'PROT_NORMAL'; did you mean 'ZONE_NORMAL'?
     194 |         pte = clear_pte_bit(pte, __pgprot(PROT_NORMAL));
         |                                           ^~~~~~~~~~~
         |                                           ZONE_NORMAL
   arch/s390/include/asm/page.h:122:36: note: expanded from macro '__pgprot'
     122 | #define __pgprot(x)     ((pgprot_t) { (x) } )
         |                                        ^
   include/linux/mmzone.h:806:2: note: 'ZONE_NORMAL' declared here
     806 |         ZONE_NORMAL,
         |         ^
   drivers/dma-buf/heaps/tegra-vpr.c:195:34: error: use of undeclared 
identifier 'PROT_DEVICE_nGnRnE'
     195 |         pte = set_pte_bit(pte, __pgprot(PROT_DEVICE_nGnRnE));
         |                                         ^
   drivers/dma-buf/heaps/tegra-vpr.c:197:2: error: call to undeclared function 
'__set_pte'; ISO C99 and later do not support implicit function declarations 
[-Wimplicit-function-declaration]
     197 |         __set_pte(ptep, pte);
         |         ^
   drivers/dma-buf/heaps/tegra-vpr.c:197:2: note: did you mean 'set_pte'?
   arch/s390/include/asm/pgtable.h:1041:20: note: 'set_pte' declared here
    1041 | static inline void set_pte(pte_t *ptep, pte_t pte)
         |                    ^
   drivers/dma-buf/heaps/tegra-vpr.c:205:14: error: call to undeclared function 
'__ptep_get'; ISO C99 and later do not support implicit function declarations 
[-Wimplicit-function-declaration]
     205 |         pte_t pte = __ptep_get(ptep);
         |                     ^
   drivers/dma-buf/heaps/tegra-vpr.c:205:8: error: initializing 'pte_t' with an 
expression of incompatible type 'int'
     205 |         pte_t pte = __ptep_get(ptep);
         |               ^     ~~~~~~~~~~~~~~~~
   drivers/dma-buf/heaps/tegra-vpr.c:207:36: error: use of undeclared 
identifier 'PROT_DEVICE_nGnRnE'
     207 |         pte = clear_pte_bit(pte, __pgprot(PROT_DEVICE_nGnRnE));
         |                                           ^
   drivers/dma-buf/heaps/tegra-vpr.c:208:34: error: use of undeclared 
identifier 'PROT_NORMAL'; did you mean 'ZONE_NORMAL'?
     208 |         pte = set_pte_bit(pte, __pgprot(PROT_NORMAL));
         |                                         ^~~~~~~~~~~
         |                                         ZONE_NORMAL
   arch/s390/include/asm/page.h:122:36: note: expanded from macro '__pgprot'
     122 | #define __pgprot(x)     ((pgprot_t) { (x) } )
         |                                        ^
   include/linux/mmzone.h:806:2: note: 'ZONE_NORMAL' declared here
     806 |         ZONE_NORMAL,
         |         ^
   drivers/dma-buf/heaps/tegra-vpr.c:210:2: error: call to undeclared function 
'__set_pte'; ISO C99 and later do not support implicit function declarations 
[-Wimplicit-function-declaration]
     210 |         __set_pte(ptep, pte);
         |         ^
   12 errors generated.


vim +158 drivers/dma-buf/heaps/tegra-vpr.c

   135  
   136  static int tegra_vpr_resize(struct tegra_vpr *vpr)
   137  {
   138          struct tegra_vpr_device *node;
   139          phys_addr_t base, size;
   140          int err;
   141  
   142          err = tegra_vpr_get_extents(vpr, &base, &size);
   143          if (err < 0) {
   144                  pr_err("%s(): failed to get VPR extents: %d\n", 
__func__, err);
   145                  return err;
   146          }
   147  
   148          if (vpr->use_freezer) {
   149                  err = freeze_processes();
   150                  if (err < 0) {
   151                          pr_err("%s(): failed to freeze processes: %d\n",
   152                                 __func__, err);
   153                          return err;
   154                  }
   155          }
   156  
   157          list_for_each_entry(node, &vpr->devices, node) {
 > 158                  err = pm_generic_freeze(node->dev);
   159                  if (err < 0) {
   160                          pr_err("failed to runtime suspend %s\n",
   161                                 dev_name(node->dev));
   162                          continue;
   163                  }
   164          }
   165  
   166          trace_tegra_vpr_set(base, size);
   167  
   168          err = tegra_vpr_set(base, size);
   169          if (err < 0) {
   170                  pr_err("failed to secure VPR: %d\n", err);
   171                  return err;
   172          }
   173  
   174          list_for_each_entry(node, &vpr->devices, node) {
   175                  err = pm_generic_thaw(node->dev);
   176                  if (err < 0) {
   177                          pr_err("failed to runtime resume %s\n",
   178                                 dev_name(node->dev));
   179                          continue;
   180                  }
   181          }
   182  
   183          if (vpr->use_freezer)
   184                  thaw_processes();
   185  
   186          return 0;
   187  }
   188  

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

Reply via email to