From patchwork Wed Sep 13 14:08:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 138841 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp1120999vqx; Wed, 13 Sep 2023 07:20:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEhB0gBC1OKsoqC0v6L1US3xqVmaf1DofPJpnGFWlUlNH2hfoQHRfOlbEVVYIY2pQRQJAbJ X-Received: by 2002:a05:6e02:2145:b0:34f:75eb:f81 with SMTP id d5-20020a056e02214500b0034f75eb0f81mr3213609ilv.5.1694614848920; Wed, 13 Sep 2023 07:20:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694614848; cv=none; d=google.com; s=arc-20160816; b=oHULu/9RpVp67V60w/cOCmXXyzU8LyWsLvsbdkM7M7py/PkCu/xx6lAbUFKChd3zBv 699SlKsqh7gxuy5Kor7TRLFLRgyZWQsChlheuaxKVp1An1XU71I90pM+Mjw9Huke8d0n wJZ9Ed2qkBM0RS0ozHmH2W/KB10+dJekYKCmtq9equG9ygBtZMauLRpwawpw9RmEjTB4 PI7ac9EMXWN6iZPGsY9I+oN776eT4pZQTv33Hyyu0ORUwiqbbRY9kJ2oEShoVmyN/1Qp Dr2eLykO9QU4NPvf/k8+7MX3zayDoUgt9VwB5av0kjgiKEhM8WyWMttYzSCsLAPvNAWo M8oA== 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=jbz+fBVr3aUkfQwAAbDJ2USPsWaHI+N1HSZm5uCW3jo=; fh=fKMC3BTGjlLXl5EvEhzqt3WHCynqYJKK7wAqLAOkWUw=; b=CiYqPG3Jy45qJ7YDjXu8U+jKydK09bh+CsaL+JCIj6gDgX6LDw0rsINEW1uCQ+r9kv kZyXcnEZCwNMsPYFwLM6k7a9FgSpXoui1Xr+g0yUkaKvlPYqce0b0kYi2j9rb7MwBA2l GZsEDZscCbfLjp/5cNkIggEAqA4OqP7+EdyL4KNXS3Wc5G370r+uUIMqEWjT2jcAXVtJ KnBnYOq5VcUVagCeol67cmVo5aUojHvnhSugPUXcN/Q4pYXtAfNWSguxI/Xe8/i8exE1 AhRyIXL36B2ZPlYGFzeJcqSb/6PlkeRmNMTUihIB/enQd8mGiB4bl+9aj3E8N44h6qMv I8/Q== 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 a35-20020a631a63000000b0056c4189d6d9si9711803pgm.836.2023.09.13.07.20.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 07:20:48 -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 CC80A80C056D; Wed, 13 Sep 2023 07:10:31 -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 S241605AbjIMOKW (ORCPT + 36 others); Wed, 13 Sep 2023 10:10:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241397AbjIMOJc (ORCPT ); Wed, 13 Sep 2023 10:09:32 -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 86C951BFE 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 lS8n2A00R3fvA4V06S8n4D; 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 1qgQXe-003ctB-6W; Wed, 13 Sep 2023 16:08:47 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qgQXv-00FV6A-HL; Wed, 13 Sep 2023 16:08:47 +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 35/52] m68k: mvme16x: Add and use "mvme16x.h" Date: Wed, 13 Sep 2023 16:08:25 +0200 Message-Id: <6200cc3b26fad215c4524748af04692e38c5ecd2.1694613528.git.geert@linux-m68k.org> 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:31 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776932459502148136 X-GMAIL-MSGID: 1776932459502148136 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 Acked-by: Arnd Bergmann --- v2: - Add Acked-by. --- 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);