<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/arch/nds32/include, branch linux-4.19.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.19.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.19.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2022-03-28T06:41:44Z</updated>
<entry>
<title>nds32: fix access_ok() checks in get/put_user</title>
<updated>2022-03-28T06:41:44Z</updated>
<author>
<name>Arnd Bergmann</name>
</author>
<published>2022-02-14T14:48:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=87d82483f1cf34e114ddcfe3da24fd4a4318ed97'/>
<id>urn:sha1:87d82483f1cf34e114ddcfe3da24fd4a4318ed97</id>
<content type='text'>
commit 8926d88ced46700bf6117ceaf391480b943ea9f4 upstream.

The get_user()/put_user() functions are meant to check for
access_ok(), while the __get_user()/__put_user() functions
don't.

This broke in 4.19 for nds32, when it gained an extraneous
check in __get_user(), but lost the check it needs in
__put_user().

Fixes: 487913ab18c2 ("nds32: Extract the checking and getting pointer to a macro")
Cc: stable@vger.kernel.org @ v4.19+
Reviewed-by: Christoph Hellwig &lt;hch@lst.de&gt;
Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>nds32: Fix bug in bitfield.h</title>
<updated>2019-12-01T08:17:18Z</updated>
<author>
<name>Nickhu</name>
</author>
<published>2018-10-25T02:24:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3ee72f30c1636c57c9fe0dbd925d25ecb10a9ff8'/>
<id>urn:sha1:3ee72f30c1636c57c9fe0dbd925d25ecb10a9ff8</id>
<content type='text'>
[ Upstream commit 9aaafac8cffa1c1edb66e19a63841b7c86be07ca ]

There two bitfield bug for perfomance counter
in bitfield.h:

	PFM_CTL_offSEL1		21 --&gt; 16
	PFM_CTL_offSEL2		27 --&gt; 22

This commit fix it.

Signed-off-by: Nickhu &lt;nickhu@andestech.com&gt;
Acked-by: Greentime Hu &lt;greentime@andestech.com&gt;
Signed-off-by: Greentime Hu &lt;greentime@andestech.com&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>mm: make the __PAGETABLE_PxD_FOLDED defines non-empty</title>
<updated>2018-12-29T12:37:57Z</updated>
<author>
<name>Martin Schwidefsky</name>
</author>
<published>2018-10-31T11:11:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ba38c3e788384aa7210340f9c54eceab00c3b31c'/>
<id>urn:sha1:ba38c3e788384aa7210340f9c54eceab00c3b31c</id>
<content type='text'>
[ Upstream commit a8874e7e8a8896f2b6c641f4b8e2473eafd35204 ]

Change the currently empty defines for __PAGETABLE_PMD_FOLDED,
__PAGETABLE_PUD_FOLDED and __PAGETABLE_P4D_FOLDED to return 1.
This makes it possible to use __is_defined() to test if the
preprocessor define exists.

Acked-by: Kirill A. Shutemov &lt;kirill.shutemov@linux.intel.com&gt;
Signed-off-by: Martin Schwidefsky &lt;schwidefsky@de.ibm.com&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>nds32: fix build error because of wrong semicolon</title>
<updated>2018-09-04T06:45:20Z</updated>
<author>
<name>Greentime Hu</name>
</author>
<published>2018-08-28T08:07:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ec865393292f5ad8d52da20788b3685ebce44c48'/>
<id>urn:sha1:ec865393292f5ad8d52da20788b3685ebce44c48</id>
<content type='text'>
It shall be removed in the define usage. We shall not put a semicolon there.

/kisskb/src/arch/nds32/include/asm/elf.h:126:29: error: expected '}' before ';' token
 #define ELF_DATA ELFDATA2LSB;
                             ^
/kisskb/src/fs/proc/kcore.c:318:17: note: in expansion of macro 'ELF_DATA'
     [EI_DATA] = ELF_DATA,
                 ^~~~~~~~
/kisskb/src/fs/proc/kcore.c:312:15: note: to match this '{'
    .e_ident = {
               ^
/kisskb/src/scripts/Makefile.build:307: recipe for target 'fs/proc/kcore.o' failed

Signed-off-by: Greentime Hu &lt;greentime@andestech.com&gt;
</content>
</entry>
<entry>
<title>nds32: Add macro definition for offset of lp register on stack</title>
<updated>2018-09-04T06:45:19Z</updated>
<author>
<name>Zong Li</name>
</author>
<published>2018-08-20T01:51:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=95f93ed7fe92c16f5346e477491d91e4fa8e92b8'/>
<id>urn:sha1:95f93ed7fe92c16f5346e477491d91e4fa8e92b8</id>
<content type='text'>
Use macro to replace the magic number.

Signed-off-by: Zong Li &lt;zong@andestech.com&gt;
Acked-by: Greentime Hu &lt;greentime@andestech.com&gt;
Signed-off-by: Greentime Hu &lt;greentime@andestech.com&gt;
</content>
</entry>
<entry>
<title>nds32/ftrace: Support dynamic function tracer</title>
<updated>2018-09-04T06:45:18Z</updated>
<author>
<name>Zong Li</name>
</author>
<published>2018-08-15T03:00:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6b1d6d2fba37129f690ee7e9164f225c55626cac'/>
<id>urn:sha1:6b1d6d2fba37129f690ee7e9164f225c55626cac</id>
<content type='text'>
This patch contains the implementation of dynamic function tracer.
The mcount call is composed of three instructions, so there are three
nop for enough placeholder.

Signed-off-by: Zong Li &lt;zong@andestech.com&gt;
Acked-by: Greentime Hu &lt;greentime@andestech.com&gt;
Signed-off-by: Greentime Hu &lt;greentime@andestech.com&gt;
</content>
</entry>
<entry>
<title>nds32/ftrace: Support static function tracer</title>
<updated>2018-09-04T06:45:17Z</updated>
<author>
<name>Zong Li</name>
</author>
<published>2018-08-15T02:45:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a18082575c664847d36c6ca030b09ce8d93aec2f'/>
<id>urn:sha1:a18082575c664847d36c6ca030b09ce8d93aec2f</id>
<content type='text'>
This patch support the static function tracer. On nds32 ABI, we need to
always push return address to stack for __builtin_return_address can
work correctly, otherwise, it will get the wrong value of $lp at leaf
function.

Signed-off-by: Zong Li &lt;zong@andestech.com&gt;
Acked-by: Greentime Hu &lt;greentime@andestech.com&gt;
Signed-off-by: Greentime Hu &lt;greentime@andestech.com&gt;
</content>
</entry>
<entry>
<title>nds32: Extract the checking and getting pointer to a macro</title>
<updated>2018-09-04T06:45:17Z</updated>
<author>
<name>Zong Li</name>
</author>
<published>2018-08-13T08:02:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=487913ab18c215b06611c4c91c7e905fc0960eb8'/>
<id>urn:sha1:487913ab18c215b06611c4c91c7e905fc0960eb8</id>
<content type='text'>
Signed-off-by: Zong Li &lt;zong@andestech.com&gt;
Acked-by: Greentime Hu &lt;greentime@andestech.com&gt;
Signed-off-by: Greentime Hu &lt;greentime@andestech.com&gt;
</content>
</entry>
<entry>
<title>nds32: Clean up the coding style</title>
<updated>2018-09-04T06:45:16Z</updated>
<author>
<name>Zong Li</name>
</author>
<published>2018-08-13T07:08:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7ef39548df8cdb6406e3b4b7255e7f8cd3fe3b13'/>
<id>urn:sha1:7ef39548df8cdb6406e3b4b7255e7f8cd3fe3b13</id>
<content type='text'>
1. Adjust indentation.
2. Unify argument name of each macro.
3. Add space after comma in parameters list.
4. Add space after 'if' keyword.
5. Replace space by tab.
6. Change asm volatile to __asm__ __volatile__

Signed-off-by: Zong Li &lt;zong@andestech.com&gt;
Acked-by: Greentime Hu &lt;greentime@andestech.com&gt;
Signed-off-by: Greentime Hu &lt;greentime@andestech.com&gt;
</content>
</entry>
<entry>
<title>nds32: Fix get_user/put_user macro expand pointer problem</title>
<updated>2018-09-04T06:45:16Z</updated>
<author>
<name>Zong Li</name>
</author>
<published>2018-08-13T06:48:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6cce95a6c7d288ac2126eee4b95df448b9015b84'/>
<id>urn:sha1:6cce95a6c7d288ac2126eee4b95df448b9015b84</id>
<content type='text'>
The pointer argument of macro need to be taken out once first, and then
use the new pointer in the macro body.

In kernel/trace/trace.c, get_user(ch, ubuf++) causes the unexpected
increment after expand the macro.

Signed-off-by: Zong Li &lt;zong@andestech.com&gt;
Acked-by: Greentime Hu &lt;greentime@andestech.com&gt;
Signed-off-by: Greentime Hu &lt;greentime@andestech.com&gt;
</content>
</entry>
</feed>
