From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id B6407C19F2D for ; Thu, 11 Aug 2022 08:12:41 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 283478E0002; Thu, 11 Aug 2022 04:12:41 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 20C658E0001; Thu, 11 Aug 2022 04:12:41 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0ACD88E0002; Thu, 11 Aug 2022 04:12:41 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id EA1FC8E0001 for ; Thu, 11 Aug 2022 04:12:40 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id C53A01202EE for ; Thu, 11 Aug 2022 08:12:40 +0000 (UTC) X-FDA: 79786595280.10.9998ABA Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf31.hostedemail.com (Postfix) with ESMTP id 59C5B20185 for ; Thu, 11 Aug 2022 08:12:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1660205558; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=NJNU3MM2RXJ6DrBzu4YH+KkztVQ4GVVSaiORxtGIIGs=; b=NQwThE7vyxOH29Mwk50IkIKMymMmoBVcyvaY1KiCuLuUsaU4L39w5COE66D405iMRIrTG/ er4C1e5qf1ZjmoSuG1206ojOek9NXxv1B7XCz/yZUCi8ypHaJaXPRUAu0iYJ9cuBz73oWG 7Y2z9bnWPxTArw5MZAsMnrDQ4e+yjtk= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-32-foXTB-6gPrizlBAXlkqhNg-1; Thu, 11 Aug 2022 04:12:37 -0400 X-MC-Unique: foXTB-6gPrizlBAXlkqhNg-1 Received: by mail-wm1-f72.google.com with SMTP id r10-20020a1c440a000000b003a538a648a9so5516747wma.5 for ; Thu, 11 Aug 2022 01:12:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc; bh=NJNU3MM2RXJ6DrBzu4YH+KkztVQ4GVVSaiORxtGIIGs=; b=uCJKgUgVkhmx7Al93bMQQcnuEBKtGjCvaG9QDrRWSTTjqzqfy8p7giRQ4awZ7ITCMm FsOdsJXR2Gn7Ds3yFp9rba4aK5w2YdgjNgIfzuflQ89vQXsPlcsZxGZFdqOKkJ7R9Flp sCl45abVuljixyqeI926yokQTVhBgCtTtrcSKCtsqOQNeFf5eqIcAIBmElSIt13cwlO0 7kWA8KdOFbZ+P97YSaknoyjkoAiBXz/ac4V0SeQZPcBClPbvn2lQn5DpXQxt9ey1il6Y sz8+YTLxXnMLQOXgU7TtV4ZHGOVIu7Kl8fM6CDmjDweytXVjw4PrfyV2onGo/t7AJTi5 1wPg== X-Gm-Message-State: ACgBeo16KxDiIMJhI1VSH0HzJAnSfuZcUf5E+MGMTxkCXHvIb2AIMFbe W6FXpmOnc9MnICNdsmNjiAqGYeTXLskwlXzg6ytqu3JWleuqE0uOpn35P6Z2fFHNpYUyCSKMWLg 5Mh9UqpQDw28= X-Received: by 2002:adf:e588:0:b0:21f:ace:dd82 with SMTP id l8-20020adfe588000000b0021f0acedd82mr18967070wrm.226.1660205556690; Thu, 11 Aug 2022 01:12:36 -0700 (PDT) X-Google-Smtp-Source: AA6agR5LMFV14g3LvzQgZisOYaUxYd0g2tc7/YwMEHND7sNI1Bqq1wbdXk/6Mc7XtKe8cFceYVA6vA== X-Received: by 2002:adf:e588:0:b0:21f:ace:dd82 with SMTP id l8-20020adfe588000000b0021f0acedd82mr18967059wrm.226.1660205556384; Thu, 11 Aug 2022 01:12:36 -0700 (PDT) Received: from sgarzare-redhat (host-79-46-200-178.retail.telecomitalia.it. [79.46.200.178]) by smtp.gmail.com with ESMTPSA id u6-20020a05600c19c600b003a545fe9db4sm5279687wmq.23.2022.08.11.01.12.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Aug 2022 01:12:35 -0700 (PDT) Date: Thu, 11 Aug 2022 10:12:17 +0200 From: Stefano Garzarella To: "Michael S. Tsirkin" , kernel test robot Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Linux Memory Management List , "Michael S. Tsirkin" Subject: Re: [linux-next:master 14849/15097] drivers/vdpa/vdpa_sim/vdpa_sim_blk.c:201:3: error: expected expression Message-ID: <20220811081217.ugn7vslc2nlqv6l3@sgarzare-redhat> References: <202208111501.5PSP1WaM-lkp@intel.com> MIME-Version: 1.0 In-Reply-To: <202208111501.5PSP1WaM-lkp@intel.com> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1660205559; a=rsa-sha256; cv=none; b=KHcLVTn8gvRXBHABUbdBORb0VGEuskkLSyxeP/EBLLLqrvTpl0wRA1KmjNA2r/7EndLUV9 5SbRsR5jlf8ZM3eXXT2EW91bV9Ad6x/2LYaD8FvhvftYjarLUJLQBLSOaga9bik8UyZc5k RkhnBgkSL4FJIzG5mqs2SOyF7GOqE7A= ARC-Authentication-Results: i=1; imf31.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=NQwThE7v; spf=pass (imf31.hostedemail.com: domain of sgarzare@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=sgarzare@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1660205559; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=NJNU3MM2RXJ6DrBzu4YH+KkztVQ4GVVSaiORxtGIIGs=; b=CcLfxUkqRrnCitHBqrtz2DQe2McRvoNMQZodTyzIXlbNwarV0AHfrdmvlwb1tvfJoDMFAF PTZToIGSVj8kCQMli+9qdt8xHNtESisLtuLcSVSHgGuqEJrZJMb9wxAR6Xx7KpIYIgfZ8M 6M+0Jj47p+CP3hdjw9brZh8YZ6umsfA= X-Rspam-User: X-Stat-Signature: ibggt748numkc7wc648of7o9hnshw9oj X-Rspamd-Queue-Id: 59C5B20185 Authentication-Results: imf31.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=NQwThE7v; spf=pass (imf31.hostedemail.com: domain of sgarzare@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=sgarzare@redhat.com; dmarc=pass (policy=none) header.from=redhat.com X-Rspamd-Server: rspam01 X-HE-Tag: 1660205559-257898 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi Michael, On Thu, Aug 11, 2022 at 03:46:35PM +0800, kernel test robot wrote: >tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master >head: 40d43a7507e1547dd45cb02af2e40d897c591870 >commit: d79b32c2e4a4e66d5678410cd45815c1c2375196 [14849/15097] vdpa_sim_blk: add support for discard and write-zeroes >config: i386-randconfig-a015 (https://download.01.org/0day-ci/archive/20220811/202208111501.5PSP1WaM-lkp@intel.com/config) >compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 5f1c7e2cc5a3c07cbc2412e851a7283c1841f520) >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/next/linux-next.git/commit/?id=d79b32c2e4a4e66d5678410cd45815c1c2375196 > 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 d79b32c2e4a4e66d5678410cd45815c1c2375196 > # save the config file > mkdir build_dir && cp config build_dir/.config > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/vdpa/vdpa_sim/ > >If you fix the issue, kindly add following tag where applicable >Reported-by: kernel test robot > >All error/warnings (new ones prefixed by >>): > >>> drivers/vdpa/vdpa_sim/vdpa_sim_blk.c:201:3: error: expected expression > struct virtio_blk_discard_write_zeroes range; > ^ >>> drivers/vdpa/vdpa_sim/vdpa_sim_blk.c:204:25: error: use of undeclared identifier 'range' > if (to_pull != sizeof(range)) { > ^ > drivers/vdpa/vdpa_sim/vdpa_sim_blk.c:207:21: error: use of undeclared identifier 'range' > to_pull, sizeof(range)); > ^ > drivers/vdpa/vdpa_sim/vdpa_sim_blk.c:212:60: error: use of undeclared identifier 'range' > bytes = vringh_iov_pull_iotlb(&vq->vring, &vq->out_iov, &range, > ^ > drivers/vdpa/vdpa_sim/vdpa_sim_blk.c:222:38: error: use of undeclared identifier 'range' > sector = vdpasim64_to_cpu(vdpasim, range.sector); > ^ > drivers/vdpa/vdpa_sim/vdpa_sim_blk.c:224:43: error: use of undeclared identifier 'range' > num_sectors = vdpasim32_to_cpu(vdpasim, range.num_sectors); > ^ > drivers/vdpa/vdpa_sim/vdpa_sim_blk.c:225:37: error: use of undeclared identifier 'range' > flags = vdpasim32_to_cpu(vdpasim, range.flags); > ^ >>> drivers/vdpa/vdpa_sim/vdpa_sim_blk.c:202:7: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement] > u32 num_sectors, flags; > ^ > 1 warning and 7 errors generated. I'll send followup patches to fix this issue and another that I found building with C=2 (virtio_blk_discard_write_zeroes fields are __leX not __virtioX, so I should use leX_to_cpu). Is that okay or should I re-send the original series fixed? Thanks, Stefano