Em Fri, 12 Jun 2015 12:09:00 +0200 Hans Verkuil <hverkuil@xxxxxxxxx> escreveu: > On 06/12/2015 11:58 AM, Hans Verkuil wrote: > > Hi Junghak, > > > > On 06/08/2015 03:35 PM, Junghak Sung wrote: > >> Make the struct vb2_buffer to common buffer by removing v4l2-specific members. > >> And common video buffer is embedded into v4l2-specific video buffer like: > >> struct vb2_v4l2_buffer { > >> struct vb2_buffer vb2; > >> struct v4l2_buffer v4l2_buf; > >> struct v4l2_plane v4l2_planes[VIDEO_MAX_PLANES]; > >> }; > >> This changes require the modifications of all device drivers that use this structure. > > > > It's next to impossible to review just large diffs, but it is unavoidable for > > changes like this I guess. > > > > I do recommend that you do a 'git grep videobuf2-core' to make sure all usages > > of that have been replaced with videobuf2-v4l2. I think I saw videobuf2-core > > mentioned in a comment, but it is hard to be sure. > > > > It would also be easier to review if the renaming of core.[ch] to v4l2.[ch] was > > done in a separate patch. If it is relatively easy to split it up like that, > > then I would appreciate it, but if it takes a lot of time, then leave it as is. > > > > Anyway, assuming that 'git grep videobuf2-core' doesn't find anything: > > > > Acked-by: Hans Verkuil <hans.verkuil@xxxxxxxxx> > > Sorry, I'm retracting that Acked-by: I tried to apply it and I saw it was against > an old kernel version, not against the media_tree master branch. Well, no matter on what version this patch is produced, it would very likely cause merge conflicts. The best here would be if you add a small shell/perl script at the body of the patch that would be doing the renaming thing at the drivers. This way, the maintainer can run the script when merging it. That would warrant that this would be changed everywhere and noting was left behind. > Also, I thought videobuf2-core.[ch] was renamed to videobuf2-v4l2.[ch], but that's > not the case. I think that would make much more sense. Later patches can split up > videobuf2-v4l2.c/h into a videobuf2-core and -v4l2 part. > >> copy drivers/media/v4l2-core/{videobuf2-core.c => videobuf2-v4l2.c} (89%) > >> copy include/media/{videobuf2-core.h => videobuf2-v4l2.h} (94%) Actually, it is being copied, with is almost the same. I agree that this series could be better split into: 1) a patch that would be just doing: mv drivers/media/v4l2-core/videobuf2-core.c drivers/media/v4l2-core/videobuf2-v4l2.c mv include/media/videobuf2-core.h include/media/videobuf2-v4l2.h And changing the includes and Makefile bits to use the new header. 2) this patch (with the script used to produce it); 3) patches that would be gradually moving the common functions from videobuf2-v4l2.c into videobuf2-core.c. Regards, Mauro -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html