Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1066064pxb; Wed, 6 Apr 2022 07:57:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxX949dCl2MeCXn26vG+iwK7ZontAK5+pQUkZUC1ARn4cI4UI8Cwla7FMWproUaTOAOWbKi X-Received: by 2002:a17:90b:3e88:b0:1c7:87e9:61ff with SMTP id rj8-20020a17090b3e8800b001c787e961ffmr10374614pjb.234.1649257079635; Wed, 06 Apr 2022 07:57:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649257079; cv=none; d=google.com; s=arc-20160816; b=xyMzZT0wjPudGYH0EwZvWdCnUtrQbQwSNLuLarErG8T02phXCsxrhZqkcoBaqzAcn9 HoOV6YVDQfV4/5AHly7FIb/1glcLQAOqdJ31qwUsSdspq3PkLLBi6uK/bJW1L+p32F/Z GdWwYWOcJ6w9kuEbtAHCxFm6gGIOKCAI7aewOJaSpy+gCMNC6dezeF2CJDFNpg19h2uA ip5Zntasq0BbkADUgGSCUBvjPGrv+9eI9jgTY9Hmnv9i0ddmE+kyRMINQq4iB3sEa5V9 CoLWe0/Ad4MWykzk3vyzQiNY1+m/JXsNwSy/jeuwv/2se6uEMe/kUlfhJdjGfQQsFJGw I9Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=C5VgPld09iYiqC751h87aH+aMCuoBzx6fK1WSSESdHU=; b=erEstRdluRRhYd36/mO3juy9MEiBARCmlBBZzEbmEyN8Yg/lyLV/ME0KFlLhJrG/oV 0Y86rbfu9KpQKiFTkmap76wOAZhqRCUCjaDYixB13+0vpoIJs7RW8FIq7l1wCqpvB3Z7 6qIgYzFAEdjEu01/jDNnKrF7oQszf0GHcqW3LLVF7jykxrzvP98o7CcB7DSC7x/EkEkr LfdxpshDh6PWB1mjwEVMxIOWbB3Z5+CQXmwuKhiICDhvvMFef06Ti26jFngn1fpg7AkE 7JQHK/p/5csq9BF+jKkECzabJrP7mvWnP1WQPX5Bzyhn0y3VTToa+sh0RQawORJ2AnPp mqqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=SwViTp0d; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id g14-20020a63520e000000b003863915bbb4si16008104pgb.673.2022.04.06.07.57.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 07:57:59 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=SwViTp0d; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6C6543E37D5; Wed, 6 Apr 2022 05:44:19 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1837214AbiDFApQ (ORCPT + 99 others); Tue, 5 Apr 2022 20:45:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1573228AbiDES2U (ORCPT ); Tue, 5 Apr 2022 14:28:20 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E489725C2 for ; Tue, 5 Apr 2022 11:26:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender :Reply-To:Content-ID:Content-Description; bh=C5VgPld09iYiqC751h87aH+aMCuoBzx6fK1WSSESdHU=; b=SwViTp0djw63Y6CABGQ1kgy1MK Sg10F6y4NOV61Rir++P/63S/FDRiwka1up4YV6y051CJP7shE80m6qmKXXDsczK1vX8f2WKP/NjCZ Cj66jHxR6zi9Xx8507YAx1+F5xPyMjjvkV4J0t4jYmx3bfR2Nz3lFYHw3dSljv0jje09m/E2KkB4w KHtNtxVR8Q9eDKh1MccF4Ajd8SFB4xWUzBDuxTtApOaQSxvv9qe81W32p0JJbHPTK2GYyA8NRnJr8 X91FZOL/Wbc8LXLnP4xXbiBpQszZNSdqgvbDwdqVx1MrEZxRwek7RYcv2W7/G6w8x/Z0oc3fG4TXA T0Spj4cQ==; Received: from [2601:1c0:6280:3f0::aa0b] by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nbnsY-006x9i-PI; Tue, 05 Apr 2022 18:26:11 +0000 Message-ID: <019baa48-a594-ba00-67a9-b0eb62b32ac0@infradead.org> Date: Tue, 5 Apr 2022 11:26:05 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: drivers/cpuidle/cpuidle-riscv-sbi.c:79:16: error: variable has incomplete type 'struct sbiret' Content-Language: en-US To: kernel test robot , Anup Patel Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Palmer Dabbelt References: <202204051441.dQ4w35Ga-lkp@intel.com> From: Randy Dunlap In-Reply-To: <202204051441.dQ4w35Ga-lkp@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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, On 4/4/22 23:11, kernel test robot wrote: > Hi Anup, > > First bad commit (maybe != root cause): > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > head: 3123109284176b1532874591f7c81f3837bbdc17 > commit: c5179ef1ca0c39dab6955be6b0e3c034cc4164c8 RISC-V: Enable RISC-V SBI CPU Idle driver for QEMU virt machine > date: 4 weeks ago > config: riscv-randconfig-r022-20220405 (https://download.01.org/0day-ci/archive/20220405/202204051441.dQ4w35Ga-lkp@intel.com/config) > compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project c4a1b07d0979e7ff20d7d541af666d822d66b566) > 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 riscv cross compiling tool for clang build > # apt-get install binutils-riscv64-linux-gnu > # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c5179ef1ca0c39dab6955be6b0e3c034cc4164c8 > git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > git fetch --no-tags linus master > git checkout c5179ef1ca0c39dab6955be6b0e3c034cc4164c8 > # 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=riscv SHELL=/bin/bash drivers/ > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All errors (new ones prefixed by >>): > [delete many build warnings and errors] > 3 warnings and 17 errors generated. > > Kconfig warnings: (for reference only) > WARNING: unmet direct dependencies detected for RISCV_SBI_CPUIDLE > Depends on CPU_IDLE && RISCV && RISCV_SBI > Selected by > - SOC_VIRT && CPU_IDLE This Kconfig warning is the root of the problem. All of the build errors and warnings can be fixed by something like so. Is it OK? --- arch/riscv/Kconfig.socs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20220404.orig/arch/riscv/Kconfig.socs +++ linux-next-20220404/arch/riscv/Kconfig.socs @@ -38,7 +38,7 @@ config SOC_VIRT select SIFIVE_PLIC select PM_GENERIC_DOMAINS if PM select PM_GENERIC_DOMAINS_OF if PM && OF - select RISCV_SBI_CPUIDLE if CPU_IDLE + select RISCV_SBI_CPUIDLE if CPU_IDLE && RISCV_SBI help This enables support for QEMU Virt Machine. [snip] Also, to the @bot: Why does the reported Kconfig warning look like it was generated by some older kconfig software? Current Kconfig reports more info: WARNING: unmet direct dependencies detected for RISCV_SBI_CPUIDLE Depends on [n]: CPU_IDLE [=y] && RISCV [=y] && RISCV_SBI [=n] Selected by [y]: - SOC_VIRT [=y] && CPU_IDLE [=y] Thanks. > > :::::: The code at line 79 was first introduced by commit > :::::: 6abf32f1d9c5009dcccded2c1e7ca899a4ab587b cpuidle: Add RISC-V SBI CPU idle driver > > :::::: TO: Anup Patel > :::::: CC: Palmer Dabbelt > -- ~Randy