<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/mtd/mtdswap.c, branch linux-4.9.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.9.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.9.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2016-03-08T00:23:09Z</updated>
<entry>
<title>mtd: mtdswap: remove useless if (!mtd-&gt;ecclayout) test</title>
<updated>2016-03-08T00:23:09Z</updated>
<author>
<name>Boris BREZILLON</name>
</author>
<published>2016-03-07T09:46:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f2de0fa64306651bc5aa04f6bb56c057658486d5'/>
<id>urn:sha1:f2de0fa64306651bc5aa04f6bb56c057658486d5</id>
<content type='text'>
If the MTD device does not have OOB, the mtd-&gt;oobsize and mtd-&gt;oobavail
fields are set to zero, and we are testing those values in the following
test.
Remove the useless if (!mtd-&gt;ecclayout) test.

Signed-off-by: Boris Brezillon &lt;boris.brezillon@free-electrons.com&gt;
Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
</content>
</entry>
<entry>
<title>mtd: kill the ecclayout-&gt;oobavail field</title>
<updated>2016-03-08T00:23:09Z</updated>
<author>
<name>Boris BREZILLON</name>
</author>
<published>2016-03-07T09:46:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f5b8aa78ef086248145363bf1ffe5ca4348b6a98'/>
<id>urn:sha1:f5b8aa78ef086248145363bf1ffe5ca4348b6a98</id>
<content type='text'>
ecclayout-&gt;oobavail is just redundant with the mtd-&gt;oobavail field.
Moreover, it prevents static const definition of ecc layouts since the
NAND framework is calculating this value based on the ecclayout-&gt;oobfree
field.

Signed-off-by: Boris Brezillon &lt;boris.brezillon@free-electrons.com&gt;
Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
</content>
</entry>
<entry>
<title>mtd: use __packed shorthand</title>
<updated>2014-08-19T18:53:08Z</updated>
<author>
<name>Brian Norris</name>
</author>
<published>2014-07-22T02:07:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=31f754628cbb12c983600f22d9f0fed50dfe2134'/>
<id>urn:sha1:31f754628cbb12c983600f22d9f0fed50dfe2134</id>
<content type='text'>
Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
</content>
</entry>
<entry>
<title>mtd: mtdswap: fix integer overflow</title>
<updated>2014-08-19T18:53:08Z</updated>
<author>
<name>Brian Norris</name>
</author>
<published>2014-07-22T02:07:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8c3f3f1d7941bcb25590b784f84accd7dcb44ba3'/>
<id>urn:sha1:8c3f3f1d7941bcb25590b784f84accd7dcb44ba3</id>
<content type='text'>
Caught by Coverity.

Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
</content>
</entry>
<entry>
<title>mtd: Fixed checkpatch seq_printf warnings</title>
<updated>2014-08-19T18:53:07Z</updated>
<author>
<name>Samarth Parikh</name>
</author>
<published>2014-07-16T10:44:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6f3c0f163103fb225c77b73ca17fc4ecea308103'/>
<id>urn:sha1:6f3c0f163103fb225c77b73ca17fc4ecea308103</id>
<content type='text'>
Fixed checkpatch warnings: "WARNING: Prefer seq_puts to seq_printf"

This patch is created with reference to the ongoing lkml thread
https://lkml.org/lkml/2014/7/15/646
where Andrew Morton wrote:

"
- puts is presumably faster

- puts doesn't go rogue if you accidentally pass it a "%".

- this patch would actually make compiled object files few bytes smaller.
  Perhaps because seq_printf() is a varargs function, forcing the
  caller to pass args on the stack instead of in registers.
"

Signed-off-by: Samarth Parikh &lt;samarthp@ymail.com&gt;
Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
</content>
</entry>
<entry>
<title>mtd: mtdswap: replace strict_strtoul() with kstrtoul()</title>
<updated>2013-08-30T20:52:51Z</updated>
<author>
<name>Jingoo Han</name>
</author>
<published>2013-07-19T06:54:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3156231fb644cf29c1d7f21766ff9e33dc9761d3'/>
<id>urn:sha1:3156231fb644cf29c1d7f21766ff9e33dc9761d3</id>
<content type='text'>
The usage of strict_strtoul() is not preferred, because
strict_strtoul() is obsolete. Thus, kstrtoul() should be
used.

Signed-off-by: Jingoo Han &lt;jg1.han@samsung.com&gt;
Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
</content>
</entry>
<entry>
<title>mtd: do not use mtd-&gt;block_markbad directly</title>
<updated>2012-01-09T18:26:26Z</updated>
<author>
<name>Artem Bityutskiy</name>
</author>
<published>2012-01-02T11:59:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=800ffd3496987e91f599a135060ef49731e045ac'/>
<id>urn:sha1:800ffd3496987e91f599a135060ef49731e045ac</id>
<content type='text'>
Instead, use the new 'mtd_can_have_bb()', or just rely on 'mtd_block_markbad()'
return code, which will be -EOPNOTSUPP if bad blocks are not supported.

Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
</content>
</entry>
<entry>
<title>mtd: introduce mtd_can_have_bb helper</title>
<updated>2012-01-09T18:26:24Z</updated>
<author>
<name>Artem Bityutskiy</name>
</author>
<published>2012-01-02T11:48:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8f461a730242c528ca221948edceca49266a3ffb'/>
<id>urn:sha1:8f461a730242c528ca221948edceca49266a3ffb</id>
<content type='text'>
This patch introduces new 'mtd_can_have_bb()' helper function which checks
whether the flash can have bad eraseblocks. Then it changes all the
direct 'mtd-&gt;block_isbad' use cases with 'mtd_can_have_bb()'.

Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
</content>
</entry>
<entry>
<title>mtd: do not use mtd-&gt;sync directly</title>
<updated>2012-01-09T18:26:21Z</updated>
<author>
<name>Artem Bityutskiy</name>
</author>
<published>2011-12-30T14:35:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=327cf2922b4edf0439b219469722d2a502e37349'/>
<id>urn:sha1:327cf2922b4edf0439b219469722d2a502e37349</id>
<content type='text'>
This patch teaches 'mtd_sync()' to do nothing when the MTD driver does
not have the '-&gt;sync()' method, which allows us to remove all direct
'mtd-&gt;sync' accesses.

Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
</content>
</entry>
<entry>
<title>mtd: introduce mtd_block_markbad interface</title>
<updated>2012-01-09T18:25:48Z</updated>
<author>
<name>Artem Bityutskiy</name>
</author>
<published>2011-12-23T17:37:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5942ddbc500d1c9b75e571b656be97f65b26adfe'/>
<id>urn:sha1:5942ddbc500d1c9b75e571b656be97f65b26adfe</id>
<content type='text'>
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;
</content>
</entry>
</feed>
