Browse Source

dtc: Make eval_literal() static

eval_literal() is used only in the parser, so make it a static
function.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
main
David Gibson 17 years ago committed by Jon Loeliger
parent
commit
6b8e05626a
  1. 6
      dtc-parser.y

6
dtc-parser.y

@ -24,12 +24,12 @@ @@ -24,12 +24,12 @@
#include "dtc.h"
#include "srcpos.h"

int yylex(void);
unsigned long long eval_literal(const char *s, int base, int bits);
extern int yylex(void);

extern struct boot_info *the_boot_info;
extern int treesource_error;

static unsigned long long eval_literal(const char *s, int base, int bits);
%}

%union {
@ -330,7 +330,7 @@ void yyerror (char const *s) @@ -330,7 +330,7 @@ void yyerror (char const *s)
yyerrorf("%s", s);
}

unsigned long long eval_literal(const char *s, int base, int bits)
static unsigned long long eval_literal(const char *s, int base, int bits)
{
unsigned long long val;
char *e;

Loading…
Cancel
Save