Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1862168rwb; Fri, 19 Aug 2022 10:37:01 -0700 (PDT) X-Google-Smtp-Source: AA6agR6WbWeAVnp5NKxFO+XLrFO4rtv45Cxex1jDnTbrh20JETkQeOm9y9IUkpiKjM8Yl1UZskBL X-Received: by 2002:a63:d16:0:b0:41d:fe52:1d2f with SMTP id c22-20020a630d16000000b0041dfe521d2fmr7194970pgl.416.1660930621156; Fri, 19 Aug 2022 10:37:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660930621; cv=none; d=google.com; s=arc-20160816; b=hH2dduGfqa7Juz5EGzkL6Iofe17JJfdlkxuTXHzAfU5K6ztOP17m1R1EWpFqgex4j0 Z96N7EqnraBZnlp+FLN9m/5bsZQS/HgmhbA04IxxEJNZV0/yYsmN69+fnQNgs+s2g4t6 m0RFVmCOl4K2eJ4JtdvwFxlgn04TbgfW0578P5J4jPtvyu+lXsBszqpCieiylr74e5rD kkuULMHuutWeNKrjcvCKVdYSuRgpURmxaexewWCCSp75mF05iQxwjWjyDnQhmZ+RqZMo PztbGbJ84OZUVxGSbWsjzrfMJqPY1cpiBD7x5Lu04mJGOfek3FQSlrcaxCYFpWU83IiR v38Q== 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:in-reply-to :references:mime-version:dkim-signature; bh=tvaOIKhIqDrlMVEW0M57lH2FbWGy6GB7UifbcgzXwMA=; b=mjH66Op7D5+2zTbzhF/uaWCjFMHhgYVT9MoZTnEifUBAihWq8AlGgd5NvapFhfXHeP 78C4D8UeT4kxsp0elsYjdje9hHtutL5Z7McoIccHzfXJSW+zju0JriKTU5YetBXzseTp i1mnGESxlPqAnVfrdzne6tuD9wClNNUqycELkBQVs4o6ABHbND83wv4uaNLL62LNkiqc m6mO/cn2fE8BihNPmkM2kfnHhlLOQXxFuOlh9/g/2dxCUn9pkZwnriDZ+ZJae6i1zfBZ 6myDVNmZ6OMPhYky7i1VIwf6Lfww14vFbMja4+aTV1m8Uru0pBBgBaspCe6IF1x2PpJm OXZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=BWPL5Gwx; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 83-20020a630256000000b0042a67d82fdbsi630033pgc.576.2022.08.19.10.36.50; Fri, 19 Aug 2022 10:37:01 -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=@ventanamicro.com header.s=google header.b=BWPL5Gwx; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354355AbiHSQzO (ORCPT + 99 others); Fri, 19 Aug 2022 12:55:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354458AbiHSQyS (ORCPT ); Fri, 19 Aug 2022 12:54:18 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11AF08C468 for ; Fri, 19 Aug 2022 09:15:38 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id bx38so4936802ljb.10 for ; Fri, 19 Aug 2022 09:15:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=tvaOIKhIqDrlMVEW0M57lH2FbWGy6GB7UifbcgzXwMA=; b=BWPL5Gwxnd6uvirT5L872kNYJ1/RVqqzVTOuvVl0byaKKDwxiC85rh1yDoAgy+gao5 3fM/PAfiyWkXCZVyxHqUcfFbmhYPy/yalvQXBwkN6niIQt9NlbZRxmLDaknpSV7WxZes 6W3rLratY55z6g5aDDOzcW0j5qKK9dzHqN2oGuJv3bQksoxpeK3oULTkk5e+yXmagh9X nMs1GVU8IZy7n3jOC3CR2Y3daqHQw0MDKcxNM3x0oSYiUpgXF/Ky55KZBTxEtmW/oDqN bjQez5aoT2e/EmPFMBB4vkRrqfUUAc9ie3ITUwuIxLOQ5IYE2RFzLLj4WHvjdfBiYrXQ UFBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=tvaOIKhIqDrlMVEW0M57lH2FbWGy6GB7UifbcgzXwMA=; b=RNd0jWHw+Dlsd7P0uEqForBggsQ+ARnfP0ZYim8nYbpPo5EjQWdPYfVYC+vlp0CFQQ npBkoGSBkc4tJN+hWwBxc++ClrdMLi6bCNiAvOUANmh1u8ukGz74bl7mlXLBseVOIvxz FttQMVDA0Va/xnbzvpOGCp0HFxalkxlRaYKK6jfgZ1KbzsKawFBBH2t3GyKyid+vdzgI 2YszVc+0nz6axtvWZqHMrl/rVodSpjihyS7GOZlLy7W3PFfN5C9yFVmDWPa06qVPUTzx nQtdeT6pc8/cCy6yDkuTKaXfEAuJXJeq014d8xbrIzpxHpHeBqEN+UpmbufaSsYf0zu5 6hRw== X-Gm-Message-State: ACgBeo1S2h8L7L8lpiFdRYjJAzw4YS6PWv1BeHETWivCFCO/Sc1iXtk7 BZfnkup5qzFrlu6Y9Qy1dM/wgIGZYdl9CGyl0Fs13Q== X-Received: by 2002:a05:651c:b20:b0:25f:e9c7:ac9e with SMTP id b32-20020a05651c0b2000b0025fe9c7ac9emr2229509ljr.266.1660925685170; Fri, 19 Aug 2022 09:14:45 -0700 (PDT) MIME-Version: 1.0 References: <20220814141237.493457-1-mail@conchuod.ie> In-Reply-To: From: Anup Patel Date: Fri, 19 Aug 2022 21:44:32 +0530 Message-ID: Subject: Re: [PATCH 0/4] misc warning cleanup in arch/risc-v To: Palmer Dabbelt Cc: mail@conchuod.ie, anup@brainfault.org, atishp@atishpatra.org, Paul Walmsley , aou@eecs.berkeley.edu, conor.dooley@microchip.com, guoren@kernel.org, vincent.chen@sifive.com, xianting.tian@linux.alibaba.com, heiko@sntech.de, wangkefeng.wang@huawei.com, tongtiangen@huawei.com, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,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 On Fri, Aug 19, 2022 at 4:32 AM Palmer Dabbelt wrote: > > On Sun, 14 Aug 2022 07:12:34 PDT (-0700), mail@conchuod.ie wrote: > > From: Conor Dooley > > > > Hey all, > > Couple fixes here for most of what's left of the {sparse,} warnings in > > arch/riscv that are still in need of patches. Ben has sent patches > > for the VDSO issue already (although they seem to need rework). > > > > VDSO aside, With this patchset applied, we are left with: > > - cpuinfo_ops missing prototype: this likely needs to go into an > > asm-generic header & I'll send a separate patch for that. > > - Complaints about an error in mm/init.c: > > "error inarch/riscv/mm/init.c:819:2: error: "setup_vm() is > > I think this can be ignored. > > - 600+ -Woverride-init warnings for syscall table setup where > > overriding seems to be the whole point of the macro. > > - Warnings about imported kvm core code. > > - Flexible array member warnings that look like common KVM code > > patterns > > - An unexpected unlock in kvm_riscv_check_vcpu_requests that was added > > intentionally: > > https://lore.kernel.org/all/20220710151105.687193-1-apatel@ventanamicro.com/ > > Is it worth looking into whether that's a false positive or not? > > > > Thanks, > > Conor. > > > > Conor Dooley (4): > > riscv: kvm: vcpu_timer: fix unused variable warnings > > riscv: kvm: move extern sbi_ext declarations to a header > > riscv: signal: fix missing prototype warning > > riscv: traps: add missing prototype > > > > arch/riscv/include/asm/kvm_vcpu_sbi.h | 12 ++++++++++++ > > arch/riscv/include/asm/signal.h | 12 ++++++++++++ > > arch/riscv/include/asm/thread_info.h | 2 ++ > > arch/riscv/kernel/signal.c | 1 + > > arch/riscv/kernel/traps.c | 3 ++- > > arch/riscv/kvm/vcpu_sbi.c | 12 +----------- > > arch/riscv/kvm/vcpu_timer.c | 4 ---- > > 7 files changed, 30 insertions(+), 16 deletions(-) > > create mode 100644 arch/riscv/include/asm/signal.h > > These generally look good to me. Anup handles the KVM bits so I'll let > him chime in there, but > > Reviewed-by: Palmer Dabbelt > Acked-by: Palmer Dabbelt > > on all of them. > > Happy to do some sort of shared tag thing, but it looks like these are > all independent enough that it'd be easier to just split them up. I've > put the non-KVM bits over at palmer/riscv-variable_fixes_without_kvm, if > you guys are all OK splitting this up then I'll go take those onto > riscv/fixes. I'll wait a bit for folks to get a chance to look, so it > won't be for tomorrow morning. Thanks Palmer. I have queued the KVM fixes (first two patches). Regards, Anup > > Thanks! > > -- > kvm-riscv mailing list > kvm-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/kvm-riscv