1
/* Copyright 2013-2014 IBM Corp.
3
* Licensed under the Apache License, Version 2.0 (the "License");
4
* you may not use this file except in compliance with the License.
5
* You may obtain a copy of the License at
7
* http://www.apache.org/licenses/LICENSE-2.0
9
* Unless required by applicable law or agreed to in writing, software
10
* distributed under the License is distributed on an "AS IS" BASIS,
11
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
20
void _prlog(int log_level __attribute__((unused)), const char* fmt, ...) __attribute__((format (printf, 2, 3)));
23
#define pr_fmt(fmt) fmt
25
#define prlog(l, f, ...) do { _prlog(l, pr_fmt(f), ##__VA_ARGS__); } while(0)
27
void _prlog(int log_level __attribute__((unused)), const char* fmt, ...)
36
/* Add any stub functions required for linking here. */
37
static void stub_function(void)
42
#define STUB(fnname) \
43
void fnname(void) __attribute__((weak, alias ("stub_function")))
49
STUB(fdt_add_reservemap_entry);
50
STUB(fdt_finish_reservemap);
52
STUB(fdt_check_header);
53
STUB(_fdt_check_node_offset);
59
STUB(dt_has_node_property);
61
STUB(add_chip_dev_associativity);