All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Kees Cook <keescook@chromium.org>
Cc: oe-kbuild-all@lists.linux.dev, Steve French <stfrench@microsoft.com>
Subject: [samba-ksmbd:for-next 340/600] fs/cifs/readdir.c:554:25: error: 'FILE_UNIX_INFO' has no member named 'FileName'
Date: Mon, 10 Jun 2024 04:22:39 +0800	[thread overview]
Message-ID: <202406100453.iSCVlAIk-lkp@intel.com> (raw)

tree:   git://git.samba.org/ksmbd.git for-next
head:   3fe4ba20003290acf0547625cccc34db928d156e
commit: 57058257ea5c99c77c015cb17a3f97d8f6a4cf9f [340/600] cifs: Replace remaining 1-element arrays
config: parisc-defconfig (https://download.01.org/0day-ci/archive/20240610/202406100453.iSCVlAIk-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240610/202406100453.iSCVlAIk-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/202406100453.iSCVlAIk-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from fs/cifs/readdir.c:15:
   fs/cifs/cifspdu.h:512:17: error: expected specifier-qualifier-list before 'DECLARE_FLEX_ARRAY'
     512 |                 DECLARE_FLEX_ARRAY(unsigned char, EncryptionKey);
         |                 ^~~~~~~~~~~~~~~~~~
   fs/cifs/cifspdu.h:2289:17: error: expected specifier-qualifier-list before 'DECLARE_FLEX_ARRAY'
    2289 |                 DECLARE_FLEX_ARRAY(char, FileName);
         |                 ^~~~~~~~~~~~~~~~~~
   fs/cifs/cifspdu.h:2328:9: error: expected specifier-qualifier-list before 'DECLARE_FLEX_ARRAY'
    2328 |         DECLARE_FLEX_ARRAY(char, LinkDest);
         |         ^~~~~~~~~~~~~~~~~~
   fs/cifs/cifspdu.h:2377:9: error: expected specifier-qualifier-list before 'DECLARE_FLEX_ARRAY'
    2377 |         DECLARE_FLEX_ARRAY(__u8, alt_name);
         |         ^~~~~~~~~~~~~~~~~~
   fs/cifs/cifspdu.h:2488:17: error: expected specifier-qualifier-list before 'DECLARE_FLEX_ARRAY'
    2488 |                 DECLARE_FLEX_ARRAY(char, FileName);
         |                 ^~~~~~~~~~~~~~~~~~
   fs/cifs/readdir.c: In function 'cifs_fill_dirent_unix':
>> fs/cifs/readdir.c:554:25: error: 'FILE_UNIX_INFO' has no member named 'FileName'
     554 |         de->name = &info->FileName[0];
         |                         ^~


vim +554 fs/cifs/readdir.c

3d519bd1269f1f Aurelien Aptel    2020-02-08  550  
cda0ec6a86f181 Christoph Hellwig 2011-07-16  551  static void cifs_fill_dirent_unix(struct cifs_dirent *de,
cda0ec6a86f181 Christoph Hellwig 2011-07-16  552  		const FILE_UNIX_INFO *info, bool is_unicode)
cda0ec6a86f181 Christoph Hellwig 2011-07-16  553  {
cda0ec6a86f181 Christoph Hellwig 2011-07-16 @554  	de->name = &info->FileName[0];
cda0ec6a86f181 Christoph Hellwig 2011-07-16  555  	if (is_unicode)
cda0ec6a86f181 Christoph Hellwig 2011-07-16  556  		de->namelen = cifs_unicode_bytelen(de->name);
cda0ec6a86f181 Christoph Hellwig 2011-07-16  557  	else
cda0ec6a86f181 Christoph Hellwig 2011-07-16  558  		de->namelen = strnlen(de->name, PATH_MAX);
cda0ec6a86f181 Christoph Hellwig 2011-07-16  559  	de->resume_key = info->ResumeKey;
cda0ec6a86f181 Christoph Hellwig 2011-07-16  560  	de->ino = le64_to_cpu(info->basic.UniqueId);
cda0ec6a86f181 Christoph Hellwig 2011-07-16  561  }
cda0ec6a86f181 Christoph Hellwig 2011-07-16  562  

:::::: The code at line 554 was first introduced by commit
:::::: cda0ec6a86f18127d490048a46de954c03886d5e cifs: introduce cifs_dirent

:::::: TO: Christoph Hellwig <hch@infradead.org>
:::::: CC: Steve French <sfrench@us.ibm.com>

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

                 reply	other threads:[~2024-06-09 20:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202406100453.iSCVlAIk-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=keescook@chromium.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=stfrench@microsoft.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.