[ovs-git] [openvswitch/ovs] 1556fc: datapath: compat: Fix compilation issue with grsec...

GitHub noreply at github.com
Mon Oct 15 18:24:19 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 1556fcca676676acefab53bf46c156842ea8cf4f
      https://github.com/openvswitch/ovs/commit/1556fcca676676acefab53bf46c156842ea8cf4f
  Author: Yi-Hung Wei <yihung.wei at gmail.com>
  Date:   2018-10-15 (Mon, 15 Oct 2018)

  Changed paths:
    M datapath/compat.h

  Log Message:
  -----------
  datapath: compat: Fix compilation issue with grsecurity patch

Grsecurity patch enables GCC's constify plugin so that it will
automatically constify a class of type that contains only function
pointers.  However, if the type is also specified by __read_mostly, it
will put the constify object into the read_mostly section that results
in compilation error.  This patch works around the compilation issue by
disabling __ready_mostly when grsecurity patch is applied.

Tested with 4.14.33 kernel with grsecurity patch.

Signed-off-by: Yi-Hung Wei <yihung.wei at gmail.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>
Tested-by: Greg Rose <gvrose8192 at gmail.com>
Reviewed-by: Greg Rose <gvrose8192 at gmail.com>



      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the git mailing list