Subject: Re: mmotm 2021-03-11-21-46 uploaded (mm/shmem.c)

From: Randy Dunlap <[email-masked]>
Date: Fri, 12 Mar 2021 09:14:45 -0800

On 3/11/21 9:47 PM, [email-masked] wrote:
> The mm-of-the-moment snapshot 2021-03-11-21-46 has been uploaded to
> 
>    https://www.ozlabs.org/~akpm/mmotm/
> 
> mmotm-readme.txt says
> 
> README for mm-of-the-moment:
> 
> https://www.ozlabs.org/~akpm/mmotm/
> 
> This is a snapshot of my -mm patch queue.  Uploaded at random hopefully
> more than once a week.
> 
> You will need quilt to apply these patches to the latest Linus release (5.x
> or 5.x-rcY).  The series file is in broken-out.tar.gz and is duplicated in
> https://ozlabs.org/~akpm/mmotm/series
> 
> The file broken-out.tar.gz contains two datestamp files: .DATE and
> .DATE-yyyy-mm-dd-hh-mm-ss.  Both contain the string yyyy-mm-dd-hh-mm-ss,
> followed by the base kernel version against which this patch series is to
> be applied.
> 

on x86_64 or i386 or uml (arch/um/):

../mm/shmem.c:2365:12: warning: ‘enum mcopy_atomic_mode’ declared inside parameter list will not be visible outside of this definition or declaration
       enum mcopy_atomic_mode mode, struct page **pagep)
            ^~~~~~~~~~~~~~~~~
../mm/shmem.c:2365:30: error: parameter 6 (‘mode’) has incomplete type
       enum mcopy_atomic_mode mode, struct page **pagep)
                              ^~~~
../mm/shmem.c:2362:5: error: function declaration isn’t a prototype [-Werror=strict-prototypes]
 int shmem_mcopy_atomic_pte(struct mm_struct *dst_mm, pmd_t *dst_pmd,
     ^~~~~~~~~~~~~~~~~~~~~~
  CC      arch/x86/kernel/cpu/mtrr/generic.o
../mm/shmem.c: In function ‘shmem_mcopy_atomic_pte’:
../mm/shmem.c:2367:30: error: ‘MCOPY_ATOMIC_CONTINUE’ undeclared (first use in this function); did you mean ‘__ATOMIC_CONSUME’?
  bool is_continue = (mode == MCOPY_ATOMIC_CONTINUE);
                              ^~~~~~~~~~~~~~~~~~~~~
                              __ATOMIC_CONSUME
../mm/shmem.c:2367:30: note: each undeclared identifier is reported only once for each function it appears in
  CC      arch/x86/crypto/twofish_glue_3way.o
../mm/shmem.c:2394:15: error: ‘MCOPY_ATOMIC_NORMAL’ undeclared (first use in this function); did you mean ‘MCOPY_ATOMIC_CONTINUE’?
   if (mode == MCOPY_ATOMIC_NORMAL) { /* mcopy_atomic */
               ^~~~~~~~~~~~~~~~~~~
               MCOPY_ATOMIC_CONTINUE

Full randconfig file is attached.

-- 
~Randy
Reported-by: Randy Dunlap <[email-masked]>