[linux-next:master 6338/7430] fs/cifs/transport.c:1065:7: error: incompatible pointer types passing 'size_t *' (aka 'unsigned int *') to parameter of type 'const volatile unsigned long *'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   ccc252d2e818f6a479441119ad453c3ce7c7c461
commit: 69f98828728fe664faf3e9be5f476f08b4595da1 [6338/7430] cifs: get rid of binding_chan and use chans_need_reconnect instead
config: powerpc-randconfig-r023-20210604 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 5c0d1b2f902aa6a9cf47cc7e42c5b83bb2217cf9)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install powerpc cross compiling tool for clang build
        # apt-get install binutils-powerpc-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=69f98828728fe664faf3e9be5f476f08b4595da1
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 69f98828728fe664faf3e9be5f476f08b4595da1
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

   In file included from fs/cifs/transport.c:23:
   In file included from include/linux/fs.h:6:
   In file included from include/linux/wait_bit.h:8:
   In file included from include/linux/wait.h:7:
   In file included from include/linux/list.h:9:
   In file included from include/linux/kernel.h:12:
   In file included from include/linux/bitops.h:32:
   In file included from arch/powerpc/include/asm/bitops.h:62:
   arch/powerpc/include/asm/barrier.h:49:9: warning: '__lwsync' macro redefined [-Wmacro-redefined]
   #define __lwsync()      __asm__ __volatile__ (stringify_in_c(LWSYNC) : : :"memory")
           ^
   <built-in>:309:9: note: previous definition is here
   #define __lwsync __builtin_ppc_lwsync
           ^
>> fs/cifs/transport.c:1065:7: error: incompatible pointer types passing 'size_t *' (aka 'unsigned int *') to parameter of type 'const volatile unsigned long *' [-Werror,-Wincompatible-pointer-types]
                   if (CIFS_CHAN_NEEDS_RECONNECT(ses, index))
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   fs/cifs/cifsglob.h:955:20: note: expanded from macro 'CIFS_CHAN_NEEDS_RECONNECT'
           test_bit((index), &(ses)->chans_need_reconnect)
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/bitops/non-atomic.h:104:66: note: passing argument to parameter 'addr' here
   static inline int test_bit(int nr, const volatile unsigned long *addr)
                                                                    ^
   1 warning and 1 error generated.


vim +1065 fs/cifs/transport.c

  1043	
  1044	/*
  1045	 * Return a channel (master if none) of @ses that can be used to send
  1046	 * regular requests.
  1047	 *
  1048	 * If we are currently binding a new channel (negprot/sess.setup),
  1049	 * return the new incomplete channel.
  1050	 */
  1051	struct TCP_Server_Info *cifs_pick_channel(struct cifs_ses *ses)
  1052	{
  1053		uint index = 0;
  1054	
  1055		if (!ses)
  1056			return NULL;
  1057	
  1058		/* round robin */
  1059	pick_another:
  1060		if (ses->chan_count > 1 &&
  1061		    !CIFS_ALL_CHANS_NEED_RECONNECT(ses)) {
  1062			index = (uint)atomic_inc_return(&ses->chan_seq);
  1063			index %= ses->chan_count;
  1064	
> 1065			if (CIFS_CHAN_NEEDS_RECONNECT(ses, index))
  1066				goto pick_another;
  1067		}
  1068		return ses->chans[index].server;
  1069	}
  1070	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux