mirror of
https://github.com/Dasharo/skiboot.git
synced 2026-03-06 14:50:44 -08:00
sparse: fix declaration of fdt_strerror
Signed-off-by: Cédric Le Goater <clg@fr.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
This commit is contained in:
committed by
Stewart Smith
parent
b0ae8743ce
commit
bc7bb3d12b
@@ -79,7 +79,7 @@ static struct fdt_errtabent fdt_errtable[] = {
|
||||
};
|
||||
#define FDT_ERRTABSIZE (sizeof(fdt_errtable) / sizeof(fdt_errtable[0]))
|
||||
|
||||
const char __attrconst *fdt_strerror(int errval)
|
||||
const char * __attrconst fdt_strerror(int errval)
|
||||
{
|
||||
if (errval > 0)
|
||||
return "<valid offset/length>";
|
||||
|
||||
+2
-1
@@ -51,6 +51,7 @@
|
||||
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <compiler.h>
|
||||
#include <libfdt_env.h>
|
||||
#include <fdt.h>
|
||||
|
||||
@@ -1163,6 +1164,6 @@ int fdt_del_node(void *fdt, int nodeoffset);
|
||||
/* Debugging / informational functions */
|
||||
/**********************************************************************/
|
||||
|
||||
const char *fdt_strerror(int errval);
|
||||
const char * __attrconst fdt_strerror(int errval);
|
||||
|
||||
#endif /* _LIBFDT_H */
|
||||
|
||||
Reference in New Issue
Block a user