Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1584667rwb; Sun, 14 Aug 2022 07:15:24 -0700 (PDT) X-Google-Smtp-Source: AA6agR6Z7uqsYQlGDd5W36aO5IWovi1by4qxdlFqlbHThTSTRNAG2GTt3eKWS24nD6/37G9+ilQB X-Received: by 2002:a05:6402:5249:b0:43c:cb3e:d7f8 with SMTP id t9-20020a056402524900b0043ccb3ed7f8mr11107210edd.56.1660486524164; Sun, 14 Aug 2022 07:15:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660486524; cv=none; d=google.com; s=arc-20160816; b=lBL7HBlvqWlvsl4n8lKR1XPEaAOQ8qfNCVw3i+bFBWS1lcfZJVBGDglPtDoDvvqoRJ 7uD3b3RhBdoEnpbPXdN1ixrqs9WZE2/1fGu/w/DMG0LNr40/Eow9ZbRg0VcPAzA0vJda DcKBhzAE3/Iz1CuJSsoT3OK0qURzKUubV4vbrkkxfCPQxTrjfd53EtocASJCHy2THDUT BwbdxAauA3PnNia39wvO9Z1Mwr7PxcWLoX0SwB+NxL5c3JDQErJ6vEs4kzfsU8DE5ZJE wMpdsRZs0OHemTKWESf0K3m+Au/Cr24Pi0NN6uTKvRt+soBVDeoUn4GN2prFBF0YPiC4 dBJg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=pPv0l6vD5WlLpI1nTN7zzV3sMR7lS/dRIy37KSKLV6k=; b=QmA2bilpma6M+E1KCp1P9h36JrfBdIJKpTOI4BE0O/njjXlYxySjhK2geLXsax0aPh etfl4HTnNC15NiklFciNK5Fjtq/5+7ODtbmO9hcwIAEvcvE2eVCG+tGBOdqXqltR/2qO edZDg//si1VXmjohsg/RGtcRN+qMCUdbHEjnKGWs1vS2HcQcH+m7CQAApWozycv0hOYR Qf3XUxf+dVDACINXhDBNG2XUtaLmS90lZ4dFrHmS2z6CKcFp/8Q/HtbqdODUQghdmAMA UpCpImqqXhGpveUI3j0V7y7mmb/rnHRn0ZRh6R0BO0SRAPodNRIzejv7/KtQdaau5hab I6Nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@conchuod.ie header.s=google header.b="HMMTLU/p"; 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 r18-20020a170906c29200b0073146c420dbsi4672226ejz.479.2022.08.14.07.14.58; Sun, 14 Aug 2022 07:15:24 -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="HMMTLU/p"; 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 S239662AbiHNONF (ORCPT + 99 others); Sun, 14 Aug 2022 10:13:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239471AbiHNOM5 (ORCPT ); Sun, 14 Aug 2022 10:12:57 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2BCD9FD0 for ; Sun, 14 Aug 2022 07:12:55 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id e27so1639241wra.11 for ; Sun, 14 Aug 2022 07:12:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=conchuod.ie; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=pPv0l6vD5WlLpI1nTN7zzV3sMR7lS/dRIy37KSKLV6k=; b=HMMTLU/p8YLEHSGr0JdrSHHzL+KPSzr/2SbHVIYZPefUDLh0i6BEpVFmoM7PonqAQu XHK1xmVw1UBg2BPE8d6h3iPvrE+h3Ms+3mRmDMA9Wb50IKTeWvZ0qIOlXZ1ZkoUbFGHE 0mUhMOI5/9Bp3r2iu5qSOoF2uZw6OohSrtuVWL1610+z/NlAO6QENPP2PWA5I1CD3+Ng euh7jve2sSLkFojItamUEEE3h9vElikeXBeEWacM1nyspNJDM6MQj9pdpf6uA3YdvvbX JHdWK+memg4nFTSgdmc6BoFrjCm7SFf/6eVZhXMvj+kHJE/DRuNDbHBIhxDKgeNhP0WF Scrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=pPv0l6vD5WlLpI1nTN7zzV3sMR7lS/dRIy37KSKLV6k=; b=i3D3ps5BHSBL1M52fw26qOSqobVrMt+qLVyVESCllCTx3eoADyyoUvVhq6RkYiTXqf PCSDOwf8PxwqQOCsqrj7XYz/Lu6W+pmYPWlc0aPf1cIN8H2z/Wg2gjU5cu7AtRxeyYL3 j7VHVE/Va8lnc8wsqHDIdTrXUrTEAkXgqdNZXti9Gl1mOxXH246pxDiTIpTRDDBcOTrE fDaL69DdB8/T7ZrXcY9yCXnlxCpgGsMcnNhov8yE+D7HWs2l5Nar7tb92hZ3aksmziBA lTSyjOmlj0mumXWgxDppoPl2Au8EL0Hk7btOrUnhDXM1JIGYhmvpNu8z0cgubGcBpYoH t/oA== X-Gm-Message-State: ACgBeo0OXyRv4sz2MhNvUZtII8TAmu2kJxbrQ+KXIRvN38mXTdWX7Hc0 Ta+YpJXnaeqAsKiZ3KxQX/1knA== X-Received: by 2002:a5d:4705:0:b0:21f:3890:8619 with SMTP id y5-20020a5d4705000000b0021f38908619mr6285685wrq.104.1660486374334; Sun, 14 Aug 2022 07:12:54 -0700 (PDT) Received: from henark71.. ([109.76.58.63]) by smtp.gmail.com with ESMTPSA id b8-20020adfde08000000b0021db7b0162esm4625419wrm.105.2022.08.14.07.12.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Aug 2022 07:12:53 -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 3/4] riscv: signal: fix missing prototype warning Date: Sun, 14 Aug 2022 15:12:37 +0100 Message-Id: <20220814141237.493457-4-mail@conchuod.ie> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220814141237.493457-1-mail@conchuod.ie> References: <20220814141237.493457-1-mail@conchuod.ie> 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 Fix the warning: arch/riscv/kernel/signal.c:316:27: warning: no previous prototype for function 'do_notify_resume' [-Wmissing-prototypes] asmlinkage __visible void do_notify_resume(struct pt_regs *regs, All other functions in the file are static & none of the existing headers stood out as an obvious location. Create signal.h to hold the declaration. Fixes: e2c0cdfba7f6 ("RISC-V: User-facing API") Signed-off-by: Conor Dooley --- arch/riscv/include/asm/signal.h | 12 ++++++++++++ arch/riscv/kernel/signal.c | 1 + 2 files changed, 13 insertions(+) create mode 100644 arch/riscv/include/asm/signal.h diff --git a/arch/riscv/include/asm/signal.h b/arch/riscv/include/asm/signal.h new file mode 100644 index 000000000000..532c29ef0376 --- /dev/null +++ b/arch/riscv/include/asm/signal.h @@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#ifndef __ASM_SIGNAL_H +#define __ASM_SIGNAL_H + +#include +#include + +asmlinkage __visible +void do_notify_resume(struct pt_regs *regs, unsigned long thread_info_flags); + +#endif diff --git a/arch/riscv/kernel/signal.c b/arch/riscv/kernel/signal.c index 38b05ca6fe66..5a2de6b6f882 100644 --- a/arch/riscv/kernel/signal.c +++ b/arch/riscv/kernel/signal.c @@ -15,6 +15,7 @@ #include #include +#include #include #include #include -- 2.37.1