All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Christian Brauner <brauner@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	Christian Brauner <christianvanbrauner@gmail.com>
Subject: [brauner-vfs:work.pidfs.setns 8/9] fs/pidfs.c:38:8: error: assigning to 'struct path' from incompatible type 'void (struct path *)'
Date: Tue, 1 Jul 2025 00:16:56 +0200	[thread overview]
Message-ID: <202507010037.c3Ung7vs-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git work.pidfs.setns
head:   80432e84dc3a17336efd11282d8c5db368ed827b
commit: f7b88122fa711d730ad163427e8da56adee73e33 [8/9] fhandle, pidfs: support open_by_handle_at() purely based on file handle
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20250701/202507010037.c3Ung7vs-lkp@intel.com/config)
compiler: clang version 20.1.7 (https://github.com/llvm/llvm-project 6146a88f60492b520a36f8f8f3231e15f3cc6082)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250701/202507010037.c3Ung7vs-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/202507010037.c3Ung7vs-lkp@intel.com/

All errors (new ones prefixed by >>):

   fs/pidfs.c:34:20: error: redefinition of 'pidfs_root_path' as different kind of symbol
      34 | static struct path pidfs_root_path = {};
         |                    ^
   fs/internal.h:356:6: note: previous definition is here
     356 | void pidfs_root_path(struct path *path);
         |      ^
>> fs/pidfs.c:38:8: error: assigning to 'struct path' from incompatible type 'void (struct path *)'
      38 |         *path = pidfs_root_path;
         |               ^ ~~~~~~~~~~~~~~~
>> fs/pidfs.c:1077:17: error: member reference base type 'void (struct path *)' is not a structure or union
    1077 |         pidfs_root_path.mnt = pidfs_mnt;
         |         ~~~~~~~~~~~~~~~^~~~
   fs/pidfs.c:1078:17: error: member reference base type 'void (struct path *)' is not a structure or union
    1078 |         pidfs_root_path.dentry = pidfs_mnt->mnt_root;
         |         ~~~~~~~~~~~~~~~^~~~~~~
   4 errors generated.


vim +38 fs/pidfs.c

90c48e2619324e Christian Brauner 2025-06-19  35  
90c48e2619324e Christian Brauner 2025-06-19  36  void pidfs_root_path(struct path *path)
90c48e2619324e Christian Brauner 2025-06-19  37  {
90c48e2619324e Christian Brauner 2025-06-19 @38  	*path = pidfs_root_path;
90c48e2619324e Christian Brauner 2025-06-19  39  	path_get(path);
90c48e2619324e Christian Brauner 2025-06-19  40  }
90c48e2619324e Christian Brauner 2025-06-19  41  

:::::: The code at line 38 was first introduced by commit
:::::: 90c48e2619324e40223af34ff8aed6480b9d19c1 pidfs: add pidfs_root_path() helper

:::::: TO: Christian Brauner <brauner@kernel.org>
:::::: CC: Christian Brauner <brauner@kernel.org>

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

             reply	other threads:[~2025-06-30 22:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-30 22:16 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-06-20  0:32 [brauner-vfs:work.pidfs.setns 8/9] fs/pidfs.c:38:8: error: assigning to 'struct path' from incompatible type 'void (struct path *)' kernel test robot

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=202507010037.c3Ung7vs-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=brauner@kernel.org \
    --cc=christianvanbrauner@gmail.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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.