Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3051256rwe; Mon, 29 Aug 2022 05:10:15 -0700 (PDT) X-Google-Smtp-Source: AA6agR5Nph3Ini1s/MisO+GKMrjEmm7ggXVIIYu94Tzq/9uuw43ctvZv9Ipl2ieLX9YcAtL4CeCl X-Received: by 2002:aa7:c9c2:0:b0:440:b458:9403 with SMTP id i2-20020aa7c9c2000000b00440b4589403mr15996713edt.132.1661775015228; Mon, 29 Aug 2022 05:10:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661775015; cv=none; d=google.com; s=arc-20160816; b=jq3bcPyo/N2RAXneDmb4FbTf0F9pQsrMv7tFqPYtpBYzqFMg/jjcfP5ZhyJnZObSFo LcimtO31cBaR8IBldK23FVGbapW7mnScfK1p+Cu8bgs1Io17t2tlyJKGwc6FOkJYFMxr IogRgoTlbAUdMa301vmYpdpc6PRfUOwzsM16GDb6efiNXEZhecSYt7GHVpUgQcZVzkur WlSSEMaRWVnz8kI+BIXqC6eDPvxJoifPclkvYD3UUEdCI3rJlhvny97p9Mvs8BIHHDe0 yN/ywgRnBB/hs7ZKa0fqx/kxwiXuBXh9UWEBu3CYBMAJXxwL+S+zn3Tt/a1ec+i7n27e L8sQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=veZ8NFbsLLafJMgF6XITQ2MVofzFX4NgwBvIG4WostM=; b=D8di+g1RMxt5fFfEOvhXKkR/shyxMR7NfBT23yBhPRuLX+YQSOlucd5pQp+q/lcV8x RVgfPq0EwSKjEdRi8351ObwtoDnGu14q26sf4n6KJOZyY0qyeYVkuNlOZT+Qu357nCaP VI6CjWpdpnfNegYi9kHLZIp/XT1/tRcM/gR6mhU3+ny179iAU0kGX0Zb7K2dO9NoWs3o kwvUUIV2tJaFWWSv6F6qK7mXvYF0zO6rpJRhuzcWyTjRKCxzDvlJaJiiRxXehoYVC7GD ht27Vn7ejomRDQnc/n142nWXOCTdJ2Jh9q+qJUUA6bObOUWyVJuWesYVDO7slThSGAIs OoPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=DZQNn3w+; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hb11-20020a170907160b00b007313314bb73si6292320ejc.806.2022.08.29.05.09.46; Mon, 29 Aug 2022 05:10:15 -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=@linuxfoundation.org header.s=korg header.b=DZQNn3w+; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232514AbiH2Lco (ORCPT + 99 others); Mon, 29 Aug 2022 07:32:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232727AbiH2L3q (ORCPT ); Mon, 29 Aug 2022 07:29:46 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8B087B287; Mon, 29 Aug 2022 04:18:17 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id D03F6B80E4C; Mon, 29 Aug 2022 11:18:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 155EBC433C1; Mon, 29 Aug 2022 11:18:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661771881; bh=+V/D1GHL9qP5qXMTVQSMo8g0Czk/LRtjnEWZXR0z0IM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DZQNn3w+NctsR+esguj4zA3BCm8eOK5QltKJF0TgDqY4deftZT1/LO6Fn5sGgqFV+ cDneZqKseAgAITTtTqSnMDUOZwFRHLic1jsSQFCiXY+adW37pZeORvQmi8SKFsIVmP Z+WDMOINMLPVinGsGF6JZNC9ds+dmIN6vY802Fd8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Conor Dooley , Palmer Dabbelt Subject: [PATCH 5.19 129/158] riscv: signal: fix missing prototype warning Date: Mon, 29 Aug 2022 12:59:39 +0200 Message-Id: <20220829105814.497687057@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220829105808.828227973@linuxfoundation.org> References: <20220829105808.828227973@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 commit b5c3aca86d2698c4850b6ee8b341938025d2780c upstream. 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 Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20220814141237.493457-4-mail@conchuod.ie Signed-off-by: Palmer Dabbelt Signed-off-by: Greg Kroah-Hartman --- 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 --- /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 --- a/arch/riscv/kernel/signal.c +++ b/arch/riscv/kernel/signal.c @@ -15,6 +15,7 @@ #include #include +#include #include #include #include