#include #include "tests.h" #include "debug.h" #include "util.h" int test__is_printable_array(int subtest __maybe_unused) { char buf1[] = { 'k', 'r', 4, 'v', 'a', 0 }; char buf2[] = { 'k', 'r', 'a', 'v', 4, 0 }; struct { char *buf; unsigned int len; int ret; } t[] = { { (char *) "krava", sizeof("krava"), 1 }, { (char *) "krava", sizeof("krava") - 1, 0 }, { (char *) "", sizeof(""), 1 }, { (char *) "", 0, 0 }, { NULL, 0, 0 }, { buf1, sizeof(buf1), 0 }, { buf2, sizeof(buf2), 0 }, }; unsigned int i; for (i = 0; i < ARRAY_SIZE(t); i++) { int ret; ret = is_printable_array((char *) t[i].buf, t[i].len); if (ret != t[i].ret) { pr_err("failed: test %u\n", i); return TEST_FAIL; } } return TEST_OK; } i/linux/net-next.git/'>net-next.git
net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/include/dt-bindings/dma/sun4i-a10.h
ass='ctrl'>
AgeCommit message (Expand)AuthorFilesLines
space:
mode:
authorRoger Shimizu <rogershimizu@gmail.com>2017-01-30 20:07:29 +0900
committerGregory CLEMENT <gregory.clement@free-electrons.com>2017-01-31 12:19:32 +0100
commit81917bad86a66f2bdcb12b4c10ab1bf333ed25ec (patch)
tree3d56cb771fc5f0a37412e62f99aacc6d21a646c0 /net/ipv4/raw.c
parent0c744ea4f77d72b3dcebb7a8f2684633ec79be88 (diff)
ARM: dts: orion5x-lschl: Fix model name
Model name should be consistent with legacy device file, so that user can migrate their system from legacy device support to device-tree safely. Legacy device file is currently removed, but it can be found on 4.8 or previous version of linux: arch/arm/mach-orion5x/ls-chl-setup.c Fixes: f94f268979a2 ("ARM: dts: orion5x: convert ls-chl to FDT") Cc: Ashley Hughes <ashley.hughes@blueyonder.co.uk> Signed-off-by: Roger Shimizu <rogershimizu@gmail.com> Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Diffstat (limited to 'net/ipv4/raw.c')