Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp430207lqz; Sat, 30 Mar 2024 02:58:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVr+0/tUxFnV6i1GLZ3jHm+tPKzgFbO5eC35l4Y5jTSnTvFKoAQHYfBhftBCJfEoMaWlhaRch2yZRghp0e27zN1CWdO3a21zuJz/wByQA== X-Google-Smtp-Source: AGHT+IH6Ba+3EMQc9d/8liYlhOyRfEn20thCE3yRoW9TsWujlLPNA+JkOkVaj2/zPECuLmTSO3YL X-Received: by 2002:a17:906:9a8d:b0:a47:38c0:fb4e with SMTP id ag13-20020a1709069a8d00b00a4738c0fb4emr2619792ejc.19.1711792705934; Sat, 30 Mar 2024 02:58:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711792705; cv=pass; d=google.com; s=arc-20160816; b=ZH264xmwuNDXSMxtLZLN/Q59Xv+esJbYUvzkl1PdFVjN2mX7LSuKgR4RRebwkQPZDC doMHnp2AW2QtVU4nwwThJe8869XsRYlYnk6yha4rJKJdoe2BS0uxEVIKWYHLvrVPFkxF dFbODP/slYSzANH5+fpzHlZDv/kOfuDRCj9FaQoI5dPO4MN1WbVr/und1KtCtifRnkh4 OhPDgG1K+sTbWF23rLVVqC8X+pf4mLg8IVxpR4hCyYKVJ5SxzDxL/6RpiajTaOHdDqun eGZwNGwNp4FQ/jXSeAS2dN6mG2ha8Y7LWCIg8/UhsLPOe3fWrckEHQRyUqkGKrIYxdpQ hCGw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=NpofcH1bxNVKJkGRKOuj3EUAJdr7F5v4nW+//zdo1Cc=; fh=GXoUT2HKXUQzXvT30jHaRNwHOEro+CbAiNXRieX5N7A=; b=zJS/oSho/NJiO4AiHt0JShPFRgwob8aiV+wzhIAEiu1gMERtFQxerC7jPBn/jpoFgK NZulP3gzUqg+O28LDjbFk84T3hQQ4XmzwG2uYk8hfprqajEHBvtey3oTSDXTdJBAH8+R Whxlw834kbUQOS1W31Bz5GG/rp++G/Mjxgm/mlZzhCf7Kg6s0+i5Z5nuHplwbZ3bq4cu EgVCrB78OsF8x9WW0rJP2vTNGhp3JAleae/vUcB3DA7+FXn3qBldHxLl6FUs4wQHixPl 6vrpno2xxmUVWuFVGva0V2wzEf1N98YspdmIQQFraOwGYtaxJLirkMkzMA+kJq3YKTBN BKOw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FMzKNsWc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-125655-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125655-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id lh14-20020a170906f8ce00b00a47154bd6d9si2654528ejb.431.2024.03.30.02.58.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Mar 2024 02:58:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-125655-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FMzKNsWc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-125655-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125655-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 791D31F2230E for ; Sat, 30 Mar 2024 09:58:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 46B2A2C197; Sat, 30 Mar 2024 09:57:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FMzKNsWc" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 49D12200DA; Sat, 30 Mar 2024 09:57:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711792677; cv=none; b=uMpLqWXCLVtz4fQaIvlNM2Ofhp/wV5QAciXitAUA4I2TGy9PZH+qNRclpGsAfAlGCdmuqdyy3i8yqnH4KHLoDBVjQpeD6aBkJn1mcR8HxAaxnLkLa/GVhMNZ7z93uN+CHsyf3gG+ozltxhGYpwzGtzrsg0/jbyvnOYD2+X5z600= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711792677; c=relaxed/simple; bh=T3eeH+zoBspeTvtzab9Ckmy0OMDrNqIq1L29N8s6Q9U=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=gjnJ4LRjW2v+xMTfEaQ8L+N/8iT+dpdwC+q6yYTExMnBku0lG90y4KKh6a1TMZWeogzt/nxuQeq/SbxVfA8sb6+B7PphidGD6YXznkem8WYaAgNa48FA9JYm5ZiGkA7xijN6vgvo3Q6AbTnhdymMeB/NFnE0M8NQPw/7/hvohVQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FMzKNsWc; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 14627C433B1; Sat, 30 Mar 2024 09:57:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711792677; bh=T3eeH+zoBspeTvtzab9Ckmy0OMDrNqIq1L29N8s6Q9U=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=FMzKNsWcXILkg9NWP1RWTaH1sDIfOWEVXCZqyKVhJyGNJeV5I9ntBz8pNirUMV+rw 7+yP/7PGQSHFc4wEaM1maodIVNi5iSUBTvsmhaHdKR3vu+WFeU3C7uTQW+e9KbolUs 6NqlLfB4XuyYsFeIe8wV1J12hfpgjlz7YB8e1o0Fzw2NKHn7+W0/SB/Hh9AI+Sh5Dx jUE0ac0twcHgKNx1yZC8vQOKuUKihoQFmUtjSFT+zKhMS8R0FNYqjKnQnzYJyc5xAr 4/hgpNgeZQGLZNffUGVPlAAAFnhTH60fP9KSdwnTAAoHRFnqKey4f9AsZ+z4Ge8LlP ouHMS1W257asw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0BB3DCD1291; Sat, 30 Mar 2024 09:57:57 +0000 (UTC) From: Sam Ravnborg via B4 Relay Date: Sat, 30 Mar 2024 10:57:41 +0100 Subject: [PATCH 05/10] sparc64: Fix prototype warning for uprobe_trap Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240330-sparc64-warnings-v1-5-37201023ee2f@ravnborg.org> References: <20240330-sparc64-warnings-v1-0-37201023ee2f@ravnborg.org> In-Reply-To: <20240330-sparc64-warnings-v1-0-37201023ee2f@ravnborg.org> To: Andreas Larsson , "David S. Miller" , sparclinux@vger.kernel.org Cc: Nick Bowler , linux-kernel@vger.kernel.org, Arnd Bergmann , Sam Ravnborg X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1711792675; l=1615; i=sam@ravnborg.org; s=20230107; h=from:subject:message-id; bh=sf6irUkOpJPOHLMvdHazAyqgENdDMFjW8tXTw6Ir0YU=; b=Gfn8FAdb7ELFmL9Xcub36vvtnz7E7OCSYIXAo8fV5xyY4x0+njqdmCR+uM9iEVVY8///Z73EpFA4 RPXfaePaAJcWQc+Vj5Y6mTgZtSJLBCRZRV1jUnnsJYbTcN+SmQ1Y X-Developer-Key: i=sam@ravnborg.org; a=ed25519; pk=R0+pqV7BRYOAeOIGkyOrSNke7arx5y3LkEuNi37YEyU= X-Endpoint-Received: by B4 Relay for sam@ravnborg.org/20230107 with auth_id=22 X-Original-From: Sam Ravnborg Reply-To: sam@ravnborg.org From: Sam Ravnborg Fix the following warning: arch/sparc/kernel/uprobes.c:237:17: warning: no previous prototype for ‘uprobe_trap’ Add a prototype to kernel/kernel.h to silence the warning. This is a fix already used for other trap handlers. Signed-off-by: Sam Ravnborg Cc: Andreas Larsson Cc: "David S. Miller" --- arch/sparc/kernel/kernel.h | 4 ++++ arch/sparc/kernel/uprobes.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/arch/sparc/kernel/kernel.h b/arch/sparc/kernel/kernel.h index a8fb7c0bf053..8328a3b78a44 100644 --- a/arch/sparc/kernel/kernel.h +++ b/arch/sparc/kernel/kernel.h @@ -40,6 +40,10 @@ int handle_popc(u32 insn, struct pt_regs *regs); void handle_lddfmna(struct pt_regs *regs, unsigned long sfar, unsigned long sfsr); void handle_stdfmna(struct pt_regs *regs, unsigned long sfar, unsigned long sfsr); +/* uprobes.c */ +asmlinkage void uprobe_trap(struct pt_regs *regs, + unsigned long trap_level); + /* smp_64.c */ void __irq_entry smp_call_function_client(int irq, struct pt_regs *regs); void __irq_entry smp_call_function_single_client(int irq, struct pt_regs *regs); diff --git a/arch/sparc/kernel/uprobes.c b/arch/sparc/kernel/uprobes.c index 1a0600206bf5..305017bec164 100644 --- a/arch/sparc/kernel/uprobes.c +++ b/arch/sparc/kernel/uprobes.c @@ -18,6 +18,8 @@ #include +#include "kernel.h" + /* Compute the address of the breakpoint instruction and return it. * * Note that uprobe_get_swbp_addr is defined as a weak symbol in -- 2.34.1