Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp316286pxb; Mon, 31 Jan 2022 23:54:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJz/mfJerUmaJdkKieoKAcyW/NOuZVyy1XDa/N9IHEiZbEuzwistAJcqr2qXYj1naZw/H8gV X-Received: by 2002:aa7:d34d:: with SMTP id m13mr24248631edr.284.1643702051144; Mon, 31 Jan 2022 23:54:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643702051; cv=none; d=google.com; s=arc-20160816; b=wnra5C09P7Xczy4tPh0nn8EcPjDVrDx+lk6cxgWh/rYGZE0Cnt7cFPOVYDgrsme7RD fjBPXF6P0l7nwdjNDBAC1Mn/bPuV9pHwwSPR2hiyVEzLSK5h8uLpM8PxxHF/nUzsj7Wr IgdspQmarlEr8eHO8NJWsM4ghOU+F/IC0rwb0ZoaSIebq9dyPden2/uCuvVqMKK6tOft MDH8Lg1I1o3BCSVWj7RS9vmp8Wo5jTkKxmMnSE46sMRc844D+F9nvWPZok2Qmvqt9b+4 px7/oFmhr48aKJtuamQPyPLDI6n8ys0+3y21OLNrYxGBNkXehJc3v/NG5z7O39t3OFRH QZOQ== 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=rhaxGYpD2WO4PQMOgIWiXCD0ZVjdr0snMtZABawXQXM=; b=ZBDUp6G2cljKjcCRRkwt9ORYFJCs0hA5jfxwB6stA6zO0YfIrUF9mmadxsg5C3+98N 0RBdBJMo0Dkji344gMzaNlCl1D+1qEfCo++TA52QDyjqxy2aAgWRkJJWbd7VAI0Tq2sG u3eO4INz9i1kNrjismmTL2UxDo2JdzJSuTJc9ZCXjOtQvS+v4pcRqvCe27QV6foxOh3o FQPb828vyzpgua+EszdmMImbF/N4Q/uzjhC9y5LfhW0uV8nJ6pg8cvDNz4EuOXPAwqVd M1+37OKKfAyBE1kZwTnL0jeDXPkkgIrN8MD4bcCrN76H+VJus+ZIbwm+ZrSje52q/Ef0 WhlQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d15si8761063edm.562.2022.01.31.23.53.46; Mon, 31 Jan 2022 23:54:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353015AbiA2Sm6 (ORCPT + 99 others); Sat, 29 Jan 2022 13:42:58 -0500 Received: from mout.kundenserver.de ([212.227.17.10]:57313 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244826AbiA2Sm4 (ORCPT ); Sat, 29 Jan 2022 13:42:56 -0500 Received: from quad ([82.142.10.94]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MNLZc-1muhvr16ss-00OsUF; Sat, 29 Jan 2022 19:42:29 +0100 From: Laurent Vivier To: linux-kernel@vger.kernel.org Cc: Alessandro Zummo , Daniel Lezcano , Alexandre Belloni , Thomas Gleixner , Geert Uytterhoeven , Stephen Boyd , linux-m68k@lists.linux-m68k.org, linux-rtc@vger.kernel.org, Jiaxun Yang , Arnd Bergmann , John Stultz , Laurent Vivier Subject: [PATCH v13 1/5] m68k: add asm/config.h Date: Sat, 29 Jan 2022 19:42:21 +0100 Message-Id: <20220129184225.407100-2-laurent@vivier.eu> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220129184225.407100-1-laurent@vivier.eu> References: <20220129184225.407100-1-laurent@vivier.eu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:774je6OltzTn9C5G4dxicOinjsUtlauL08L2DJBb4lII+dtFuz9 nA2kidupU4Jp0N2adtxbiDDDFfidF/0My78s+x4srkwKsHMJvJrY7hXIscrTi1daUpRHgUJ fyj1fwX+qOTY6nA0AIqm1tEw982HF20QgzxLCCldaFzcXWiK4CvKDht7LKfax1hrqH4ga4p 2inf1fwLLld3428AaWFIg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:CNcCpKsRKPQ=:c/tPO0FE/M+FNtkxMg0MVa 16rU1iq/8CibjGDwNx7GW4HUV5SzrX5jtEsWwQMksJSPGzt2sRGVvEzKGcadgZjyzvqw1UlKW 7UCnCaD7MJQ2Wo2raArt477YcJd9BNPoJjWtd+8MX/ezM9uJNG4t8MRjJovvRqSDu3mOtTt9t oJmVLby1MVMBk5ydA6ViTYQCULo1KI3L3i0NBQ/TmBRmZgDRtS6TNY5mXeET9RfGSF9Ui1LQW KGgWVjElLLqv3/rpXpmwtv9hgynOuBS0qTRAaDrQjt1HxIw1NzRmbu2u4GH8H5GDZDSFsdQLd DjnKkaptt6fqs/yesLiURcdAKHAs70Q8rHQRYUOJ0iDSEYA94R3amEO6rtcyLAulhVZmttRs/ 04kDwVbablOztJfhs66PejvL/xp4OFMjfYU44i92vf2mW00O8SmsGRzLWzfVv9Gq1hBy29KE7 HiaSBkoyjpUVYmjSKU+HsaqwCo0mn6R5W6Wl+VC8zTI8ZolS8GneYSm27Xaf59vRRUB+7helw OCVa2iiq/GDPIdzh8naJUTTyyPZSMHEbFfNiZchIceBdeNJJAL+PeUC+hUyhb0oqsqMZp8jUw VeKpo0HWrrWauLe2C8p8aoN0qjThv+WrlLHJG61u6UKkqGrlBK9yWpG/jF+MMk2Gt+jesCGgj A6dhQTj3Dui+WSepXE5i696J8Bd5eDytxVOCs4OC7CwxxseGYWvlIZ+A85codglA9xI8= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org To avoid 'warning: no previous prototype for' error, declare all the parse_bootinfo and config functions prototypes into asm/config.h and include it in arch/m68k/kernel/setup_mm.c and arch/m68k/*/config.c Signed-off-by: Laurent Vivier Reviewed-by: Geert Uytterhoeven --- arch/m68k/amiga/config.c | 1 + arch/m68k/apollo/config.c | 1 + arch/m68k/atari/config.c | 1 + arch/m68k/bvme6000/config.c | 1 + arch/m68k/hp300/config.c | 1 + arch/m68k/include/asm/config.h | 33 +++++++++++++++++++++++++++++++++ arch/m68k/kernel/setup_mm.c | 23 +---------------------- arch/m68k/mac/config.c | 1 + arch/m68k/mvme147/config.c | 1 + arch/m68k/mvme16x/config.c | 1 + arch/m68k/q40/config.c | 1 + 11 files changed, 43 insertions(+), 22 deletions(-) create mode 100644 arch/m68k/include/asm/config.h diff --git a/arch/m68k/amiga/config.c b/arch/m68k/amiga/config.c index be2dfab48fd4..3137b45750df 100644 --- a/arch/m68k/amiga/config.c +++ b/arch/m68k/amiga/config.c @@ -37,6 +37,7 @@ #include #include #include +#include static unsigned long amiga_model; diff --git a/arch/m68k/apollo/config.c b/arch/m68k/apollo/config.c index 581a5f68d102..42a8b8e2b664 100644 --- a/arch/m68k/apollo/config.c +++ b/arch/m68k/apollo/config.c @@ -16,6 +16,7 @@ #include #include #include +#include u_long sio01_physaddr; u_long sio23_physaddr; diff --git a/arch/m68k/atari/config.c b/arch/m68k/atari/config.c index 261a0f57cc9a..38a7c0578105 100644 --- a/arch/m68k/atari/config.c +++ b/arch/m68k/atari/config.c @@ -46,6 +46,7 @@ #include #include #include +#include u_long atari_mch_cookie; EXPORT_SYMBOL(atari_mch_cookie); diff --git a/arch/m68k/bvme6000/config.c b/arch/m68k/bvme6000/config.c index 0c6feafbbd11..9b060d466e03 100644 --- a/arch/m68k/bvme6000/config.c +++ b/arch/m68k/bvme6000/config.c @@ -36,6 +36,7 @@ #include #include #include +#include static void bvme6000_get_model(char *model); extern void bvme6000_sched_init(void); diff --git a/arch/m68k/hp300/config.c b/arch/m68k/hp300/config.c index ce1eb3d3d55d..2c92843397c3 100644 --- a/arch/m68k/hp300/config.c +++ b/arch/m68k/hp300/config.c @@ -22,6 +22,7 @@ #include #include /* readb() and writeb() */ #include +#include #include "time.h" diff --git a/arch/m68k/include/asm/config.h b/arch/m68k/include/asm/config.h new file mode 100644 index 000000000000..aae61070628b --- /dev/null +++ b/arch/m68k/include/asm/config.h @@ -0,0 +1,33 @@ +/* SPDX-License-Identifier: GPL-2.0 */ + +/* + * This file contains prototypes provided by each m68k machine + * to parse bootinfo data structures and to configure the machine + */ + +#ifndef _M68K_CONFIG_H +#define _M68K_CONFIG_H + +extern int amiga_parse_bootinfo(const struct bi_record *record); +extern int atari_parse_bootinfo(const struct bi_record *record); +extern int mac_parse_bootinfo(const struct bi_record *record); +extern int q40_parse_bootinfo(const struct bi_record *record); +extern int bvme6000_parse_bootinfo(const struct bi_record *record); +extern int mvme16x_parse_bootinfo(const struct bi_record *record); +extern int mvme147_parse_bootinfo(const struct bi_record *record); +extern int hp300_parse_bootinfo(const struct bi_record *record); +extern int apollo_parse_bootinfo(const struct bi_record *record); + +extern void config_amiga(void); +extern void config_atari(void); +extern void config_mac(void); +extern void config_sun3(void); +extern void config_apollo(void); +extern void config_mvme147(void); +extern void config_mvme16x(void); +extern void config_bvme6000(void); +extern void config_hp300(void); +extern void config_q40(void); +extern void config_sun3x(void); + +#endif /* _M68K_CONFIG_H */ diff --git a/arch/m68k/kernel/setup_mm.c b/arch/m68k/kernel/setup_mm.c index 49e573b94326..8228275aae3e 100644 --- a/arch/m68k/kernel/setup_mm.c +++ b/arch/m68k/kernel/setup_mm.c @@ -47,6 +47,7 @@ #endif #include #include +#include #if !FPSTATESIZE || !NR_IRQS #warning No CPU/platform type selected, your kernel will not work! @@ -113,28 +114,6 @@ EXPORT_SYMBOL(isa_type); EXPORT_SYMBOL(isa_sex); #endif -extern int amiga_parse_bootinfo(const struct bi_record *); -extern int atari_parse_bootinfo(const struct bi_record *); -extern int mac_parse_bootinfo(const struct bi_record *); -extern int q40_parse_bootinfo(const struct bi_record *); -extern int bvme6000_parse_bootinfo(const struct bi_record *); -extern int mvme16x_parse_bootinfo(const struct bi_record *); -extern int mvme147_parse_bootinfo(const struct bi_record *); -extern int hp300_parse_bootinfo(const struct bi_record *); -extern int apollo_parse_bootinfo(const struct bi_record *); - -extern void config_amiga(void); -extern void config_atari(void); -extern void config_mac(void); -extern void config_sun3(void); -extern void config_apollo(void); -extern void config_mvme147(void); -extern void config_mvme16x(void); -extern void config_bvme6000(void); -extern void config_hp300(void); -extern void config_q40(void); -extern void config_sun3x(void); - #define MASK_256K 0xfffc0000 extern void paging_init(void); diff --git a/arch/m68k/mac/config.c b/arch/m68k/mac/config.c index 5d16f9b47aa9..65d124ec80bb 100644 --- a/arch/m68k/mac/config.c +++ b/arch/m68k/mac/config.c @@ -47,6 +47,7 @@ #include #include #include +#include /* Mac bootinfo struct */ struct mac_booter_data mac_bi_data; diff --git a/arch/m68k/mvme147/config.c b/arch/m68k/mvme147/config.c index dfd6202fd403..b96ea7c76a19 100644 --- a/arch/m68k/mvme147/config.c +++ b/arch/m68k/mvme147/config.c @@ -34,6 +34,7 @@ #include #include #include +#include static void mvme147_get_model(char *model); diff --git a/arch/m68k/mvme16x/config.c b/arch/m68k/mvme16x/config.c index b4422c2dfbbf..88cbdc10925b 100644 --- a/arch/m68k/mvme16x/config.c +++ b/arch/m68k/mvme16x/config.c @@ -37,6 +37,7 @@ #include #include #include +#include extern t_bdid mvme_bdid; diff --git a/arch/m68k/q40/config.c b/arch/m68k/q40/config.c index 5caf1e5be1c2..9237243077ce 100644 --- a/arch/m68k/q40/config.c +++ b/arch/m68k/q40/config.c @@ -34,6 +34,7 @@ #include #include #include +#include extern void q40_init_IRQ(void); static void q40_get_model(char *model); -- 2.34.1