All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
To: Linux Media Mailing List <linux-media@vger.kernel.org>
Cc: Mauro Carvalho Chehab <mchehab@osg.samsung.com>,
	Pawel Osciak <pawel@osciak.com>,
	Marek Szyprowski <m.szyprowski@samsung.com>,
	Kyungmin Park <kyungmin.park@samsung.com>
Subject: [PATCH 5/5] [media] DocBook: Remove a warning at videobuf2-v4l2.h
Date: Thu,  1 Oct 2015 14:26:02 -0300	[thread overview]
Message-ID: <d383b57911c8a6c3da1af7b3f72dfecfcd5633d0.1443720347.git.mchehab@osg.samsung.com> (raw)
In-Reply-To: <1ccd66cca96a377ef924d2ee76fbb753a7bec9ea.1443720347.git.mchehab@osg.samsung.com>
In-Reply-To: <1ccd66cca96a377ef924d2ee76fbb753a7bec9ea.1443720347.git.mchehab@osg.samsung.com>

There's no need to document to_foo() macros, and the macro is
badly documented anyway. That removes this warning:
	include/media/videobuf2-v4l2.h:43: warning: No description found for parameter 'vb'

While here, remove the parenthesis for container_of(). The
countainer_of() already have parenthesis inside it.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>

diff --git a/include/media/videobuf2-v4l2.h b/include/media/videobuf2-v4l2.h
index 20d8ad20066c..71f7fe2706b3 100644
--- a/include/media/videobuf2-v4l2.h
+++ b/include/media/videobuf2-v4l2.h
@@ -36,10 +36,10 @@ struct vb2_v4l2_buffer {
 	__u32			sequence;
 };
 
-/**
+/*
  * to_vb2_v4l2_buffer() - cast struct vb2_buffer * to struct vb2_v4l2_buffer *
  */
 #define to_vb2_v4l2_buffer(vb) \
-	(container_of(vb, struct vb2_v4l2_buffer, vb2_buf))
+	container_of(vb, struct vb2_v4l2_buffer, vb2_buf)
 
 #endif /* _MEDIA_VIDEOBUF2_V4L2_H */
-- 
2.4.3


      parent reply	other threads:[~2015-10-01 17:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-01 17:25 [PATCH 1/5] [media] DocBook: add the new videobuf2-v4l2 header Mauro Carvalho Chehab
2015-10-01 17:25 ` [PATCH 2/5] [media] dvbdev: Remove two cut-and-paste errors Mauro Carvalho Chehab
2015-10-01 17:26 ` [PATCH 3/5] [media] DocBook: Fix documentation for struct v4l2_dv_timings Mauro Carvalho Chehab
2015-10-01 17:26 ` [PATCH 4/5] [media] DocBook: fix most of warnings at videobuf2-core.h Mauro Carvalho Chehab
2015-10-01 17:26 ` Mauro Carvalho Chehab [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d383b57911c8a6c3da1af7b3f72dfecfcd5633d0.1443720347.git.mchehab@osg.samsung.com \
    --to=mchehab@osg.samsung.com \
    --cc=kyungmin.park@samsung.com \
    --cc=linux-media@vger.kernel.org \
    --cc=m.szyprowski@samsung.com \
    --cc=pawel@osciak.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.