Tomoyo build warnings

James Morris jmorris at namei.org
Wed May 8 22:54:51 UTC 2019


I'm seeing these during a kernel build in my tree:

In file included from security/tomoyo/util.c:11:
security/tomoyo/common.h: In function ‘tomoyo_put_name’:
security/tomoyo/common.h:1183:14: warning: taking address of packed member 
of ‘struct tomoyo_shared_acl_head’ may result in an unaligned pointer 
value [-Waddress-of-packed-member]
 1183 |   atomic_dec(&ptr->head.users);
      |              ^~~~~~~~~~~~~~~~
security/tomoyo/common.h: In function ‘tomoyo_put_condition’:
security/tomoyo/common.h:1197:14: warning: taking address of packed member 
of ‘struct tomoyo_shared_acl_head’ may result in an unaligned pointer 
value [-Waddress-of-packed-member]
 1197 |   atomic_dec(&cond->head.users);
      |              ^~~~~~~~~~~~~~~~~
security/tomoyo/common.h: In function ‘tomoyo_put_group’:
security/tomoyo/common.h:1210:14: warning: taking address of packed member 
of ‘struct tomoyo_shared_acl_head’ may result in an unaligned pointer 
value [-Waddress-of-packed-member]
 1210 |   atomic_dec(&group->head.users);
      |              ^~~~~~~~~~~~~~~~~~
  AR      security/tomoyo/built-in.a
  AR      security/built-in.a
  Building modules, stage 2.


Please check.


-- 
James Morris
<jmorris at namei.org>


More information about the Linux-security-module-archive mailing list