Re: [PATCH 5/7] PPS: serial clients support.

From: Andrew Morton
Date: Fri Mar 21 2008 - 13:43:47 EST


On Fri, 21 Mar 2008 12:17:36 +0100 Rodolfo Giometti <giometti@xxxxxxxxxxxx> wrote:

> > > +#else
> > > +
> > > +#define uart_register_pps_port(state, port) do { } while (0)
> > > +#define uart_unregister_pps_port(state, port) do { } while (0)
> >
> > Please never implement in cpp that which can be implemented in C. These
> > should have been static inlines. That's nicer, matches the
> > CONFIG_PPS_CLIENT_UART=y code and provides type checking.
>
> Are you saying that I should do:
>
> static inline int
> uart_register_pps_port(struct uart_state *state, struct uart_port *port)
> {
> /* Nop */
> }
>
> static inline void
> uart_unregister_pps_port(struct uart_state *state, struct uart_port *port)
> {
> /* Nop */
> }
>
> ?

Yes please.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/