Skip to contentSkip to conversation

removed unused #include <version.h>'s

v4l-dvb-maintainer Laurent Pinchart 3 participants 4 messages Jan 4, 2009 – Jan 6, 2009 1 message not in the archive Media (V4L/DVB)

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 10 lines · Huang Weiyi

Removed unused #include <version.h>'s in files below,
drivers/media/video/cs5345.c drivers/media/video/pwc/pwc-if.c drivers/media/video/saa717x.c drivers/media/video/upd64031a.c drivers/media/video/upd64083.c drivers/media/video/uvc/uvc_ctrl.c drivers/media/video/uvc/uvc_driver.c drivers/media/video/uvc/uvc_queue.c drivers/media/video/uvc/uvc_video.c

You can remove it from drivers/media/video/uvc/uvc_status.c as well.

Mauro, the #include <linux/version.h> are required for backward compatibility in the Mercurial tree, but are not needed (except in uvc_v4l2.c) in the mainline git kernel tree. Can that be handled by your Mercurial -> git export scripts ?

Best regards,

Laurent Pinchart

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

#2 lore raw
Quoted 12 lines · Laurent Pinchart
Quoted 10 lines · Huang Weiyi

Removed unused #include <version.h>'s in files below,
drivers/media/video/cs5345.c drivers/media/video/pwc/pwc-if.c drivers/media/video/saa717x.c drivers/media/video/upd64031a.c drivers/media/video/upd64083.c drivers/media/video/uvc/uvc_ctrl.c drivers/media/video/uvc/uvc_driver.c drivers/media/video/uvc/uvc_queue.c drivers/media/video/uvc/uvc_video.c

Quoted 6 lines

You can remove it from drivers/media/video/uvc/uvc_status.c as well.

Mauro, the #include <linux/version.h> are required for backward compatibility in the Mercurial tree, but are not needed (except in uvc_v4l2.c) in the mainline git kernel tree. Can that be handled by your Mercurial -> git export scripts ?

The version.h includes should not be needed for backward compatibility in the Hg tree. There was always a problem with version.h appearing to not be necessary in the git code, so I modified the v4l-dvb build system to add version.h with a gcc -include option.

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

#3 lore raw
Quoted 20 lines · On Sun, 4 Jan 2009 12:25:43 -0800 (PST) Trent Piepho <[email protected]>…
Quoted 12 lines · Laurent Pinchart
Quoted 10 lines · Huang Weiyi

Removed unused #include <version.h>'s in files below,
drivers/media/video/cs5345.c drivers/media/video/pwc/pwc-if.c drivers/media/video/saa717x.c drivers/media/video/upd64031a.c drivers/media/video/upd64083.c drivers/media/video/uvc/uvc_ctrl.c drivers/media/video/uvc/uvc_driver.c drivers/media/video/uvc/uvc_queue.c drivers/media/video/uvc/uvc_video.c

Quoted 6 lines

You can remove it from drivers/media/video/uvc/uvc_status.c as well.

Mauro, the #include <linux/version.h> are required for backward compatibility in the Mercurial tree, but are not needed (except in uvc_v4l2.c) in the mainline git kernel tree. Can that be handled by your Mercurial -> git export scripts ?

Quoted 4 lines

The version.h includes should not be needed for backward compatibility in the Hg tree. There was always a problem with version.h appearing to not be necessary in the git code, so I modified the v4l-dvb build system to add version.h with a gcc -include option.

Yes. You just need to add version.h at the file where the V4L2 API is implemented (due to VIDIOC_QUERYCTL).

Cheers,
Mauro

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

#4 lore raw
In reply to Trent Piepho
Quoted 20 lines · Trent Piepho
Quoted 12 lines · Laurent Pinchart
Quoted 10 lines · Huang Weiyi

Removed unused #include <version.h>'s in files below,
drivers/media/video/cs5345.c drivers/media/video/pwc/pwc-if.c drivers/media/video/saa717x.c drivers/media/video/upd64031a.c drivers/media/video/upd64083.c drivers/media/video/uvc/uvc_ctrl.c drivers/media/video/uvc/uvc_driver.c drivers/media/video/uvc/uvc_queue.c drivers/media/video/uvc/uvc_video.c

Quoted 6 lines

You can remove it from drivers/media/video/uvc/uvc_status.c as well.

Mauro, the #include <linux/version.h> are required for backward compatibility in the Mercurial tree, but are not needed (except in uvc_v4l2.c) in the mainline git kernel tree. Can that be handled by your Mercurial -> git export scripts ?

Quoted 4 lines

The version.h includes should not be needed for backward compatibility in the Hg tree. There was always a problem with version.h appearing to not be necessary in the git code, so I modified the v4l-dvb build system to add version.h with a gcc -include option.

Thanks for the information.

Huang, can you please resubmit a patch with #include <linux/version.h> removed from drivers/media/video/uvc/uvc_status.c as well ?

Best regards,

Laurent Pinchart

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list