X-Git-Url: http://git.samba.org/samba.git/?a=blobdiff_plain;f=include%2Flinux%2Fcompiler.h;h=445348facea97d2755f371198ca5730302c3f1ba;hb=44e56f325b7d63e8a53008956ce7b28e4272a599;hp=fc5004a4b07d7b5b546e07f7d952fd1094892ead;hpb=b79f9f93eb483f2757b089bb4e1eb3827a609080;p=sfrench%2Fcifs-2.6.git diff --git a/include/linux/compiler.h b/include/linux/compiler.h index fc5004a4b07d..445348facea9 100644 --- a/include/linux/compiler.h +++ b/include/linux/compiler.h @@ -161,7 +161,9 @@ void ftrace_likely_update(struct ftrace_likely_data *f, int val, #endif #ifndef OPTIMIZER_HIDE_VAR -#define OPTIMIZER_HIDE_VAR(var) barrier() +/* Make the optimizer believe the variable can be manipulated arbitrarily. */ +#define OPTIMIZER_HIDE_VAR(var) \ + __asm__ ("" : "=r" (var) : "0" (var)) #endif /* Not-quite-unique ID. */