From: Wolfgang Denk Date: Thu, 02 Apr 2009 00:32:49 +0200 Subject: [U-Boot] [PATCH 1/1] make MODEM SUPPORT generic instead of duplicate it In-Reply-To: <1236447277-18574-1-git-send-email-plagnioj@jcrosoft.com> References: <1236447277-18574-1-git-send-email-plagnioj@jcrosoft.com> Message-ID: <20090401223249.1B71983797DC@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "Don't worry about people stealing your ideas. If your ideas are any good, you'll have to ram them down people's throats." - Howard Aiken