Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp970529rwb; Thu, 18 Aug 2022 16:04:50 -0700 (PDT) X-Google-Smtp-Source: AA6agR5qPYz+LN+G85S5SWAOlIz4nwr2N5WvbzJ5qUG+yIX9v5FQBUMp0eUiNw4RzBTEHA5/s3cb X-Received: by 2002:a63:1d1d:0:b0:41c:3d54:b123 with SMTP id d29-20020a631d1d000000b0041c3d54b123mr4047910pgd.357.1660863890094; Thu, 18 Aug 2022 16:04:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660863890; cv=none; d=google.com; s=arc-20160816; b=anuX1nETLtzQqBFcNslcxsWBSV5dHRV765ofXleaaW9bs6Dr06piSlKqmYYtVRpjxY FyyVWG1myOseAnz19MUxJfKpzEhh4fbpkpfU5gclpS9i662UA/sr7RKyEaTj2395eyn+ gsAz+aR/gJvFQ2UdPhpna8kUlnkmFkmiKYyY8qrFmzfDdit79D7UAXbBATECWlJggQ30 rNdmBeIMfrU1r/eCj4Q33j54oTbtsl0eHkZf+30F/H4+Lj2wDilVrn2ya8aYdjZWFrzX fAlk4iwaACShQrddLuF+s+NCpSnDGqMgnNWMxQxM7phjLu7ln6QiB10yIwXEg/sztadH Bp5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=6F0tHF/oZtPKzXhD+jVdw1jFO81d1wFdaL8SH2xhFCM=; b=z3eOS0u0yjjp1vcUBIZzwiv2Z+TQw/mkB92+yQ3sBHVDxTkELRxD6OpCFhbmHufnRP FrlK27y2ZOvZ/Ret7cJtWMB6Ti/Oe19wtmqkOYixnMcJdrrC848oE8jfuQsUrmLHMtxJ 1ilTaKmGWKjXj0wA/+bntlqUo/zoVH43YDG+ol+F+fz+7I9Jd6LWEerOouUX5crOLqC2 oHf/OEJi4ebR7kCfQCjGy9wL1XMUIGYhjXOqg09QMY/fevYCNZpEQooRz+7Z6HN8WtGn lUkMe6zafsbG2trsh22diYsQc1KG/KWh1BcM17wIzhFws+uRH9VcPtYwvWY47Q8IBsa2 fMww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20210112.gappssmtp.com header.s=20210112 header.b=Jg7kDDyo; 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 f1-20020a17090274c100b0016f1eb1317esi2117875plt.471.2022.08.18.16.04.38; Thu, 18 Aug 2022 16:04:50 -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=@dabbelt-com.20210112.gappssmtp.com header.s=20210112 header.b=Jg7kDDyo; 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 S242629AbiHRXB6 (ORCPT + 99 others); Thu, 18 Aug 2022 19:01:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242362AbiHRXBz (ORCPT ); Thu, 18 Aug 2022 19:01:55 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4542C9EBA for ; Thu, 18 Aug 2022 16:01:52 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id p18so2698121plr.8 for ; Thu, 18 Aug 2022 16:01:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:from:to:cc; bh=6F0tHF/oZtPKzXhD+jVdw1jFO81d1wFdaL8SH2xhFCM=; b=Jg7kDDyoFvyFkN8yuaa10Cba2/J5uDCEOww8js0kJq1QX6PElsft4GDFqrrnjqxVRE h3ADoHa/Ed8N/XNTF4NZpPFQ+qcwh3IMjfeqJ7PQIqhC4fHeVRMWxel+pyRldIgOJ7Yj zpJ+R2QZbkqpdzMKpqe5+BMOblTp2eeYDS53ffc/UnvhTS1L5jAhAxJfwXXVoxpD7w6w ZlZn1AF70HSUDoWWDAgPYZj3D56JBjTFqkid5KeHFMqNfHJ8YXkPiqaVlwe+YMWgkC1Q GfygesNOSmrtUO8VCPBsO6WGLvWjZo1jGnfDSWj5aM/jLL3DlHCbeJ+MfxLNKMTGVPdH qOeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:x-gm-message-state:from:to:cc; bh=6F0tHF/oZtPKzXhD+jVdw1jFO81d1wFdaL8SH2xhFCM=; b=DF4no+Rshi08zg0e1MmXdb998PcCxFRHhUG5D8j6tmLwMoyNwacD5TpWt7AsB9pq51 7Jxq6OugJDrSrCKAcdEWPYiroEM2lONskQOKXtSKfeLcg52QuzLjoM8/NnExYDJddC47 IR2CMtpyJHX8D1UcA+SqKZKrTgbTkMTNxB3EPT/XQC9L81GLzUVBEqHrZSF+3nJS9ROs ltX+m/PvilPfiM6sA9sshVvvHeMK+L3VSixIbYGMpDE3SjtgEWD+ylEvwSuqa31h73pO /vmxk3GmFvmahj/O65e+DGFxcr2hUzIXip3eb0aQ8SpT/N1D4GcROHvqYB0LvI6wojOU tp4Q== X-Gm-Message-State: ACgBeo04p73LKvFThuE7/oTlj/blL0QoNTKzBUqxPmGvAsrEvwPG3EsH Tzvg6kJoDe5fByr0PCkcu9XyNw== X-Received: by 2002:a17:902:e80d:b0:16e:f7bf:34a7 with SMTP id u13-20020a170902e80d00b0016ef7bf34a7mr4519987plg.112.1660863712125; Thu, 18 Aug 2022 16:01:52 -0700 (PDT) Received: from localhost ([50.221.140.186]) by smtp.gmail.com with ESMTPSA id pw15-20020a17090b278f00b001efa332d365sm1987115pjb.33.2022.08.18.16.01.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Aug 2022 16:01:51 -0700 (PDT) Date: Thu, 18 Aug 2022 16:01:51 -0700 (PDT) X-Google-Original-Date: Thu, 18 Aug 2022 16:01:45 PDT (-0700) Subject: Re: [PATCH 0/4] misc warning cleanup in arch/risc-v In-Reply-To: <20220814141237.493457-1-mail@conchuod.ie> CC: 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 From: Palmer Dabbelt To: mail@conchuod.ie Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 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!