lkml.org 
[lkml]   [1997]   [Jun]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Non-atomic copy_xxx_user problems
Date
  Bill Hawes <whawes@star.net> writes:
> +#define COPY_TO_MSG "Non-atomic copy_to_user in %s at line %d\n"
> + printk(&COPY_TO_MSG[0], __FILE__, __LINE__); \

You might want to allocate one copy of these COPY_*_MSG strings in one .c
file and declaring the string external in the header. That way gcc won't
allocate a fresh copy for each file you compile.

That change should cut around half the bloat you're seeing (I'm guessing
here).

--
Il est mort, Jean Luc...
--
Matthias Urlichs \ noris network GmbH / Xlink-POP Nürnberg
Schleiermacherstraße 12 \ Linux+Internet / EMail: urlichs@noris.de
90491 Nürnberg (Germany) \ Consulting+Programming+Networking+etc'ing
PGP: 1024/4F578875 1B 89 E2 1C 43 EA 80 44 15 D2 29 CF C6 C7 E0 DE
Click <A HREF="http://info.noris.de/~smurf/finger">here</A>. 42

\
 
 \ /
  Last update: 2005-03-22 13:39    [W:0.030 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site