search for: u8_max

Displaying 5 results from an estimated 5 matches for "u8_max".

2016 Jul 13
2
[PATCH v3 1/7] lib: string: add functions to case-convert strings
...x/printk.h> -#include <linux/dynamic_debug.h> #include <asm/byteorder.h> #include <uapi/linux/kernel.h> @@ -29,6 +27,9 @@ #define ULLONG_MAX (~0ULL) #define SIZE_MAX (~(size_t)0) +#include <linux/printk.h> +#include <linux/dynamic_debug.h> + #define U8_MAX ((u8)~0U) #define S8_MAX ((s8)(U8_MAX>>1)) #define S8_MIN ((s8)(-S8_MAX - 1)) This solves bounds.c. But it doesn't help with other files that don't automatically pull in kernel.h before string.h. They still complain about SIZE_MAX being undeclared. So, #incl...
2016 Jul 13
0
[PATCH v3 1/7] lib: string: add functions to case-convert strings
...> #include <asm/byteorder.h> > #include <uapi/linux/kernel.h> > > @@ -29,6 +27,9 @@ > #define ULLONG_MAX (~0ULL) > #define SIZE_MAX (~(size_t)0) > > +#include <linux/printk.h> > +#include <linux/dynamic_debug.h> > + > #define U8_MAX ((u8)~0U) > #define S8_MAX ((s8)(U8_MAX>>1)) > #define S8_MIN ((s8)(-S8_MAX - 1)) > > This solves bounds.c. But it doesn't help with other files that don't > automatically pull in kernel.h before string.h. They still complain > about SIZE_M...
2016 Jul 11
2
[PATCH v3 1/7] lib: string: add functions to case-convert strings
On 9 July 2016 at 08:30, Markus Mayer <markus.mayer at broadcom.com> wrote: > On 9 July 2016 at 05:04, Luis de Bethencourt <luisbg at osg.samsung.com> wrote: >> On 08/07/16 23:43, Markus Mayer wrote: >>> Add a collection of generic functions to convert strings to lowercase >>> or uppercase. >>> >>> Changing the case of a string (with or
2019 Sep 03
0
[PATCH v2 07/27] drm/dp_mst: Add sideband down request tracing + selftests
...req_type = DP_QUERY_PAYLOAD; + in.u.query_payload.port_number = 0xf; + DO_TEST(); + in.u.query_payload.vcpi = 0x7f; + DO_TEST(); + + in.req_type = DP_REMOTE_DPCD_READ; + in.u.dpcd_read.port_number = 0xf; + DO_TEST(); + in.u.dpcd_read.dpcd_address = 0xfedcb; + DO_TEST(); + in.u.dpcd_read.num_bytes = U8_MAX; + DO_TEST(); + + in.req_type = DP_REMOTE_DPCD_WRITE; + in.u.dpcd_write.port_number = 0xf; + DO_TEST(); + in.u.dpcd_write.dpcd_address = 0xfedcb; + DO_TEST(); + in.u.dpcd_write.num_bytes = ARRAY_SIZE(data); + in.u.dpcd_write.bytes = data; + DO_TEST(); + + in.req_type = DP_REMOTE_I2C_READ; + in.u.i2...
2019 Sep 03
50
[PATCH v2 00/27] DP MST Refactors + debugging tools + suspend/resume reprobing
This is the large series for adding MST suspend/resume reprobing that I've been working on for quite a while now. In addition, I: - Refactored and cleaned up any code I ended up digging through in the process of understanding how some parts of these helpers worked. - Added some debugging tools along the way that I ended up needing to figure out some issues in my own code Note that