blob: 8be64a921dd75aaf835de4c1b87296ebcc2bd327 [file] [log] [blame]
Simon Glass6494d702014-02-26 15:59:18 -07001/*
2 * Copyright (c) 2013 Google, Inc
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7#ifndef __DM_UTIL_H
8
9void dm_warn(const char *fmt, ...);
10
11#ifdef DEBUG
12void dm_dbg(const char *fmt, ...);
13#else
14static inline void dm_dbg(const char *fmt, ...)
15{
16}
17#endif
18
19struct list_head;
20
21/**
22 * list_count_items() - Count number of items in a list
23 *
24 * @param head: Head of list
25 * @return number of items, or 0 if empty
26 */
27int list_count_items(struct list_head *head);
28
29#endif