From: Laurent Vivier <laurent@vivier.eu>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
linux-m68k <linux-m68k@lists.linux-m68k.org>,
linux-rtc@vger.kernel.org,
Alessandro Zummo <a.zummo@towertech.it>,
Alexandre Belloni <alexandre.belloni@bootlin.com>
Subject: Re: [PATCH v3 1/2] m68k: add asm/config.h
Date: Mon, 10 Jan 2022 15:52:31 +0100 [thread overview]
Message-ID: <1f913c8f-45fd-32fe-d456-ba4d1920efdf@vivier.eu> (raw)
In-Reply-To: <CAMuHMdWtEZ3WqFw0ihSAAcTP76TdR+jtqjkX+=UwOi+=04xOWQ@mail.gmail.com>
Le 10/01/2022 à 15:21, Geert Uytterhoeven a écrit :
> Hi Laurent,
>
> On Mon, Jan 10, 2022 at 9:42 AM Laurent Vivier <laurent@vivier.eu> wrote:
>> 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 <laurent@vivier.eu>
>
> Thanks for your patch!
>
>> --- /dev/null
>> +++ b/arch/m68k/include/asm/config.h
>> @@ -0,0 +1,33 @@
>> +// SPDX-License-Identifier: GPL-2.0
>
> scripts/checkpatch.pl says this is the wrong one.
I'm going to add a pre-commit git hook to run checkpatch.pl in the future...
>
>> +
>> +/*
>> + * This file contains prototypes provided by each m68k machine
>> + * to parse bootinfo datastructure and to configure the machine
>
> data structures
>
>> + */
>> +
>> +#ifndef _M68K_CONFIG_H
>> +#define _M68K_CONFIG_H
>> +
>> +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 *);
>
> Missing parameter names.
>
> I can fix those while applying.
Please, do.
>
> Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
> i.e. will queue in the m68k for-v5.18 branch.
>
> Gr{oetje,eeting}s,
>
> Geert
Thanks,
Laurent
next prev parent reply other threads:[~2022-01-10 14:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-10 8:42 [PATCH v3 0/2] m68k: Add Virtual M68k Machine Laurent Vivier
2022-01-10 8:42 ` [PATCH v3 1/2] m68k: add asm/config.h Laurent Vivier
2022-01-10 14:21 ` Geert Uytterhoeven
2022-01-10 14:52 ` Laurent Vivier [this message]
2022-01-10 8:42 ` [PATCH v3 2/2] m68k: introduce a virtual m68k machine Laurent Vivier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1f913c8f-45fd-32fe-d456-ba4d1920efdf@vivier.eu \
--to=laurent@vivier.eu \
--cc=a.zummo@towertech.it \
--cc=alexandre.belloni@bootlin.com \
--cc=geert@linux-m68k.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-m68k@lists.linux-m68k.org \
--cc=linux-rtc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox