All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marc Kleine-Budde <mkl@pengutronix.de>
To: Nikita Edward Baruzdin <nebaruzdin@gmail.com>, linux-can@vger.kernel.org
Subject: Re: [libsocketcan 2/2] Update can_set_ctrlmode() documentation
Date: Tue, 22 Jul 2014 16:26:48 +0200	[thread overview]
Message-ID: <53CE74A8.3090506@pengutronix.de> (raw)
In-Reply-To: <1405935800-26622-5-git-send-email-nebaruzdin@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1603 bytes --]

On 07/21/2014 11:43 AM, Nikita Edward Baruzdin wrote:
> Signed-off-by: Nikita Edward Baruzdin <nebaruzdin@gmail.com>
> ---
>  src/libsocketcan.c | 33 +++++++++++++++------------------
>  1 file changed, 15 insertions(+), 18 deletions(-)
> 
> diff --git a/src/libsocketcan.c b/src/libsocketcan.c
> index fe3a0b3..21884b6 100644
> --- a/src/libsocketcan.c
> +++ b/src/libsocketcan.c
> @@ -774,13 +774,20 @@ int can_set_restart_ms(const char *name, __u32 restart_ms)
>   *
>   * @param cm pointer of a can_ctrlmode struct
>   *
> - * This sets the control mode of the can device. There're currently three
> - * different control modes:
> - * - LOOPBACK
> - * - LISTEN_ONLY
> - * - TRIPPLE_SAMPLING
> + * This sets the control mode of the can device. There are currently the
> + * following modes available (each mapped to its own macro):
>   *
> - * You have to define the control mode struct yourself. a can_ctrlmode struct
> + * @code
> + * #define CAN_CTRLMODE_LOOPBACK           0x01    /* Loopback mode */

Have you actually compile-tested this change?

> libsocketcan.c:781:52: warning: "/*" within comment [-Wcomment]
>   * #define CAN_CTRLMODE_LOOPBACK           0x01    /* Loopback mode */

...and it finally fails to build from source. I've fixed this while
applying the patch.

Marc

-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 242 bytes --]

  reply	other threads:[~2014-07-22 14:26 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-21  9:43 CAN_CTRLMODE_PRESUME_ACK follow-up patches Nikita Edward Baruzdin
2014-07-21  9:43 ` [iproute2 1/2] Update CAN netlink header Nikita Edward Baruzdin
2014-07-21 17:51   ` Oliver Hartkopp
2014-07-22 14:09     ` Nikita Edward Baruzdin
2014-07-22 14:23       ` Marc Kleine-Budde
2014-07-21  9:43 ` [iproute2 2/2] iplink: Support for CAN presume-ack feature Nikita Edward Baruzdin
2014-07-21  9:43 ` [libsocketcan 1/2] Update CAN netlink header Nikita Edward Baruzdin
2014-07-21  9:43 ` [libsocketcan 2/2] Update can_set_ctrlmode() documentation Nikita Edward Baruzdin
2014-07-22 14:26   ` Marc Kleine-Budde [this message]
2014-07-22 14:42     ` Nikita Edward Baruzdin

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=53CE74A8.3090506@pengutronix.de \
    --to=mkl@pengutronix.de \
    --cc=linux-can@vger.kernel.org \
    --cc=nebaruzdin@gmail.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.