From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0F1FE2CA8 for ; Sat, 29 Jan 2022 02:00:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643421626; x=1674957626; h=date:from:to:cc:subject:message-id:mime-version; bh=HwFzOUQ3ETlxvQNyfQGh+3gx+Q9wov9hHhNb1uvx0fc=; b=GehjNn92BAkpak/braww/k58nOrabIUP8QnFwjwIpJe/QPFv8mBn7WxB CaQ2xSxaJ4jrEQYit5u+HJh0+bdpASaEc/CgeJKJVSfFDIytiF+0ZWztR di10LWa5a3uFL7teWIYKqAR5QqjX/3NXqq8dcnN4dvdrF1LUB0UKULVE9 lqr2i85ve0pLjZg3uujb/TyK51vx4hlawhN3RVONRyYIZPv4j6vg+3Jv/ otXngBpNLn4ElKNFPIW2INzs82l5NKaukFh0zoiYOvJgy799eLc8q562m +2m4v6dmSfs5QNIEL5HIMLrcUI4W6FW4+aPtLiVoZV4GuFKur1bD4pL1h g==; X-IronPort-AV: E=McAfee;i="6200,9189,10241"; a="227899402" X-IronPort-AV: E=Sophos;i="5.88,325,1635231600"; d="scan'208";a="227899402" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jan 2022 18:00:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,325,1635231600"; d="scan'208";a="496313134" Received: from lkp-server01.sh.intel.com (HELO 276f1b88eecb) ([10.239.97.150]) by orsmga002.jf.intel.com with ESMTP; 28 Jan 2022 18:00:16 -0800 Received: from kbuild by 276f1b88eecb with local (Exim 4.92) (envelope-from ) id 1nDd2F-000Ocy-Dn; Sat, 29 Jan 2022 02:00:15 +0000 Date: Sat, 29 Jan 2022 10:00:06 +0800 From: kernel test robot To: Jeff Layton Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: [jlayton:ceph-fscrypt 53/53] net/ceph/osd_client.c:5775:3: error: expected expression Message-ID: <202201290935.AEKKkabv-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) tree: https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git ceph-fscrypt head: 3f014b82b65ebbf30b8e4cd0b307f1f2794d183f commit: 3f014b82b65ebbf30b8e4cd0b307f1f2794d183f [53/53] libceph: define a structure to track SPARSE_READ reply processing config: hexagon-randconfig-r002-20220127 (https://download.01.org/0day-ci/archive/20220129/202201290935.AEKKkabv-lkp@intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 33b45ee44b1f32ffdbc995e6fec806271b4b3ba4) 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 # https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git/commit/?id=3f014b82b65ebbf30b8e4cd0b307f1f2794d183f git remote add jlayton https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git git fetch --no-tags jlayton ceph-fscrypt git checkout 3f014b82b65ebbf30b8e4cd0b307f1f2794d183f # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash net/ceph/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All error/warnings (new ones prefixed by >>): >> net/ceph/osd_client.c:5775:3: error: expected expression u64 off = le64_to_cpu(sr->sr_extent[sr->sr_index].off); ^ >> net/ceph/osd_client.c:5776:7: warning: mixing declarations and code is a C99 extension [-Wdeclaration-after-statement] u64 len = le64_to_cpu(sr->sr_extent[sr->sr_index].len); ^ 1 warning and 1 error generated. vim +5775 net/ceph/osd_client.c 5746 5747 static int osd_sparse_read(struct ceph_connection *con, u64 *len, char **buf) 5748 { 5749 struct ceph_osd *o = con->private; 5750 struct ceph_sparse_read *sr = &o->o_sparse_read; 5751 u32 count = __le32_to_cpu(sr->sr_count); 5752 int ret = 1; 5753 5754 switch (sr->sr_state) { 5755 case CEPH_SPARSE_READ_COUNT: 5756 /* number of extents */ 5757 *len = sizeof(sr->sr_count); 5758 *buf = (char *)&sr->sr_count; 5759 sr->sr_state = CEPH_SPARSE_READ_EXTENTS; 5760 break; 5761 case CEPH_SPARSE_READ_EXTENTS: 5762 /* the extent array */ 5763 *len = count * sizeof(*sr->sr_extent); 5764 if (count > 1) { 5765 /* can't use the embedded extent array */ 5766 sr->sr_extent = kmalloc_array(count, sizeof(*sr->sr_extent), 5767 GFP_NOIO); 5768 if (!sr->sr_extent) 5769 return -ENOMEM; 5770 } 5771 *buf = (char *)sr->sr_extent; 5772 sr->sr_state = CEPH_SPARSE_READ_DATA; 5773 break; 5774 case CEPH_SPARSE_READ_DATA: > 5775 u64 off = le64_to_cpu(sr->sr_extent[sr->sr_index].off); > 5776 u64 len = le64_to_cpu(sr->sr_extent[sr->sr_index].len); 5777 5778 /* ret to 0 if this is the last extent */ 5779 ++sr->sr_index; 5780 if (sr->sr_index >= count) 5781 ret = 0; 5782 break; 5783 } 5784 return ret; 5785 } 5786 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============5684137669769594641==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [jlayton:ceph-fscrypt 53/53] net/ceph/osd_client.c:5775:3: error: expected expression Date: Sat, 29 Jan 2022 10:00:06 +0800 Message-ID: <202201290935.AEKKkabv-lkp@intel.com> List-Id: --===============5684137669769594641== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git c= eph-fscrypt head: 3f014b82b65ebbf30b8e4cd0b307f1f2794d183f commit: 3f014b82b65ebbf30b8e4cd0b307f1f2794d183f [53/53] libceph: define a = structure to track SPARSE_READ reply processing config: hexagon-randconfig-r002-20220127 (https://download.01.org/0day-ci/a= rchive/20220129/202201290935.AEKKkabv-lkp(a)intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 33b45e= e44b1f32ffdbc995e6fec806271b4b3ba4) reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git= /commit/?id=3D3f014b82b65ebbf30b8e4cd0b307f1f2794d183f git remote add jlayton https://git.kernel.org/pub/scm/linux/kernel/= git/jlayton/linux.git git fetch --no-tags jlayton ceph-fscrypt git checkout 3f014b82b65ebbf30b8e4cd0b307f1f2794d183f # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross W=3D= 1 O=3Dbuild_dir ARCH=3Dhexagon SHELL=3D/bin/bash net/ceph/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All error/warnings (new ones prefixed by >>): >> net/ceph/osd_client.c:5775:3: error: expected expression u64 off =3D le64_to_cpu(sr->sr_extent[sr->sr_index].off); ^ >> net/ceph/osd_client.c:5776:7: warning: mixing declarations and code is a= C99 extension [-Wdeclaration-after-statement] u64 len =3D le64_to_cpu(sr->sr_extent[sr->sr_index].len); ^ 1 warning and 1 error generated. vim +5775 net/ceph/osd_client.c 5746 = 5747 static int osd_sparse_read(struct ceph_connection *con, u64 *len, ch= ar **buf) 5748 { 5749 struct ceph_osd *o =3D con->private; 5750 struct ceph_sparse_read *sr =3D &o->o_sparse_read; 5751 u32 count =3D __le32_to_cpu(sr->sr_count); 5752 int ret =3D 1; 5753 = 5754 switch (sr->sr_state) { 5755 case CEPH_SPARSE_READ_COUNT: 5756 /* number of extents */ 5757 *len =3D sizeof(sr->sr_count); 5758 *buf =3D (char *)&sr->sr_count; 5759 sr->sr_state =3D CEPH_SPARSE_READ_EXTENTS; 5760 break; 5761 case CEPH_SPARSE_READ_EXTENTS: 5762 /* the extent array */ 5763 *len =3D count * sizeof(*sr->sr_extent); 5764 if (count > 1) { 5765 /* can't use the embedded extent array */ 5766 sr->sr_extent =3D kmalloc_array(count, sizeof(*sr->sr_extent), 5767 GFP_NOIO); 5768 if (!sr->sr_extent) 5769 return -ENOMEM; 5770 } 5771 *buf =3D (char *)sr->sr_extent; 5772 sr->sr_state =3D CEPH_SPARSE_READ_DATA; 5773 break; 5774 case CEPH_SPARSE_READ_DATA: > 5775 u64 off =3D le64_to_cpu(sr->sr_extent[sr->sr_index].off); > 5776 u64 len =3D le64_to_cpu(sr->sr_extent[sr->sr_index].len); 5777 = 5778 /* ret to 0 if this is the last extent */ 5779 ++sr->sr_index; 5780 if (sr->sr_index >=3D count) 5781 ret =3D 0; 5782 break; 5783 } 5784 return ret; 5785 } 5786 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============5684137669769594641==--