Re: Can't get rid of sparse warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jay Cliburn wrote:
Greg KH wrote:

Oh, and  you know that typedefs aren't recommended to be used in the
kernel, right?  See the file, Documentation/CodingStyle for more
details.

I'd change the typedefs, but I'm thrown off by the ATTRIB_PACK business. Can you suggest how to handle it?

#define _AT_ATTRIB_PACK_ __attribute__ ((packed))

typedef struct foo {
...
} _AT_ATTRIB_PACKED_ foo_t

What would this look like "un"typedef'd?

Figured it out.

struct foo {
...
} _AT_ATTRIB_PACK_;

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux