From: walter harms <wharms@bfs.de>
To: kernel-janitors@vger.kernel.org
Subject: Re: [KJ] how about cleaning up all the "__attribute__" defines?
Date: Wed, 17 Jan 2007 13:22:49 +0000 [thread overview]
Message-ID: <45AE2329.2000401@bfs.de> (raw)
In-Reply-To: <Pine.LNX.4.64.0701170625150.31856@CPE00045a9c397f-CM001225dbafb6>
Robert P. J. Day wrote:
> 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:
>
It would be useful indeed.
IMHO they should not be used at all except the author knows what he does.
simply let the compiler do its work.
Different architectures have different needs (a real driver problem), so it would
provide a central place to disable these suckers.
re,
wh
> 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
>
>
>
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
next prev parent reply other threads:[~2007-01-17 13:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2007-01-17 13:44 ` Robert P. J. Day
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45AE2329.2000401@bfs.de \
--to=wharms@bfs.de \
--cc=kernel-janitors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.