Message ID | 25cecda80698829cec18721a9d0f058cc69df0cc.1694613528.git.geert@linux-m68k.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp1120529vqx; Wed, 13 Sep 2023 07:20:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHrWfM1FKufSprYE7F7S37Z2lXAKYubruRMeSRzfbMksLzJYZkvQtUAEEWUMqtKUD7cKDjO X-Received: by 2002:a05:6300:8085:b0:136:ea0e:d23 with SMTP id ap5-20020a056300808500b00136ea0e0d23mr2159969pzc.11.1694614810121; Wed, 13 Sep 2023 07:20:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694614810; cv=none; d=google.com; s=arc-20160816; b=cWk1A4KaUV4r6ILHser4VYnUI2pKvpD6A3hF8P9Y0QJXJlf1y0C9yJtF19/20Z9z3x xRyG5IsBWLZH3sf9LdhZa2Xgp1KeHUQSm73WbkQqEBxwS9zvGbl5hZcmprrP06RGTgHS SZ5IJmrFeQQ7MNAfAe8mdZ7qtPfEQLTV7hwUr05zK5ksUAOkpXR25fBTvENOy4puCjf3 bDRK8py1MMEsxIdfDPucsrjgIqIHeJZR5psjDgnSGJuAcpGQbqfKE0FW64MmlhknZ2qv saij8ABDBVcnNk4INRrv6Ig2Mi1/+msfZ3CxFthnxR421fFqYEzPmaOqtoJMIzT/vwsl NXTw== 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; bh=RlKahighAgYKbBDUSo7uiL+BQbSsdMacsBnPgToiEyI=; fh=fKMC3BTGjlLXl5EvEhzqt3WHCynqYJKK7wAqLAOkWUw=; b=mhHSCDtzGqAzErlU9qZ+lWVisbcZn6M0Vl4Sua5Sf9a54QjcA1PEAy9FTxHpTpvIZ8 q+YVe6QOZ0/fepGX+9ZhqQQaGPfhdA1qoN6Z2ptMveOcE3RkmP+1NxBBaXByPj8FAvBo Zo7b88PJ/WYFHgUzp/Tbjz8Ugn9b05iojF5iWn/0hSQsvg2gkUZ0cuOqe4UL2swr/yia aceVvJkpjVxgafbct7o/XO5kaqovwa3l7EHhglFBWDpUpFHvW7BGOs8KnCx7O9WfoQE6 DYoRvhTbJl+9MffgJEkflvI4DTMUa76RWskfpxONk1rD0fPTq8zZ3NCePWjZPqP92cv6 4o4g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id m7-20020a056a00080700b0068fb1a85ec8si7482392pfk.370.2023.09.13.07.20.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 07:20:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id DCDA0804ACC3; Wed, 13 Sep 2023 07:09:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241389AbjIMOJZ (ORCPT <rfc822;pwkd43@gmail.com> + 36 others); Wed, 13 Sep 2023 10:09:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241277AbjIMOI4 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 13 Sep 2023 10:08:56 -0400 Received: from xavier.telenet-ops.be (xavier.telenet-ops.be [IPv6:2a02:1800:120:4::f00:14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8D591BE4 for <linux-kernel@vger.kernel.org>; Wed, 13 Sep 2023 07:08:50 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed40:f674:9611:cd05:f25a]) by xavier.telenet-ops.be with bizsmtp id lS8m2A00f3fvA4V01S8m2Z; Wed, 13 Sep 2023 16:08:48 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from <geert@linux-m68k.org>) id 1qgQXd-003crP-Dv; Wed, 13 Sep 2023 16:08:46 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from <geert@linux-m68k.org>) id 1qgQXu-00FV3z-PK; Wed, 13 Sep 2023 16:08:46 +0200 From: Geert Uytterhoeven <geert@linux-m68k.org> To: linux-m68k@lists.linux-m68k.org Cc: Arnd Bergmann <arnd@arndb.de>, Finn Thain <fthain@linux-m68k.org>, Michael Schmitz <schmitzmic@gmail.com>, Philip Blundell <philb@gnu.org>, Greg Ungerer <gerg@linux-m68k.org>, Joshua Thompson <funaho@jurai.org>, Sam Creasey <sammy@sammy.net>, Laurent Vivier <laurent@vivier.eu>, linux-kernel@vger.kernel.org, Geert Uytterhoeven <geert@linux-m68k.org> Subject: [PATCH v2 08/52] m68k: kernel: Add and use "signal.h" Date: Wed, 13 Sep 2023 16:07:58 +0200 Message-Id: <25cecda80698829cec18721a9d0f058cc69df0cc.1694613528.git.geert@linux-m68k.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <cover.1694613528.git.geert@linux-m68k.org> References: <cover.1694613528.git.geert@linux-m68k.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 13 Sep 2023 07:09:30 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776932418795875470 X-GMAIL-MSGID: 1776932418795875470 |
Series |
m68k: W=1 fixes
|
|
Commit Message
Geert Uytterhoeven
Sept. 13, 2023, 2:07 p.m. UTC
When building with W=1: arch/m68k/kernel/signal.c:756:18: warning: no previous prototype for ‘do_sigreturn’ [-Wmissing-prototypes] 756 | asmlinkage void *do_sigreturn(struct pt_regs *regs, struct switch_stack *sw) | ^~~~~~~~~~~~ arch/m68k/kernel/signal.c:783:18: warning: no previous prototype for ‘do_rt_sigreturn’ [-Wmissing-prototypes] 783 | asmlinkage void *do_rt_sigreturn(struct pt_regs *regs, struct switch_stack *sw) | ^~~~~~~~~~~~~~~ arch/m68k/kernel/signal.c:1112:17: warning: no previous prototype for ‘do_notify_resume’ [-Wmissing-prototypes] 1112 | asmlinkage void do_notify_resume(struct pt_regs *regs) | ^~~~~~~~~~~~~~~~ Fix this by introducing a new header file "signal.h" for holding the prototypes of functions implemented in arch/m68k/kernel/signal.c. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Arnd Bergmann <arnd@arndb.de> --- v2: - Add Acked-by. --- arch/m68k/kernel/signal.c | 2 ++ arch/m68k/kernel/signal.h | 7 +++++++ 2 files changed, 9 insertions(+) create mode 100644 arch/m68k/kernel/signal.h
diff --git a/arch/m68k/kernel/signal.c b/arch/m68k/kernel/signal.c index 459c5ff69fcfa126..e628b859ef21beaf 100644 --- a/arch/m68k/kernel/signal.c +++ b/arch/m68k/kernel/signal.c @@ -51,6 +51,8 @@ #include <asm/ucontext.h> #include <asm/cacheflush.h> +#include "signal.h" + #ifdef CONFIG_MMU /* diff --git a/arch/m68k/kernel/signal.h b/arch/m68k/kernel/signal.h new file mode 100644 index 0000000000000000..498d84f828202541 --- /dev/null +++ b/arch/m68k/kernel/signal.h @@ -0,0 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <linux/linkage.h> + +asmlinkage void do_notify_resume(struct pt_regs *regs); +asmlinkage void *do_sigreturn(struct pt_regs *regs, struct switch_stack *sw); +asmlinkage void *do_rt_sigreturn(struct pt_regs *regs, struct switch_stack *sw);