Dan Carpenter writes:
> Compare:
>
> foo = kmalloc(sizeof(*foo), GFP_KERNEL);
>
> This says you are allocating enough space for foo. It can be reviewed
> by looking at one line. If you change the type of foo it will still
> work.
>
> foo =
Dan Carpenter writes:
> Compare:
>
> foo = kmalloc(sizeof(*foo), GFP_KERNEL);
>
> This says you are allocating enough space for foo. It can be reviewed
> by looking at one line. If you change the type of foo it will still
> work.
>
> foo = kmalloc(sizeof(struct whatever),
Compare:
foo = kmalloc(sizeof(*foo), GFP_KERNEL);
This says you are allocating enough space for foo. It can be reviewed
by looking at one line. If you change the type of foo it will still
work.
foo = kmalloc(sizeof(struct whatever), GFP_KERNEL);
There isn't enough information
Compare:
foo = kmalloc(sizeof(*foo), GFP_KERNEL);
This says you are allocating enough space for foo. It can be reviewed
by looking at one line. If you change the type of foo it will still
work.
foo = kmalloc(sizeof(struct whatever), GFP_KERNEL);
There isn't enough information
Oops. I sent this email twice. Sorry, about that.
regards,
dan carpenter
Oops. I sent this email twice. Sorry, about that.
regards,
dan carpenter
>> Can it "accidentally" happen that some of them will be really worth
>> also for your precious software development attention?
>
> Given that none of your patches fix any real bugs
Are there any ones which would eventually become "real" also for you?
> and you do your best to ignore any
>> Can it "accidentally" happen that some of them will be really worth
>> also for your precious software development attention?
>
> Given that none of your patches fix any real bugs
Are there any ones which would eventually become "real" also for you?
> and you do your best to ignore any
SF Markus Elfring writes:
>>> How do you value compliance with coding styles?
>>
>> The Linux Coding Style is not a law,
>
> How serious can such guidelines become for software developers?
>
>> nor is it at all perfect.
>
> I got a similar impression. But are there
SF Markus Elfring writes:
>>> How do you value compliance with coding styles?
>>
>> The Linux Coding Style is not a law,
>
> How serious can such guidelines become for software developers?
>
>> nor is it at all perfect.
>
> I got a similar impression. But are there enough items where a mostly
Dan Carpenter writes:
> I am ignoring Markus patches and have told him that he should focus on
> bug fixes. These patches don't add any value and regularly introduce
> bugs.
I think there should be a big fat warning in CodingStyle:
THIS DOCUMENT DOES NOT APPLY TO
Dan Carpenter writes:
> I am ignoring Markus patches and have told him that he should focus on
> bug fixes. These patches don't add any value and regularly introduce
> bugs.
I think there should be a big fat warning in CodingStyle:
THIS DOCUMENT DOES NOT APPLY TO ANY EXISTING KERNEL CODE.
>> How do you value compliance with coding styles?
>
> The Linux Coding Style is not a law,
How serious can such guidelines become for software developers?
> nor is it at all perfect.
I got a similar impression. But are there enough items where a mostly clear
guidance is specified?
> You
>> How do you value compliance with coding styles?
>
> The Linux Coding Style is not a law,
How serious can such guidelines become for software developers?
> nor is it at all perfect.
I got a similar impression. But are there enough items where a mostly clear
guidance is specified?
> You
SF Markus Elfring writes:
but patches that just fix coding style are a bad thing
>>>
>>> When you find such a change opportunity so "bad", are there any
>>> circumstances left over where you would dare to touch the corresponding
>>> source code line.
>>
>>
SF Markus Elfring writes:
but patches that just fix coding style are a bad thing
>>>
>>> When you find such a change opportunity so "bad", are there any
>>> circumstances left over where you would dare to touch the corresponding
>>> source code line.
>>
>> If you actually rewrite the code
Dan Carpenter writes:
> On Thu, Oct 06, 2016 at 11:29:20AM +0200, Richard Weinberger wrote:
>> On Thu, Oct 6, 2016 at 11:22 AM, SF Markus Elfring
>> wrote:
>> > From: Markus Elfring
>> > Date: Tue, 4 Oct
Dan Carpenter writes:
> On Thu, Oct 06, 2016 at 11:29:20AM +0200, Richard Weinberger wrote:
>> On Thu, Oct 6, 2016 at 11:22 AM, SF Markus Elfring
>> wrote:
>> > From: Markus Elfring
>> > Date: Tue, 4 Oct 2016 21:46:18 +0200
>> >
>> > Replace the specification of a data structure by a pointer
SF Markus Elfring writes:
Replace the specification of a data structure by a pointer dereference
as the parameter for the operator "sizeof" to make the corresponding size
determination a bit safer.
>>>
>>> Isn't this pure matter of taste?
>>> Some
SF Markus Elfring writes:
Replace the specification of a data structure by a pointer dereference
as the parameter for the operator "sizeof" to make the corresponding size
determination a bit safer.
>>>
>>> Isn't this pure matter of taste?
>>> Some developers prefer sizeof(*ptr)
> I am ignoring Markus patches
It's a pity that you chose such a reaction.
> and have told him that he should focus on bug fixes.
I find that I suggest to improve something. Could you admit a few times
that I found a "bug" you care also about at other source code places?
> These patches
> I am ignoring Markus patches
It's a pity that you chose such a reaction.
> and have told him that he should focus on bug fixes.
I find that I suggest to improve something. Could you admit a few times
that I found a "bug" you care also about at other source code places?
> These patches
On Thu, Oct 06, 2016 at 11:29:20AM +0200, Richard Weinberger wrote:
> On Thu, Oct 6, 2016 at 11:22 AM, SF Markus Elfring
> wrote:
> > From: Markus Elfring
> > Date: Tue, 4 Oct 2016 21:46:18 +0200
> >
> > Replace the specification of a
On Thu, Oct 06, 2016 at 11:29:20AM +0200, Richard Weinberger wrote:
> On Thu, Oct 6, 2016 at 11:22 AM, SF Markus Elfring
> wrote:
> > From: Markus Elfring
> > Date: Tue, 4 Oct 2016 21:46:18 +0200
> >
> > Replace the specification of a data structure by a pointer dereference
> > as the parameter
>>> but patches that just fix coding style are a bad thing
>>
>> When you find such a change opportunity so "bad", are there any
>> circumstances left over where you would dare to touch the corresponding
>> source code line.
>
> If you actually rewrite the code or fix some real bug there.
Do
>>> but patches that just fix coding style are a bad thing
>>
>> When you find such a change opportunity so "bad", are there any
>> circumstances left over where you would dare to touch the corresponding
>> source code line.
>
> If you actually rewrite the code or fix some real bug there.
Do
On Fri, 7 Oct 2016, SF Markus Elfring wrote:
> > but patches that just fix coding style are a bad thing
>
> When you find such a change opportunity so "bad", are there any
> circumstances left over where you would dare to touch the corresponding
> source code line.
If you actually rewrite the
On Fri, 7 Oct 2016, SF Markus Elfring wrote:
> > but patches that just fix coding style are a bad thing
>
> When you find such a change opportunity so "bad", are there any
> circumstances left over where you would dare to touch the corresponding
> source code line.
If you actually rewrite the
>> Why do various software developers bother about coding style specifications
>> at all then?
> Coding style is important,
Thanks that you "dare" to express also such an opinion.
> but patches that just fix coding style are a bad thing
When you find such a change opportunity so "bad", are
>> Why do various software developers bother about coding style specifications
>> at all then?
> Coding style is important,
Thanks that you "dare" to express also such an opinion.
> but patches that just fix coding style are a bad thing
When you find such a change opportunity so "bad", are
On 2016-10-07 06:50, SF Markus Elfring wrote:
Linux has tons of issues, fixes for real problems are very welcome.
Is a spectrum of software improvements to reconsider there?
But coding style bike shedding is just a waste of time.
Why do various software developers bother about coding
On 2016-10-07 06:50, SF Markus Elfring wrote:
Linux has tons of issues, fixes for real problems are very welcome.
Is a spectrum of software improvements to reconsider there?
But coding style bike shedding is just a waste of time.
Why do various software developers bother about coding
> Linux has tons of issues, fixes for real problems are very welcome.
Is a spectrum of software improvements to reconsider there?
> But coding style bike shedding is just a waste of time.
Why do various software developers bother about coding style specifications
at all then?
Regards,
Markus
> Linux has tons of issues, fixes for real problems are very welcome.
Is a spectrum of software improvements to reconsider there?
> But coding style bike shedding is just a waste of time.
Why do various software developers bother about coding style specifications
at all then?
Regards,
Markus
On 07.10.2016 10:53, SF Markus Elfring wrote:
Replace the specification of a data structure by a pointer dereference
as the parameter for the operator "sizeof" to make the corresponding size
determination a bit safer.
>>>
>>> Isn't this pure matter of taste?
>>> Some developers
On 07.10.2016 10:53, SF Markus Elfring wrote:
Replace the specification of a data structure by a pointer dereference
as the parameter for the operator "sizeof" to make the corresponding size
determination a bit safer.
>>>
>>> Isn't this pure matter of taste?
>>> Some developers
>>> Replace the specification of a data structure by a pointer dereference
>>> as the parameter for the operator "sizeof" to make the corresponding size
>>> determination a bit safer.
>>
>> Isn't this pure matter of taste?
>> Some developers prefer sizeof(*ptr) because it is easier to type, other
>>> Replace the specification of a data structure by a pointer dereference
>>> as the parameter for the operator "sizeof" to make the corresponding size
>>> determination a bit safer.
>>
>> Isn't this pure matter of taste?
>> Some developers prefer sizeof(*ptr) because it is easier to type, other
On 07.10.2016 09:53, Dan Carpenter wrote:
> On Thu, Oct 06, 2016 at 11:29:20AM +0200, Richard Weinberger wrote:
>> On Thu, Oct 6, 2016 at 11:22 AM, SF Markus Elfring
>> wrote:
>>> From: Markus Elfring
>>> Date: Tue, 4 Oct 2016
On 07.10.2016 09:53, Dan Carpenter wrote:
> On Thu, Oct 06, 2016 at 11:29:20AM +0200, Richard Weinberger wrote:
>> On Thu, Oct 6, 2016 at 11:22 AM, SF Markus Elfring
>> wrote:
>>> From: Markus Elfring
>>> Date: Tue, 4 Oct 2016 21:46:18 +0200
>>>
>>> Replace the specification of a data structure
On Thu, Oct 06, 2016 at 11:29:20AM +0200, Richard Weinberger wrote:
> On Thu, Oct 6, 2016 at 11:22 AM, SF Markus Elfring
> wrote:
> > From: Markus Elfring
> > Date: Tue, 4 Oct 2016 21:46:18 +0200
> >
> > Replace the specification of a
On Thu, Oct 06, 2016 at 11:29:20AM +0200, Richard Weinberger wrote:
> On Thu, Oct 6, 2016 at 11:22 AM, SF Markus Elfring
> wrote:
> > From: Markus Elfring
> > Date: Tue, 4 Oct 2016 21:46:18 +0200
> >
> > Replace the specification of a data structure by a pointer dereference
> > as the parameter
On Thu, Oct 6, 2016 at 11:22 AM, SF Markus Elfring
wrote:
> From: Markus Elfring
> Date: Tue, 4 Oct 2016 21:46:18 +0200
>
> Replace the specification of a data structure by a pointer dereference
> as the parameter for the operator
On Thu, Oct 6, 2016 at 11:22 AM, SF Markus Elfring
wrote:
> From: Markus Elfring
> Date: Tue, 4 Oct 2016 21:46:18 +0200
>
> Replace the specification of a data structure by a pointer dereference
> as the parameter for the operator "sizeof" to make the corresponding size
> determination a bit
From: Markus Elfring
Date: Tue, 4 Oct 2016 21:46:18 +0200
Replace the specification of a data structure by a pointer dereference
as the parameter for the operator "sizeof" to make the corresponding size
determination a bit safer.
Signed-off-by: Markus Elfring
From: Markus Elfring
Date: Tue, 4 Oct 2016 21:46:18 +0200
Replace the specification of a data structure by a pointer dereference
as the parameter for the operator "sizeof" to make the corresponding size
determination a bit safer.
Signed-off-by: Markus Elfring
---
drivers/md/raid1.c | 2 +-
1
46 matches
Mail list logo