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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 93E14C25B08 for ; Sun, 14 Aug 2022 14:12:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239538AbiHNOM6 (ORCPT ); Sun, 14 Aug 2022 10:12:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230071AbiHNOMx (ORCPT ); Sun, 14 Aug 2022 10:12:53 -0400 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36EC395B2 for ; Sun, 14 Aug 2022 07:12:52 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id v3so6386720wrp.0 for ; Sun, 14 Aug 2022 07:12:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=conchuod.ie; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=K+4ztMrZDye6S2odnUAg2YD+Sis7k4asg4StIp4L2N8=; b=DfdO3yRHemNBlA7Z4K40epXT6a5mzLgotaT+wjrQ0CCVq94MwNT7SVXLAtyZUDygnw 2lQfcVKnpICBUjlEpWDOPzfaZFnEqrkxVNsNybuTrzGd3fjZDmCT+ReRqE+Auj4sGY8K uRcRa9FbjDb05ahlJI00s/Hk3/l5lZaGjPgWTME/bO5b750e+9+lPtrOES7c0i8tIc8C 8hdkA+jZ3XgV6n68tO+rItWKC9tkWGCXtj9yeDj/SfbPE7NEb7jemnuz+/jhcmNW7ShI 3RdqO1rZca3tYU2ZJk3Fivp43ZyuSk4V+oEveW5vwEiKUcew/VQlHqnG/kHLjQlvWFvt 70Gg== 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:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=K+4ztMrZDye6S2odnUAg2YD+Sis7k4asg4StIp4L2N8=; b=2IAsoN3wmeW8POU8m80wg6MYYLiHeFv26XuI5ESwMCnDsVTg3A4lfAfoL90u2beaDW uYD4dUHDfsQQwILwuPKY9XX6xeh88WVZy50AP8nYJkWHMDGHQe+JF8RzcIAP1d32XA6z Yi/Zx5Cy1Ir5ZxszqWbUzIpSzw0TE8Xy6qZmBkohT7kCdPNH8TylSvFS7bjX4vIMlykN jPw3ZNVwIQEZxfB72khWyC4heQtuWofFLRDr3u9YWRrJqMak/fKU2Sf0/wzsZT8NkngJ jlsYBRo29RcWbEURb3Z1yX6gUjZ88u/VudJKHvMVBpA6DUscbG9kIigfDOfU8vuXcM+o e61Q== X-Gm-Message-State: ACgBeo0o8fX/cQGDwEosY2SV2vDn4yMLCcHLijnlyEkxVic51xqL1aBV xeD04ZKRMMIXHsGLuszYaqi1KA== X-Google-Smtp-Source: AA6agR5PV8qeRAKHvRTEReWxvq3UtoJToFqH0Q4Bl/uP3TlBuYJBu4g3GQwfQjHfdPU5zsQhWphrPw== X-Received: by 2002:adf:fc88:0:b0:220:61dc:d297 with SMTP id g8-20020adffc88000000b0022061dcd297mr6138300wrr.660.1660486370580; Sun, 14 Aug 2022 07:12:50 -0700 (PDT) Received: from henark71.. ([109.76.58.63]) by smtp.gmail.com with ESMTPSA id b8-20020adfde08000000b0021db7b0162esm4625419wrm.105.2022.08.14.07.12.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Aug 2022 07:12:50 -0700 (PDT) From: Conor Dooley To: Anup Patel , Atish Patra , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: Conor Dooley , Guo Ren , Vincent Chen , Xianting Tian , Heiko Stuebner , Kefeng Wang , Tong Tiangen , kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/4] misc warning cleanup in arch/risc-v Date: Sun, 14 Aug 2022 15:12:34 +0100 Message-Id: <20220814141237.493457-1-mail@conchuod.ie> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.37.1