Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp854227rwb; Thu, 11 Aug 2022 11:04:18 -0700 (PDT) X-Google-Smtp-Source: AA6agR6f8i4PunOzf3c3zVXHrkHpYwcr0Ybm5r7Hn9Pczf6DYsLApru9xH2obVG9TI38mjJX0zvN X-Received: by 2002:a05:6402:f25:b0:43d:e499:e32e with SMTP id i37-20020a0564020f2500b0043de499e32emr286153eda.2.1660241058620; Thu, 11 Aug 2022 11:04:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660241058; cv=none; d=google.com; s=arc-20160816; b=xX1xhNqMfNpaOdgi7yOJym7EzX22s9Y0xwyXWoqAmtiT1RLqhvZxXI36Is+B4A3dNA 1hSos2Eo2WbKhG5njyMWg5LmU6PrNrc+96vVd1Iw6HkvX+S0QEEClpKCrwrtz8XsWuds fzRYbo4sB1b3jVwGTZyWpp0oxslm8E69FqXAfaS5bXjLmEHz2qut1w24mbmIFKA8HnyQ T4OjVHEy4okW3epK5ysiNnDYDC6KHHXM5CodDdGTaP4hMvCiuEAY1Ev+e8z2EttvH0As F11s/jpJODg7vn22z1hLRwh/GYBAywuTeFzkPmEyFgCeTxc8H8FtbpRt6IfsXkkyCA9R Jewg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=j6b8kTrT56pwiU/IWqIOVmZdn5YfEPHXgPdh8M5ebwU=; b=ZEeXpsHn3kqWb9O7LbidPnqXYUfFK49thC0p7OqZuSAreFtmPpeneiLOzRDoeoh52B SkK7a4VfpmsCEV9JM9aG6U0+2rdoKf1UOu5cPe8I+tUuNa4E4JL1dmKv2QawiTsdUWlm OZdG1wYk4Y0ksl7S0hRbKN3KEjBkeRnKMbRsyxUVYBinOeQGChGJD1gDW+3rQ6FPIbqO 3lUIlLMPofeFDV8Ou71ejpo/CYUlAjvenGVkt2tYTQSZBQ0KAOOcHtvm9sR6U6KfjaL4 adGKPXYtbpKsW4VLT8pnZZCdnapY72IJChLYms6yQiZsflD2M4JZaT1g+OyPkJU9oTSD JsiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=h7L4neJI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ht19-20020a170907609300b0072f4443d336si7372771ejc.201.2022.08.11.11.03.48; Thu, 11 Aug 2022 11:04:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=h7L4neJI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235538AbiHKRXu (ORCPT + 99 others); Thu, 11 Aug 2022 13:23:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236070AbiHKRXc (ORCPT ); Thu, 11 Aug 2022 13:23:32 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44E2266102; Thu, 11 Aug 2022 10:23:06 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id v3so22149501wrp.0; Thu, 11 Aug 2022 10:23:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc; bh=j6b8kTrT56pwiU/IWqIOVmZdn5YfEPHXgPdh8M5ebwU=; b=h7L4neJIrIWcIOjwXfQEB9hwJK4xq6R+BiWBrtmxIksUhSNdQH7p/IZXM9NG/eSM0h hLy9cVMlPI6SVm2QoJ1zzD7Gd6wSFI6/G6O+rDkuaS9WlYydFZoX2rYKpCi+x7IPcC++ q/TYrO9uxaqzIZzdL+odlDYDp74eWkbaepATdxwmBwCfOs2zrTyDfpkmOfUYuPxzXgbM g5sk4lNQFZLRaJQAoVmCUlpeACUBFmJjwo8ovs3BUn9HrcCPg7vju1kmtt4ByxF2mYln bnQdbwD5EfXAeXR8VozOrflRRy3ZxW2+WSdWPruAFDr5XlVVWNQ4MNBSCs8LWx2HxJ48 CtOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc; bh=j6b8kTrT56pwiU/IWqIOVmZdn5YfEPHXgPdh8M5ebwU=; b=6ThyhmhaV/yGMyAhcNMY5xf01SY4AVE1NssD+WYeNJE+hUHRFNENqfiRCsyMCS6liC Wdt3YA+MOmGodbgYVrZoCwYvuvlJSThSMLgebUK0tW0c6p7qSgQzQmcetYcw4GB5wN1D 8j0iiVUfht8u0qoAQfUh2pIHQC+VhjbGU/wq/pqwMzfMTS+Hcts7qyyFEPacbqrrW3hm ZEgoUz9ss2kHUg+aLixKMlmhNn1neaH8RX8zmUvi1xO4Np9H/UXkmXrszER06oDSFLWN Tm2lTTBnpCP3OigGZ/ioz9+ou4Cc5qlIGIrznAosXd6gaPj64egvK9qwcfOub+NAPPnh YXsw== X-Gm-Message-State: ACgBeo3viCg0/5cXEkcUYAUrQOUIskgJbTeMRQMxlJ7FmAKKOg/05WNY mliH/fgjqWw9JxtKOaMLw2M= X-Received: by 2002:adf:f286:0:b0:21e:f0dc:3df0 with SMTP id k6-20020adff286000000b0021ef0dc3df0mr21793wro.377.1660238584739; Thu, 11 Aug 2022 10:23:04 -0700 (PDT) Received: from debian ([2405:201:8005:8149:e5c9:c0ac:4d82:e94b]) by smtp.gmail.com with ESMTPSA id h4-20020a1ccc04000000b003a545ff43c5sm6362884wmb.45.2022.08.11.10.22.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Aug 2022 10:23:03 -0700 (PDT) Date: Thu, 11 Aug 2022 18:22:54 +0100 From: "Sudip Mukherjee (Codethink)" To: Stefano Garzarella , "Michael S. Tsirkin" , Jason Wang Cc: virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Nathan Chancellor , clang-built-linux , linux-next@vger.kernel.org Subject: build failure of next-20220811 due to d79b32c2e4a4 ("vdpa_sim_blk: add support for discard and write-zeroes") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi All, Not sure if it has been reported, builds of arm64 with clang failed to build next-20220811 with the error: 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: error: mixing declarations and code is incompatible with standards before C99 [-Werror,-Wdeclaration-after-statement] u32 num_sectors, flags; ^ 8 errors generated. git bisect pointed to d79b32c2e4a4 ("vdpa_sim_blk: add support for discard and write-zeroes"). And, reverting that commit has fixed the build failure. I will be happy to test any patch or provide any extra log if needed. -- Regards Sudip