Re: [PATCH 4/8] x86: io: add "memory" clobber to insb/insw/insl/outsb/outsw/outsl

From: Linus Torvalds
Date: Wed Jul 19 2017 - 15:46:49 EST


On Wed, Jul 19, 2017 at 5:53 AM, Arnd Bergmann <arnd@xxxxxxxx> wrote:
>
> I tried to mark the exact input buffer as an output here, but couldn't
> figure it out. As suggested by Linus, marking all memory as clobbered
> however is good enough too. For the outs operations, I also add the
> memory clobber, to force the input to be written to local variables.
> This is probably already guaranteed by the "asm volatile", but it can't
> hurt to do this for symmetry.

Ack, obviously looks fine to me.

Linus