Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp955836pxj; Fri, 4 Jun 2021 02:24:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfEsRc0G1vveWJgWFleyRCsrlSBCizC0YywTT/Qg6mDo4Vo+7/uwXnt/VEaHydbym/fXq6 X-Received: by 2002:a17:906:f6cb:: with SMTP id jo11mr3335159ejb.439.1622798674345; Fri, 04 Jun 2021 02:24:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622798674; cv=none; d=google.com; s=arc-20160816; b=BnZ9uj7M1zro3e3HdoJGmceYFjxHGIAEs/eweFgjL0Wx7j4WKEzvRVBdwOUpm3l46x 37BJ4hm8vxEujJkid0CpII/YbaaewjZAghgzhUkeY5kw2CmXIYxxKTwU/l40HzCiX5Nd ptmdhQVC2jdSXIwaAmQ2nZ5s59+kpXlMgNVSCly/rV+f4iGudM9O4tbt7O/iYwi5LZPi oJRyddLbT6gIPKd/GeLcGqqQHlPsLL80Anod1dD+TpT9c8aAiKACXJ54xdhh266Iigj/ OmOVS+2ZvprAAMaBtPtz2neI7zzqxBTNXH3Q/FlTP746cWTLlk+9Ydv/mq3dlk+lBKAQ uIeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:mime-version :dkim-signature; bh=hy/qFdBqxnuvliwIjp97UN0D29BYkAVb7TMvJfgcgs0=; b=1DpP5Cd6UNzqdagZYZz0VO/mS+NAUVYgiBb9cVXrGLLbmYd1M/xzn4RFA2pEOdFLo6 /3jLvPpyojsPpTNzYvsOz+qd3zY37VBHprHsMUEtkRKzIpmgSdsWdttALG/hljLAGXZG r71q8B2gNgqwQXbp+QXp5QHWcJkWFhOG1J/d4DPqA7C23OjeqLw4f9bmA8opadEOGM0h uAQw8C++qK0KMKH+zDzdOturC4w2vvNf6N0hN9uRLS7DIKrSplztRzs+k7kGmz3g11wh M6904eplzbyGCO2NBtjSLvq8TTI24qYHRHtj84Gy0tdkJPNM5ODhVrfLFhIK1h6+CTEd iR0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QeWMrNbK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hp35si2210145ejc.731.2021.06.04.02.24.10; Fri, 04 Jun 2021 02:24:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QeWMrNbK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229958AbhFDJWc (ORCPT + 99 others); Fri, 4 Jun 2021 05:22:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229936AbhFDJWc (ORCPT ); Fri, 4 Jun 2021 05:22:32 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1485C06174A for ; Fri, 4 Jun 2021 02:20:29 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id k7so13397261ejv.12 for ; Fri, 04 Jun 2021 02:20:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:from:date:message-id:subject:to:cc; bh=hy/qFdBqxnuvliwIjp97UN0D29BYkAVb7TMvJfgcgs0=; b=QeWMrNbKywBFEOv7REdQjtOA11T9a4l+Go6fuCCYNNrMLtH8qzH3JyR763YM9BXDlV Rkvp9FVhrH4XQ8vmyD7SOv/nwSa8tglOsz4hTkkaoLv3r8WtIU0NbhDO/r0t3dCsizGX NtaO1sLKVSS54+UUv3RyCxhRu2MBloCMHahVb3LqhiZPe8UUGz2MgbWfa6uX6ddvFXjf B3Q2smzYEKAsCMK4Lf1kbFV9fDxOuYmRPsgupPV+x35pu3D/CMwSFmeavi9aFPqSLG3T YY/mlqv53Vy1BVGzffrup+S50mxeGBbQBjtEXpyOm8gP3+XKwhzH40n6i7yErt2np8/E WMJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=hy/qFdBqxnuvliwIjp97UN0D29BYkAVb7TMvJfgcgs0=; b=FnsBDaM6WUhA2nFToe15lriKNlQ8488SvEKuLsZMHFTIKQ0dQkEdwQco34f5SfHyeH 4cEI29UZRjeybM+kzdLeU3RcJwbNSS6zjk84bluJ3lxQjL/I78gOAGAST1J7gGFh9aAF ZpbMQUdXSMlC3GJHL3g5kSJa5+iLLj1BdTYZEeQf3h9kHTqhWqekX+raa3tynNRFVYP/ 0TqJidlU+eLsNJuwa7gggC2ek3oQKWQBMGmWjCcZGinLjr6SG+OLnZmb8JAadknNOWn6 rBIQNmOAf6kf8giW/1zPaAd5XVY74ohSbJTByLHJtVmfrMCxAgRtBM3eKnCL1CnxEgV6 hmFg== X-Gm-Message-State: AOAM533iYqOgf5oW7a7unNn/JinkcC261FOhyn0J0pBU427tVcIbNQ4m iAZCE8h/6pc31zfH1UYPK/RrohAmLmchKtscpRM1Gg== X-Received: by 2002:a17:906:9d05:: with SMTP id fn5mr3247466ejc.133.1622798427976; Fri, 04 Jun 2021 02:20:27 -0700 (PDT) MIME-Version: 1.0 From: Naresh Kamboju Date: Fri, 4 Jun 2021 14:50:16 +0530 Message-ID: Subject: [next] fs: cifsglob.h:955:20: error: passing argument 2 of 'test_bit' from incompatible pointer type To: linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, open list , Linux-Next Mailing List , lkft-triage@lists.linaro.org Cc: Steve French , Stephen Rothwell Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following builds failed on Linux next-20210604 due to warnings / errors. - arm (s3c2410_defconfig) with gcc- 8 / 9 / 10 - parisc (defconfig) with gcc-8 / 9 / 10 - powerpc (ppc6xx_defconfig) with gcc- 8 / 9 /10 In file included from fs/cifs/transport.c:38: fs/cifs/transport.c: In function 'cifs_pick_channel': fs/cifs/cifsglob.h:955:20: error: passing argument 2 of 'test_bit' from incompatible pointer type [-Werror=incompatible-pointer-types] 955 | test_bit((index), &(ses)->chans_need_reconnect) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | size_t * {aka unsigned int *} fs/cifs/transport.c:1065:7: note: in expansion of macro 'CIFS_CHAN_NEEDS_RECONNECT' 1065 | if (CIFS_CHAN_NEEDS_RECONNECT(ses, index)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from arch/powerpc/include/asm/bitops.h:193, from include/linux/bitops.h:32, from include/linux/kernel.h:12, from include/linux/list.h:9, from include/linux/wait.h:7, from include/linux/wait_bit.h:8, from include/linux/fs.h:6, from fs/cifs/transport.c:23: include/asm-generic/bitops/non-atomic.h:104:66: note: expected 'const volatile long unsigned int *' but argument is of type 'size_t *' {aka 'unsigned int *'} 104 | static inline int test_bit(int nr, const volatile unsigned long *addr) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ cc1: some warnings being treated as errors make[3]: *** [scripts/Makefile.build:272: fs/cifs/transport.o] Error 1 fs/cifs/sess.c: In function 'cifs_chan_set_need_reconnect': fs/cifs/sess.c:98:22: error: passing argument 2 of 'set_bit' from incompatible pointer type [-Werror=incompatible-pointer-types] 98 | set_bit(chan_index, &ses->chans_need_reconnect); ^~~~~~~~~~~~~~~~~~~~~~~~~~ | size_t * {aka unsigned int *} Reported-by: Naresh Kamboju Full build log: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next/-/jobs/1317929765#L247 Steps to reproduce: ----------------------------- # TuxMake is a command line tool and Python library that provides # portable and repeatable Linux kernel builds across a variety of # architectures, toolchains, kernel configurations, and make targets. # # TuxMake supports the concept of runtimes. # See https://docs.tuxmake.org/runtimes/, for that to work it requires # that you install podman or docker on your system. # # To install tuxmake on your system globally: # sudo pip3 install -U tuxmake # # See https://docs.tuxmake.org/ for complete documentation. tuxmake --runtime podman --target-arch arm --toolchain gcc-8 --kconfig s3c2410_defconfig -- Linaro LKFT https://lkft.linaro.org