diff --git a/scripts/basic/bin2c.c b/scripts/basic/bin2c.c
index af187e695345f2b26046832a7a2aff2af681e739..c3d7eef3ad0619806e8b7069e097ca20406b56d8 100644
--- a/scripts/basic/bin2c.c
+++ b/scripts/basic/bin2c.c
@@ -29,7 +29,8 @@ int main(int argc, char *argv[])
 	} while (ch != EOF);
 
 	if (argc > 1)
-		printf("\t;\n\nconst int %s_size = %d;\n", argv[1], total);
+		printf("\t;\n\n#include <linux/types.h>\n\nconst size_t %s_size = %d;\n",
+		       argv[1], total);
 
 	return 0;
 }