Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1584461
| From | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] arm64: traps: Mark __le16, __le32, __user variables properly |
| Date | 2017-02-20 11:10 +0100 |
| Message-ID | <tcT4T-3ij-31@gated-at.bofh.it> (permalink) |
| References | <tbU30-6Np-1@gated-at.bofh.it> <tcoX7-16t-1@gated-at.bofh.it> <tcT4T-3ij-33@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, Feb 20, 2017 at 9:47 AM, Stephen Boyd <stephen.boyd@linaro.org> wrote:
> Quoting Luc Van Oostenryck (2017-02-18 17:58:09)
>> On Fri, Feb 17, 2017 at 08:51:12AM -0800, Stephen Boyd wrote:
>> > arch/arm64/kernel/traps.c:567:10: warning: Initializer entry defined twice
>> > arch/arm64/kernel/traps.c:568:10: also defined here
>> This one I find strange. Can you tell which are those two entries?
>>
>
> This is:
>
> static const char *esr_class_str[] = {
> [0 ... ESR_ELx_EC_MAX] = "UNRECOGNIZED EC",
> [ESR_ELx_EC_UNKNOWN] = "Unknown/Uncategorized",
>
> where we initialize the entire array to an "unknown" value once, and
> then fill in the known values after that. This isn't a very common
> pattern, but it is used from time to time to avoid having lots of lines
> to do the same thing.
I see, yes can be handy but indeed spaese doesn't know about it yet.
Luc
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] arm64: traps: Mark __le16, __le32, __user variables properly Stephen Boyd <stephen.boyd@linaro.org> - 2017-02-17 18:00 +0100
Re: [PATCH] arm64: traps: Mark __le16, __le32, __user variables properly Russell King - ARM Linux <linux@armlinux.org.uk> - 2017-02-17 18:40 +0100
Re: [PATCH] arm64: traps: Mark __le16, __le32, __user variables properly Luc Van Oostenryck <luc.vanoostenryck@gmail.com> - 2017-02-19 03:00 +0100
Re: [PATCH] arm64: traps: Mark __le16, __le32, __user variables properly Luc Van Oostenryck <luc.vanoostenryck@gmail.com> - 2017-02-20 11:10 +0100
Re: [PATCH] arm64: traps: Mark __le16, __le32, __user variables properly Mark Rutland <mark.rutland@arm.com> - 2017-02-20 11:50 +0100
Re: [PATCH] arm64: traps: Mark __le16, __le32, __user variables properly Luc Van Oostenryck <luc.vanoostenryck@gmail.com> - 2017-02-20 22:40 +0100
Re: [PATCH] arm64: traps: Mark __le16, __le32, __user variables properly Will Deacon <will.deacon@arm.com> - 2017-02-21 12:10 +0100
Re: [PATCH] arm64: traps: Mark __le16, __le32, __user variables properly Luc Van Oostenryck <luc.vanoostenryck@gmail.com> - 2017-02-22 14:10 +0100
csiph-web