Re: [PATCH] openrisc: make function cache_loop() inline

2018-11-13 Thread Changbin Du
On Wed, Nov 14, 2018 at 05:49:53AM +0900, Stafford Horne wrote: > On Mon, Nov 12, 2018 at 11:55:44PM +0800, Changbin Du wrote: > > The third operand of mtspr instruction must be a constraint. To guarantee > > this condition, function cache_loop() which uses macro mtspr() must be > > inlined. So

Re: [PATCH] openrisc: make function cache_loop() inline

2018-11-13 Thread Changbin Du
On Wed, Nov 14, 2018 at 05:49:53AM +0900, Stafford Horne wrote: > On Mon, Nov 12, 2018 at 11:55:44PM +0800, Changbin Du wrote: > > The third operand of mtspr instruction must be a constraint. To guarantee > > this condition, function cache_loop() which uses macro mtspr() must be > > inlined. So

Re: [PATCH] openrisc: make function cache_loop() inline

2018-11-13 Thread Stafford Horne
On Mon, Nov 12, 2018 at 11:55:44PM +0800, Changbin Du wrote: > The third operand of mtspr instruction must be a constraint. To guarantee > this condition, function cache_loop() which uses macro mtspr() must be > inlined. So let's force it as 'inline'. This is to fix compiling error with > new

Re: [PATCH] openrisc: make function cache_loop() inline

2018-11-13 Thread Stafford Horne
On Mon, Nov 12, 2018 at 11:55:44PM +0800, Changbin Du wrote: > The third operand of mtspr instruction must be a constraint. To guarantee > this condition, function cache_loop() which uses macro mtspr() must be > inlined. So let's force it as 'inline'. This is to fix compiling error with > new

[PATCH] openrisc: make function cache_loop() inline

2018-11-12 Thread Changbin Du
The third operand of mtspr instruction must be a constraint. To guarantee this condition, function cache_loop() which uses macro mtspr() must be inlined. So let's force it as 'inline'. This is to fix compiling error with new option CONFIG_NO_AUTO_INLINE. In file included from

[PATCH] openrisc: make function cache_loop() inline

2018-11-12 Thread Changbin Du
The third operand of mtspr instruction must be a constraint. To guarantee this condition, function cache_loop() which uses macro mtspr() must be inlined. So let's force it as 'inline'. This is to fix compiling error with new option CONFIG_NO_AUTO_INLINE. In file included from