From patchwork Wed Sep 13 14:08:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 138843 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp1121037vqx; Wed, 13 Sep 2023 07:20:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGB7EbTnjnGUY05/apY4I1vhYUIFot1ADwLuD3tk0uNhuEqxppRXW1fy0gew8K4sVpBy1F5 X-Received: by 2002:a17:902:ea01:b0:1bd:b8c8:98f8 with SMTP id s1-20020a170902ea0100b001bdb8c898f8mr3430931plg.4.1694614851139; Wed, 13 Sep 2023 07:20:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694614851; cv=none; d=google.com; s=arc-20160816; b=bdwRpejJ2ObfoH9AIuqLdlyvEYbvqzZG1nfedqsKv8yTVytVyfPI5o6OrnpQ1mTDbE SzfpZ+9/Dt2QbNb/7wLVaroUmdxEzxuzKnnivmrRaZWCm+xr5WN73Asd1svFPPrvMpoE ZH2531E2OWQn3pU7UV6tf+1Dnyll2bMq+jfHZGKJ26td4d0jnduIV9rVbMcST2YVDJ0s h4Is4DhPE76KbS4Een87Kb2Rtk7v0jb36vTrZDNbHaI6YB0wl4buDvT5T0A3FQ1UQx7A 6+m8ifX1+zXptAVZHURPXz5bk6rDikuKlnsN3QaHCzK7JM55yuTrddDmxhnHtnNKvraw 99iw== 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=25ES+xcNa/ZinCzxzAg5tyjq4f1ivEBP/VDmT0dK/LQ=; fh=fKMC3BTGjlLXl5EvEhzqt3WHCynqYJKK7wAqLAOkWUw=; b=CCO5jUq53f2nh0JvOlzhsRRQreUYN/nkxF4vlILsw8YLo0SpVLjsrizTYz+tLfBye4 8deJ67YCBa7K87qHcpruK460XQhs+aglNHlCkrwYW4Atp8Ey8dEjAK/N9zX71B9Mu9xq QBo9zAJJMiiEO6raUd/DDuzEJ8wZ8+POvjMhmSCY65qzGTTpq110EkPTUspJ1hWVBJj6 G6fyTQSeQhTNBMhHBxl+bKnMasrBrZQJvwqVGofDGBAREkqYn8rXbOE+aEEKZeSQnu5d U9NFwDx/i1nwJZm6Yfly+jtxuvTkUGaFCiK8o55X7EiaEqLUPGLnWhlceHPmV6hzagva AF6w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id kb14-20020a170903338e00b001b85ca73574si9928308plb.285.2023.09.13.07.20.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 07:20:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 A07E180C0385; Wed, 13 Sep 2023 07:10:14 -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 S241462AbjIMOKG (ORCPT + 36 others); Wed, 13 Sep 2023 10:10:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241344AbjIMOJO (ORCPT ); Wed, 13 Sep 2023 10:09:14 -0400 Received: from albert.telenet-ops.be (albert.telenet-ops.be [IPv6:2a02:1800:110:4::f00:1a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 922781FC8 for ; Wed, 13 Sep 2023 07:08:52 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed40:f674:9611:cd05:f25a]) by albert.telenet-ops.be with bizsmtp id lS8m2A00l3fvA4V06S8n43; 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 ) id 1qgQXd-003crX-FW; Wed, 13 Sep 2023 16:08:46 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qgQXu-00FV49-Qz; Wed, 13 Sep 2023 16:08:46 +0200 From: Geert Uytterhoeven To: linux-m68k@lists.linux-m68k.org Cc: Arnd Bergmann , Finn Thain , Michael Schmitz , Philip Blundell , Greg Ungerer , Joshua Thompson , Sam Creasey , Laurent Vivier , linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v2 10/52] m68k: kernel: Add and use "vectors.h" Date: Wed, 13 Sep 2023 16:08:00 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: 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:10:14 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776932462272318833 X-GMAIL-MSGID: 1776932462272318833 When building with W=1: arch/m68k/kernel/vectors.c:52:13: warning: no previous prototype for ‘base_trap_init’ [-Wmissing-prototypes] 52 | void __init base_trap_init(void) | ^~~~~~~~~~~~~~ Fix this by introducing a new header file "vectors.h" for holding the prototypes of functions implemented in arch/m68k/kernel/vectors.c. Signed-off-by: Geert Uytterhoeven Acked-by: Arnd Bergmann --- v2: - Add Acked-by. --- arch/m68k/kernel/vectors.c | 2 ++ arch/m68k/kernel/vectors.h | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 arch/m68k/kernel/vectors.h diff --git a/arch/m68k/kernel/vectors.c b/arch/m68k/kernel/vectors.c index 68762fc1dc97b4e1..667e848070f4d3d7 100644 --- a/arch/m68k/kernel/vectors.c +++ b/arch/m68k/kernel/vectors.c @@ -28,6 +28,8 @@ #include #include +#include "vectors.h" + /* assembler routines */ asmlinkage void system_call(void); asmlinkage void buserr(void); diff --git a/arch/m68k/kernel/vectors.h b/arch/m68k/kernel/vectors.h new file mode 100644 index 0000000000000000..897330737ec570a5 --- /dev/null +++ b/arch/m68k/kernel/vectors.h @@ -0,0 +1,3 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +void base_trap_init(void);