From: Jean-Christophe PLAGNIOL-VILLARD Date: Sun, 5 Apr 2009 10:56:01 +0200 Subject: [U-Boot] [PATCH 1/1] make MODEM SUPPORT generic instead of duplicate it In-Reply-To: <20090401223249.1B71983797DC@gemini.denx.de> References: <1236447277-18574-1-git-send-email-plagnioj@jcrosoft.com> <20090401223249.1B71983797DC@gemini.denx.de> Message-ID: <20090405085601.GA31840@game.jcrosoft.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 00:32 Thu 02 Apr , Wolfgang Denk wrote: > Dear Jean-Christophe PLAGNIOL-VILLARD, > > In message <1236447277-18574-1-git-send-email-plagnioj@jcrosoft.com> you wrote: > > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > > --- > > common/Makefile | 1 + > > common/modem.c | 123 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > lib_arm/board.c | 99 -------------------------------------------- > > lib_ppc/board.c | 97 ------------------------------------------- > > 4 files changed, 124 insertions(+), 196 deletions(-) > > create mode 100644 common/modem.c > ... > > diff --git a/common/modem.c b/common/modem.c > > new file mode 100644 > > index 0000000..27e164a > > --- /dev/null > > +++ b/common/modem.c > ... > > +/* called from main loop (common/main.c) */ > > +/* 'inline' - We have to do it fast */ > > +static inline void mdm_readline(char *buf, int bufsiz) > > How is this supposed to work? You cannot call a static function from > another source file. this function is only use in this file actualy the code is lib_arm/board.c and lib_ppc/board.c is identical I just move it to modem.c the only function use outiside of this file is mdm_init Best Regards, J.