2018-05-29 04:39:19

by Stephen Rothwell

[permalink] [raw]
Subject: linux-next: manual merge of the block tree with the vfs tree

Hi all,

Today's linux-next merge of the block tree got a conflict in:

drivers/block/DAC960.c

between commit:

3f3942aca6da ("proc: introduce proc_create_single{,_data}")

from the vfs tree and commit:

5657a819a8d9 ("block drivers/block: Use octal not symbolic permissions")

from the block tree.

I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging. You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.

--
Cheers,
Stephen Rothwell

diff --cc drivers/block/DAC960.c
index 6918c3d9482e,7c3887a7e534..000000000000
--- a/drivers/block/DAC960.c
+++ b/drivers/block/DAC960.c
@@@ -6553,11 -6587,9 +6548,11 @@@ static void DAC960_CreateProcEntries(DA
"c%d", Controller->ControllerNumber);
ControllerProcEntry = proc_mkdir(Controller->ControllerName,
DAC960_ProcDirectoryEntry);
- proc_create_data("initial_status", 0, ControllerProcEntry, &dac960_initial_status_proc_fops, Controller);
- proc_create_data("current_status", 0, ControllerProcEntry, &dac960_current_status_proc_fops, Controller);
+ proc_create_single_data("initial_status", 0, ControllerProcEntry,
+ dac960_initial_status_proc_show, Controller);
+ proc_create_single_data("current_status", 0, ControllerProcEntry,
+ dac960_current_status_proc_show, Controller);
- proc_create_data("user_command", S_IWUSR | S_IRUSR, ControllerProcEntry, &dac960_user_command_proc_fops, Controller);
+ proc_create_data("user_command", 0600, ControllerProcEntry, &dac960_user_command_proc_fops, Controller);
Controller->ControllerProcEntry = ControllerProcEntry;
}


Attachments:
(No filename) (499.00 B)
OpenPGP digital signature

2018-05-29 08:08:52

by Christoph Hellwig

[permalink] [raw]
Subject: Re: linux-next: manual merge of the block tree with the vfs tree

Meh. Do we really need these switch to octal patches to start
with? I mean, I personally prefer octal, but just switching around
in random code that isn't otherwise changed creates nothing but churn.

On Tue, May 29, 2018 at 02:33:57PM +1000, Stephen Rothwell wrote:
> Hi all,
>
> Today's linux-next merge of the block tree got a conflict in:
>
> drivers/block/DAC960.c
>
> between commit:
>
> 3f3942aca6da ("proc: introduce proc_create_single{,_data}")
>
> from the vfs tree and commit:
>
> 5657a819a8d9 ("block drivers/block: Use octal not symbolic permissions")
>
> from the block tree.
>
> I fixed it up (see below) and can carry the fix as necessary. This
> is now fixed as far as linux-next is concerned, but any non trivial
> conflicts should be mentioned to your upstream maintainer when your tree
> is submitted for merging. You may also want to consider cooperating
> with the maintainer of the conflicting tree to minimise any particularly
> complex conflicts.
>
> --
> Cheers,
> Stephen Rothwell
>
> diff --cc drivers/block/DAC960.c
> index 6918c3d9482e,7c3887a7e534..000000000000
> --- a/drivers/block/DAC960.c
> +++ b/drivers/block/DAC960.c
> @@@ -6553,11 -6587,9 +6548,11 @@@ static void DAC960_CreateProcEntries(DA
> "c%d", Controller->ControllerNumber);
> ControllerProcEntry = proc_mkdir(Controller->ControllerName,
> DAC960_ProcDirectoryEntry);
> - proc_create_data("initial_status", 0, ControllerProcEntry, &dac960_initial_status_proc_fops, Controller);
> - proc_create_data("current_status", 0, ControllerProcEntry, &dac960_current_status_proc_fops, Controller);
> + proc_create_single_data("initial_status", 0, ControllerProcEntry,
> + dac960_initial_status_proc_show, Controller);
> + proc_create_single_data("current_status", 0, ControllerProcEntry,
> + dac960_current_status_proc_show, Controller);
> - proc_create_data("user_command", S_IWUSR | S_IRUSR, ControllerProcEntry, &dac960_user_command_proc_fops, Controller);
> + proc_create_data("user_command", 0600, ControllerProcEntry, &dac960_user_command_proc_fops, Controller);
> Controller->ControllerProcEntry = ControllerProcEntry;
> }
>


---end quoted text---

2018-05-29 14:24:16

by Jens Axboe

[permalink] [raw]
Subject: Re: linux-next: manual merge of the block tree with the vfs tree

On 5/29/18 2:12 AM, Christoph Hellwig wrote:
> Meh. Do we really need these switch to octal patches to start
> with? I mean, I personally prefer octal, but just switching around
> in random code that isn't otherwise changed creates nothing but churn.

This is exactly why I hesitated doing it, I knew it would end up
with conflicts. The main reason was to get rid of the inconsistency,
since we had a fair mix of octal and symbolic names.

--
Jens Axboe


2018-05-29 21:41:27

by Stephen Rothwell

[permalink] [raw]
Subject: Re: linux-next: manual merge of the block tree with the vfs tree

Hi Jens,

On Tue, 29 May 2018 08:22:43 -0600 Jens Axboe <[email protected]> wrote:
>
> On 5/29/18 2:12 AM, Christoph Hellwig wrote:
> > Meh. Do we really need these switch to octal patches to start
> > with? I mean, I personally prefer octal, but just switching around
> > in random code that isn't otherwise changed creates nothing but churn.
>
> This is exactly why I hesitated doing it, I knew it would end up
> with conflicts. The main reason was to get rid of the inconsistency,
> since we had a fair mix of octal and symbolic names.

But the conflicts are all trivial ...

--
Cheers,
Stephen Rothwell


Attachments:
(No filename) (499.00 B)
OpenPGP digital signature

2018-05-29 22:19:19

by Jens Axboe

[permalink] [raw]
Subject: Re: linux-next: manual merge of the block tree with the vfs tree

On 5/29/18 3:40 PM, Stephen Rothwell wrote:
> Hi Jens,
>
> On Tue, 29 May 2018 08:22:43 -0600 Jens Axboe <[email protected]> wrote:
>>
>> On 5/29/18 2:12 AM, Christoph Hellwig wrote:
>>> Meh. Do we really need these switch to octal patches to start
>>> with? I mean, I personally prefer octal, but just switching around
>>> in random code that isn't otherwise changed creates nothing but churn.
>>
>> This is exactly why I hesitated doing it, I knew it would end up
>> with conflicts. The main reason was to get rid of the inconsistency,
>> since we had a fair mix of octal and symbolic names.
>
> But the conflicts are all trivial ...

Yep, that certainly does help.

--
Jens Axboe