summaryrefslogtreecommitdiffstats
path: root/Documentation/i2c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-05-06 18:02:40 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2012-05-06 18:02:40 -0700
commit8529f613b6945f4b5bd8c1b69e42aa1cc51b2eb6 (patch)
treec8d29b5c266d90ddbaf3982b3863d64dc2be2ca4 /Documentation/i2c
parenta52dd971f947893bc7735396c74cfa591f0a7558 (diff)
downloadop-kernel-dev-8529f613b6945f4b5bd8c1b69e42aa1cc51b2eb6.zip
op-kernel-dev-8529f613b6945f4b5bd8c1b69e42aa1cc51b2eb6.tar.gz
vfs: don't force a big memset of stat data just to clear padding fields
Admittedly this is something that the compiler should be able to just do for us, but gcc just isn't that smart. And trying to use a structure initializer (which would get us the right semantics) ends up resulting in gcc allocating stack space for _two_ 'struct stat', and then copying one into the other. So do it by hand - just have a per-architecture macro that initializes the padding fields. And if the architecture doesn't provide one, fall back to the old behavior of just doing the whole memset() first. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/i2c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud