Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1584311rwb; Sun, 14 Aug 2022 07:15:03 -0700 (PDT) X-Google-Smtp-Source: AA6agR46aG8hu746drqHUOgD1HXIcz54K8ADKD3y8jm9yz5y+FaCaToebz8yv+dlfn9wLsdyLKm4 X-Received: by 2002:a05:6402:3595:b0:43d:710a:3f3f with SMTP id y21-20020a056402359500b0043d710a3f3fmr11095560edc.375.1660486503443; Sun, 14 Aug 2022 07:15:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660486503; cv=none; d=google.com; s=arc-20160816; b=ZPQa6WKironeRyIG5tlWVnT+9cOHK/GxFbH9FeVGDV983DqEPwP/0mTeDg6FCsQDWa 3twKI/6EsOT1sSUUro6mBULdgyf1Sl+FUfv2il9z0DQQ1aNxbKn+SWTGpep0sMVG4Tfu drKFNbQVswFfkFBiAo8RAKfbsOdbdOVr0ZjM/FajsXUyuwPlCkpGjv2gQt5BmH+ldHGE zSmHiuE3xH8lyBpJBa+Y2HjyI6QMqvKRheWqPv2EtWLV/uA1IozM05ELm2Tqx5ZnOLIe ywgrMeTtvdFfXz7X4E9MRmLeLczmNVTGRxdGy0A1iZkXtrETViYOW3AA1iCLK4EIb75y d6/Q== 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:date:subject:cc:to:from:dkim-signature; bh=K+4ztMrZDye6S2odnUAg2YD+Sis7k4asg4StIp4L2N8=; b=Lv8v8Okmw6TV+DKHRUUR48Yu7C0gx0EZvJvaqBA87XDGWFXrE9gXxo+Ch6vlTWUlGc XrSAp9mDom8gAN95OlrG50uCMt/nwzI5P0Zj4ooLQtFxT5O9D4uAfcOUne0e+dXJI3hL t6SG9SgWivrhvEzwEtQ85UXJUXqruF+2LI3Zmroc1I5JR5mrvQh63dXe5WQkbP1BF1W8 c0Eyp3yXTEqLdRP6ntl8M0jn63yr5k7FvfxGiWdbT97KeE8saFGA8EXNfZYA1reUwVOS dKp1ruYATNq8OWe6pEKQk/YF9Nm7Kog3CNCTjt/fiq9n2sYmRjvvroGs3efOGNzdr34+ MRpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@conchuod.ie header.s=google header.b=DfdO3yRH; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=conchuod.ie Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ds15-20020a170907724f00b0072f43ed6e7dsi5973450ejc.351.2022.08.14.07.14.38; Sun, 14 Aug 2022 07:15:03 -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=@conchuod.ie header.s=google header.b=DfdO3yRH; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=conchuod.ie Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239475AbiHNOM5 (ORCPT + 99 others); Sun, 14 Aug 2022 10:12:57 -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-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 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=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 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