public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
From: Antonio Quartulli <ordex@autistici.org>
To: The list for a Better Approach To Mobile Ad-hoc Networking
	<b.a.t.m.a.n@lists.open-mesh.org>
Subject: Re: [B.A.T.M.A.N.] [PATCHv3 3/3] batman-adv: use static inline functions to fake not compiled-in routines
Date: Sat, 14 Apr 2012 00:13:52 +0200	[thread overview]
Message-ID: <20120413221351.GA19795@ritirata.org> (raw)
In-Reply-To: <201204132304.23485.lindner_marek@yahoo.de>

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

On Fri, Apr 13, 2012 at 11:04:23 +0200, Marek Lindner wrote:
> On Thursday, April 12, 2012 09:07:29 Antonio Quartulli wrote:
> > In case of not compiled-in components, we need to fake some functions in
> > order to let the rest of the code correctly build. But instead of using
> > something like:
> > 
> > We have to use:
> > 
> > static inline bla_init(struct bat_priv *bat_priv)
> > {
> >         return 1;
> > }
> > 
> > In this way the compiler can correctly check the type and the number of the
> > arguments passed to the function, even if the related component (bla in
> > this case) is not compiled.
> 
> The same needs to be done for DAT, right ?

Exactly.
the next pull request should contain this change also for DAT. Moreover we
should provide a sysfs mechanism enable/disable DAT at runtime, so that people
can disable it on all the nodes without the need of rebuilding the module.

Cheers,

-- 
Antonio Quartulli

..each of us alone is worth nothing..
Ernesto "Che" Guevara

[-- Attachment #2: Type: application/pgp-signature, Size: 490 bytes --]

      reply	other threads:[~2012-04-13 22:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-12  7:07 [B.A.T.M.A.N.] [PATCHv2 0/3] clean up patches Antonio Quartulli
2012-04-12  7:07 ` [B.A.T.M.A.N.] [PATCHv2 1/3] batman-adv: fix comments ending style Antonio Quartulli
2012-04-13 20:32   ` Marek Lindner
2012-04-12  7:07 ` [B.A.T.M.A.N.] [PATCHv2 2/3] batman-adv: use static const for STP constant address Antonio Quartulli
2012-04-13 20:33   ` Marek Lindner
2012-04-12  7:07 ` [B.A.T.M.A.N.] [PATCHv3 3/3] batman-adv: use static inline functions to fake not compiled-in routines Antonio Quartulli
2012-04-13 20:35   ` Marek Lindner
2012-04-13 21:04   ` Marek Lindner
2012-04-13 22:13     ` Antonio Quartulli [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=20120413221351.GA19795@ritirata.org \
    --to=ordex@autistici.org \
    --cc=b.a.t.m.a.n@lists.open-mesh.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox