Linux NFS development
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Chuck Lever <cel@kernel.org>, NeilBrown <neilb@ownmail.net>,
	Jeff Layton <jlayton@kernel.org>,
	Olga Kornievskaia <okorniev@redhat.com>,
	Dai Ngo <dai.ngo@oracle.com>, Tom Talpey <tom@talpey.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-nfs@vger.kernel.org,
	Chuck Lever <chuck.lever@oracle.com>
Subject: Re: [PATCH v4 11/14] lockd: Move xdr.h from include/linux/lockd/ to fs/lockd/
Date: Thu, 29 Jan 2026 15:06:38 +0800	[thread overview]
Message-ID: <202601291442.Ys0V3xFD-lkp@intel.com> (raw)
In-Reply-To: <20260128151935.1646063-12-cel@kernel.org>

Hi Chuck,

kernel test robot noticed the following build errors:

[auto build test ERROR on trondmy-nfs/linux-next]
[also build test ERROR on brauner-vfs/vfs.all linus/master v6.19-rc7 next-20260128]
[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/Chuck-Lever/lockd-Simplify-cast_status-in-svcproc-c/20260128-232322
base:   git://git.linux-nfs.org/projects/trondmy/linux-nfs.git linux-next
patch link:    https://lore.kernel.org/r/20260128151935.1646063-12-cel%40kernel.org
patch subject: [PATCH v4 11/14] lockd: Move xdr.h from include/linux/lockd/ to fs/lockd/
config: arm-randconfig-r112-20260129 (https://download.01.org/0day-ci/archive/20260129/202601291442.Ys0V3xFD-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 12.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260129/202601291442.Ys0V3xFD-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/202601291442.Ys0V3xFD-lkp@intel.com/

All errors (new ones prefixed by >>):

   fs/nfs/proc.c: In function 'nfs_lock_check_bounds':
>> fs/nfs/proc.c:677:26: error: invalid use of undefined type 'const struct file_lock'
     677 |         start = (__s32)fl->fl_start;
         |                          ^~
   fs/nfs/proc.c:678:32: error: invalid use of undefined type 'const struct file_lock'
     678 |         if ((loff_t)start != fl->fl_start)
         |                                ^~
   fs/nfs/proc.c:681:15: error: invalid use of undefined type 'const struct file_lock'
     681 |         if (fl->fl_end != OFFSET_MAX) {
         |               ^~
   fs/nfs/proc.c:682:32: error: invalid use of undefined type 'const struct file_lock'
     682 |                 end = (__s32)fl->fl_end;
         |                                ^~
   fs/nfs/proc.c:683:38: error: invalid use of undefined type 'const struct file_lock'
     683 |                 if ((loff_t)end != fl->fl_end)
         |                                      ^~


vim +677 fs/nfs/proc.c

^1da177e4c3f41 Linus Torvalds  2005-04-16  670  
2116271a347d11 Trond Myklebust 2008-05-20  671  /* Helper functions for NFS lock bounds checking */
2116271a347d11 Trond Myklebust 2008-05-20  672  #define NFS_LOCK32_OFFSET_MAX ((__s32)0x7fffffffUL)
2116271a347d11 Trond Myklebust 2008-05-20  673  static int nfs_lock_check_bounds(const struct file_lock *fl)
2116271a347d11 Trond Myklebust 2008-05-20  674  {
2116271a347d11 Trond Myklebust 2008-05-20  675  	__s32 start, end;
2116271a347d11 Trond Myklebust 2008-05-20  676  
2116271a347d11 Trond Myklebust 2008-05-20 @677  	start = (__s32)fl->fl_start;
2116271a347d11 Trond Myklebust 2008-05-20  678  	if ((loff_t)start != fl->fl_start)
2116271a347d11 Trond Myklebust 2008-05-20  679  		goto out_einval;
2116271a347d11 Trond Myklebust 2008-05-20  680  
2116271a347d11 Trond Myklebust 2008-05-20  681  	if (fl->fl_end != OFFSET_MAX) {
2116271a347d11 Trond Myklebust 2008-05-20  682  		end = (__s32)fl->fl_end;
2116271a347d11 Trond Myklebust 2008-05-20  683  		if ((loff_t)end != fl->fl_end)
2116271a347d11 Trond Myklebust 2008-05-20  684  			goto out_einval;
2116271a347d11 Trond Myklebust 2008-05-20  685  	} else
2116271a347d11 Trond Myklebust 2008-05-20  686  		end = NFS_LOCK32_OFFSET_MAX;
2116271a347d11 Trond Myklebust 2008-05-20  687  
2116271a347d11 Trond Myklebust 2008-05-20  688  	if (start < 0 || start > end)
2116271a347d11 Trond Myklebust 2008-05-20  689  		goto out_einval;
2116271a347d11 Trond Myklebust 2008-05-20  690  	return 0;
2116271a347d11 Trond Myklebust 2008-05-20  691  out_einval:
2116271a347d11 Trond Myklebust 2008-05-20  692  	return -EINVAL;
2116271a347d11 Trond Myklebust 2008-05-20  693  }
^1da177e4c3f41 Linus Torvalds  2005-04-16  694  

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

  reply	other threads:[~2026-01-29  7:07 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-28 15:19 [PATCH v4 00/14] Subject: Clarify module API boundaries Chuck Lever
2026-01-28 15:19 ` [PATCH v4 01/14] lockd: Simplify cast_status() in svcproc.c Chuck Lever
2026-01-28 15:19 ` [PATCH v4 02/14] lockd: Relocate and rename nlm_drop_reply Chuck Lever
2026-01-28 15:19 ` [PATCH v4 03/14] lockd: Introduce nlm__int__deadlock Chuck Lever
2026-01-28 15:19 ` [PATCH v4 04/14] lockd: Have nlm_fopen() return errno values Chuck Lever
2026-01-28 15:19 ` [PATCH v4 05/14] lockd: Relocate nlmsvc_unlock API declarations Chuck Lever
2026-01-28 15:19 ` [PATCH v4 06/14] NFS: Use nlmclnt_shutdown_rpc_clnt() to safely shut down NLM Chuck Lever
2026-01-28 15:19 ` [PATCH v4 07/14] lockd: Move xdr4.h from include/linux/lockd/ to fs/lockd/ Chuck Lever
2026-01-28 15:19 ` [PATCH v4 08/14] lockd: Move share.h " Chuck Lever
2026-01-28 15:19 ` [PATCH v4 09/14] lockd: Relocate include/linux/lockd/lockd.h Chuck Lever
2026-01-28 15:19 ` [PATCH v4 10/14] lockd: Remove lockd/debug.h Chuck Lever
2026-01-28 15:19 ` [PATCH v4 11/14] lockd: Move xdr.h from include/linux/lockd/ to fs/lockd/ Chuck Lever
2026-01-29  7:06   ` kernel test robot [this message]
2026-01-28 15:19 ` [PATCH v4 12/14] lockd: Make linux/lockd/nlm.h an internal header Chuck Lever
2026-01-28 15:19 ` [PATCH v4 13/14] lockd: Move nlm4svc_set_file_lock_range() Chuck Lever
2026-01-28 15:19 ` [PATCH v4 14/14] lockd: Relocate svc_version definitions to XDR layer Chuck Lever

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=202601291442.Ys0V3xFD-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=cel@kernel.org \
    --cc=chuck.lever@oracle.com \
    --cc=dai.ngo@oracle.com \
    --cc=jlayton@kernel.org \
    --cc=linux-nfs@vger.kernel.org \
    --cc=neilb@ownmail.net \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=okorniev@redhat.com \
    --cc=tom@talpey.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox