From patchwork Thu Sep 7 13:41:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 137667 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ab0a:0:b0:3f2:4152:657d with SMTP id m10csp46279vqo; Thu, 7 Sep 2023 10:32:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFIc9qcLIpmNbxNXecGopc4Wb/kk7+5UzrA+UQ0R9hJTDoPZ36NTyE9s+k1IGqbo6QGnxE9 X-Received: by 2002:a05:6512:1313:b0:4fb:89cd:9616 with SMTP id x19-20020a056512131300b004fb89cd9616mr169364lfu.0.1694107972735; Thu, 07 Sep 2023 10:32:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694107972; cv=none; d=google.com; s=arc-20160816; b=czdjB31H7tpwyEQ+641oGe1DJL311D6XE4sSEmEkB6ewIoG+ACk3gTPEJ7Tg00IE71 4yVN8Kntq5nyoqi5wAuKz9/kgI7x31A1Srx9Bqc/sWS/0S/+uBCqRgSh5z864epyE9mS guNuyzTekvTlnyRqEgiW2zxhhptyEt2evCwuRvx52/ZPl54JCas4aCSSZSu2nGJv1DB4 cXAh14Qn83/7Acb12vaaV4f6qXwQ1/lKGzn6/gwQKQ8RuoXv/aaBPjo4b1OcVV7dUQhF jgLMhZEVqfI/4jZlMbmccEjqzbgmV8YNgMOzBL6T9v79DSTadGDIsfT4sj65IapAsIre 9gTg== 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=wkU+Qv/Yjli9uW5JZuTgK/NCiTvIc0KX8BjLbNPu1nE=; fh=fKMC3BTGjlLXl5EvEhzqt3WHCynqYJKK7wAqLAOkWUw=; b=PK6FPzc3BLn3Nlo+gkATa0En8L7N63MIrluxyJ68+fYBC3OmnTexE29bMf6/npY8gJ 9Fb7ibBzy2JWQR9qBYm9/dUwoLULsVl6z76ueGE4QTsG2ifqRsntKuLHZt7yxm4Z3I8Q 2LueAPkT9jhCUKwNsX86SfjaUvNKlRIElVGq7pqHh1DptOm5eEulVawJww/F/0ljQkWH o1gjHlJl9KqJtmrUWd/I5v2L/xOJdlk+9GwsRsoquYH0EO4GfuaLNtiS4IbEf7LNd/iy xF3s1Beiu4jERnT7aZ5A3LDF7vcs0rSDGS8EPFM+8G1aYnMA3K30ZJrRp2bcSiNQMEq1 tdRg== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r10-20020aa7c14a000000b0052559f0e905si46682edp.91.2023.09.07.10.32.41; Thu, 07 Sep 2023 10:32:52 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239713AbjIGQUu (ORCPT + 37 others); Thu, 7 Sep 2023 12:20:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239803AbjIGQUV (ORCPT ); Thu, 7 Sep 2023 12:20:21 -0400 Received: from cantor.telenet-ops.be (cantor.telenet-ops.be [IPv6:2a02:1800:120:4::f00:10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE1773585 for ; Thu, 7 Sep 2023 09:16:15 -0700 (PDT) Received: from xavier.telenet-ops.be (xavier.telenet-ops.be [IPv6:2a02:1800:120:4::f00:14]) by cantor.telenet-ops.be (Postfix) with ESMTPS id 4RhL534xw3z4x8kN for ; Thu, 7 Sep 2023 15:41:59 +0200 (CEST) Received: from ramsan.of.borg ([84.195.187.55]) by xavier.telenet-ops.be with bizsmtp id j1hy2A00A1C8whw011hywq; Thu, 07 Sep 2023 15:41:59 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1qeFGQ-002m9y-SO; Thu, 07 Sep 2023 15:41:58 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qeFGg-00CMhp-4O; Thu, 07 Sep 2023 15:41:58 +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 35/52] m68k: mvme16x: Add and use "mvme16x.h" Date: Thu, 7 Sep 2023 15:41:36 +0200 Message-Id: <84050afd37df01b14804a51d08afa3837492eb30.1694093327.git.geert@linux-m68k.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776400961570983417 X-GMAIL-MSGID: 1776400961570983417 When building with W=1: arch/m68k/mvme16x/config.c:208:6: warning: no previous prototype for ‘mvme16x_cons_write’ [-Wmissing-prototypes] 208 | void mvme16x_cons_write(struct console *co, const char *str, unsigned count) | ^~~~~~~~~~~~~~~~~~ Fix this by introducing a new header file "mvme16x.h" for holding the prototypes of functions implemented in arch/m68k/mvme16x/. Signed-off-by: Geert Uytterhoeven --- arch/m68k/kernel/early_printk.c | 4 ++-- arch/m68k/mvme16x/config.c | 2 ++ arch/m68k/mvme16x/mvme16x.h | 6 ++++++ 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 arch/m68k/mvme16x/mvme16x.h diff --git a/arch/m68k/kernel/early_printk.c b/arch/m68k/kernel/early_printk.c index 7d3fe08a48eb0319..3cc944df04f65ef1 100644 --- a/arch/m68k/kernel/early_printk.c +++ b/arch/m68k/kernel/early_printk.c @@ -12,8 +12,8 @@ #include #include -extern void mvme16x_cons_write(struct console *co, - const char *str, unsigned count); + +#include "../mvme16x/mvme16x.h" asmlinkage void __init debug_cons_nputs(const char *s, unsigned n); diff --git a/arch/m68k/mvme16x/config.c b/arch/m68k/mvme16x/config.c index b6833862ea6b1530..9bb9a33e43c246c4 100644 --- a/arch/m68k/mvme16x/config.c +++ b/arch/m68k/mvme16x/config.c @@ -38,6 +38,8 @@ #include #include +#include "mvme16x.h" + extern t_bdid mvme_bdid; static MK48T08ptr_t volatile rtc = (MK48T08ptr_t)MVME_RTC_BASE; diff --git a/arch/m68k/mvme16x/mvme16x.h b/arch/m68k/mvme16x/mvme16x.h new file mode 100644 index 0000000000000000..159c34b700394116 --- /dev/null +++ b/arch/m68k/mvme16x/mvme16x.h @@ -0,0 +1,6 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +struct console; + +/* config.c */ +void mvme16x_cons_write(struct console *co, const char *str, unsigned count);