lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 29 Jul 2011 10:50:58 -0700
From:	Stephen Hemminger <shemminger@...tta.com>
To:	paulmck@...ux.vnet.ibm.com
Cc:	Michael Chan <mchan@...adcom.com>, linux-kernel@...r.kernel.org
Subject: RCU: how to suppress warnings from rcu_assign_pointer?

Gcc now generates warnings from rcu_assign_pointer when passed the
address of something for example:
	rcu_assign_pointer(dev_queue->qdisc, &noop_qdisc);
This warning is harmless and should be surpressed but there maybe
other cases where we want that Gcc warning.

I tried various combinations of in rcu_assign_pointer macro
  #pragma GCC diagnostic push
  #pragma GCC diagnostic ignored "-Wlogical-op"
  ...
  #pragma GCC diagnostic pop
but macro's and pragma's don't nest with the correct scope for
this.

Maybe some one with more Gcc foo and time to waste could take
a crack at it.


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ