All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] how about cleaning up all the "__attribute__" defines?
@ 2007-01-17 11:30 Robert P. J. Day
  2007-01-17 13:22 ` walter harms
  2007-01-17 13:44 ` Robert P. J. Day
  0 siblings, 2 replies; 3+ messages in thread
From: Robert P. J. Day @ 2007-01-17 11:30 UTC (permalink / raw)
  To: kernel-janitors


  it strikes me that a useful cleanup would be to centralize all of
the shortcut "__attribute__" definitions in one place.  consider:

$ grep -r "#define.*attribute.*packed" .
./drivers/scsi/u14-34f.c:#define PACKED__attribute__((packed))
./drivers/scsi/BusLogic.h:#define PACKED __attribute__((packed))
./drivers/scsi/gdth_ioctl.h:#define PACKED  __attribute__((packed))
./drivers/scsi/ultrastor.c:#define PACKED __attribute__((packed))
./drivers/media/dvb/frontends/bcm3510_priv.h:#define PACKED __attribute__((packed))
./include/linux/eventpoll.h:#define EPOLL_PACKED __attribute__((packed))
./include/linux/cycx_x25.h:#define PACKED __attribute__((packed))
./fs/hfsplus/hfsplus_raw.h:#define __packed __attribute__ ((packed))
./fs/befs/befs_fs_types.h:#define PACKED __attribute__ ((__packed__))
./fs/hfs/hfs.h:#define __packed __attribute__ ((packed))

  i mean, seriously, how many different files need to redefine the
macro "PACKED"?  (or, as it were, "__packed"?)  i think it would be
handy to have all of those shortcut defines in one file, with a little
documentation to go along with each so that newbies would know:

  1) what they mean, and
  2) under what circumstances they should be used

thoughts?

rday

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-01-17 13:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-17 11:30 [KJ] how about cleaning up all the "__attribute__" defines? Robert P. J. Day
2007-01-17 13:22 ` walter harms
2007-01-17 13:44 ` Robert P. J. Day

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.