Re: [dm-devel] [PATCH 07/20] init: refactor name_to_dev_t

2020-11-20 Thread Christoph Hellwig
On Thu, Nov 19, 2020 at 09:25:05AM +0100, Jan Kara wrote: > OK, understood. Still it would seem more logical to leave blk_lookup_devt() > declaration inside #ifdef CONFIG_BLOCK and just delete the !CONFIG_BLOCK > definition (to make it clear we ever expect only users compiled when > CONFIG_BLOCK

Re: [dm-devel] [PATCH 07/20] init: refactor name_to_dev_t

2020-11-19 Thread Johannes Thumshirn
Looks good, Reviewed-by: Johannes Thumshirn -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 07/20] init: refactor name_to_dev_t

2020-11-19 Thread Jan Kara
On Thu 19-11-20 08:52:25, Christoph Hellwig wrote: > On Wed, Nov 18, 2020 at 03:37:47PM +0100, Jan Kara wrote: > > > -static inline dev_t blk_lookup_devt(const char *name, int partno) > > > -{ > > > - dev_t devt = MKDEV(0, 0); > > > - return devt; > > > -} > > > #endif /* CONFIG_BLOCK */ > > > >

Re: [dm-devel] [PATCH 07/20] init: refactor name_to_dev_t

2020-11-18 Thread Christoph Hellwig
On Wed, Nov 18, 2020 at 03:37:47PM +0100, Jan Kara wrote: > > -static inline dev_t blk_lookup_devt(const char *name, int partno) > > -{ > > - dev_t devt = MKDEV(0, 0); > > - return devt; > > -} > > #endif /* CONFIG_BLOCK */ > > This hunk looks unrelated to the change? Also why you move the

Re: [dm-devel] [PATCH 07/20] init: refactor name_to_dev_t

2020-11-18 Thread Jan Kara
On Wed 18-11-20 09:47:47, Christoph Hellwig wrote: > Split each case into a self-contained helper. > > Signed-off-by: Christoph Hellwig > --- > include/linux/genhd.h | 7 +- > init/do_mounts.c | 183 +- > 2 files changed, 91 insertions(+), 99

[dm-devel] [PATCH 07/20] init: refactor name_to_dev_t

2020-11-18 Thread Christoph Hellwig
Split each case into a self-contained helper. Signed-off-by: Christoph Hellwig --- include/linux/genhd.h | 7 +- init/do_mounts.c | 183 +- 2 files changed, 91 insertions(+), 99 deletions(-) diff --git a/include/linux/genhd.h