<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/lib/test_scanf.c, branch v5.14</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v5.14</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v5.14'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2021-07-08T18:48:20Z</updated>
<entry>
<title>lib/test: fix spelling mistakes</title>
<updated>2021-07-08T18:48:20Z</updated>
<author>
<name>Zhen Lei</name>
<email>thunder.leizhen@huawei.com</email>
</author>
<published>2021-07-08T01:07:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=53b0fe36ab7c6eb3ce8ca711e636806649273463'/>
<id>urn:sha1:53b0fe36ab7c6eb3ce8ca711e636806649273463</id>
<content type='text'>
Fix some spelling mistakes in comments found by "codespell":
thats ==&gt; that's
unitialized ==&gt; uninitialized
panicing ==&gt; panicking
sucess ==&gt; success
possitive ==&gt; positive
intepreted ==&gt; interpreted

Link: https://lkml.kernel.org/r/20210607133036.12525-2-thunder.leizhen@huawei.com
Signed-off-by: Zhen Lei &lt;thunder.leizhen@huawei.com&gt;
Acked-by: Yonghong Song &lt;yhs@fb.com&gt;	[test_bfp.c]
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>lib: test_scanf: Remove pointless use of type_min() with unsigned types</title>
<updated>2021-05-27T13:38:03Z</updated>
<author>
<name>Richard Fitzgerald</name>
<email>rf@opensource.cirrus.com</email>
</author>
<published>2021-05-25T12:20:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=1b932689c77766b68e2ead51ca0fb84ec5bb8965'/>
<id>urn:sha1:1b932689c77766b68e2ead51ca0fb84ec5bb8965</id>
<content type='text'>
sparse was producing warnings of the form:

 sparse: cast truncates bits from constant value (ffff0001 becomes 1)

There is no actual problem here. Using type_min() on an unsigned type
results in an (expected) truncation.

However, there is no need to test an unsigned value against type_min().
The minimum value of an unsigned is obviously 0, and any value cast to
an unsigned type is &gt;= 0, so for unsigneds only type_max() need be tested.

This patch also takes the opportunity to clean up the implementation of
simple_numbers_loop() to use a common pattern for the positive and
negative test.

Reported-by: kernel test robot &lt;lkp@intel.com&gt;
Signed-off-by: Richard Fitzgerald &lt;rf@opensource.cirrus.com&gt;
Reviewed-by: Petr Mladek &lt;pmladek@suse.com&gt;
Signed-off-by: Petr Mladek &lt;pmladek@suse.com&gt;
Link: https://lore.kernel.org/r/20210525122012.6336-2-rf@opensource.cirrus.com
</content>
</entry>
<entry>
<title>lib: test_scanf: Add tests for sscanf number conversion</title>
<updated>2021-05-19T13:05:11Z</updated>
<author>
<name>Richard Fitzgerald</name>
<email>rf@opensource.cirrus.com</email>
</author>
<published>2021-05-14T16:12:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=50f530e176eac808e64416732e54c0686ce2c39b'/>
<id>urn:sha1:50f530e176eac808e64416732e54c0686ce2c39b</id>
<content type='text'>
Adds test_sscanf to test various number conversion cases, as
number conversion was previously broken.

This also tests the simple_strtoxxx() functions exported from
vsprintf.c.

Signed-off-by: Richard Fitzgerald &lt;rf@opensource.cirrus.com&gt;
Acked-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
Signed-off-by: Petr Mladek &lt;pmladek@suse.com&gt;
Link: https://lore.kernel.org/r/20210514161206.30821-3-rf@opensource.cirrus.com
</content>
</entry>
</feed>
