Re: checkpatch.pl false positive?

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

 



On Thu, Apr 02, 2020 at 01:16:27PM +0100, Michele Sorcinelli wrote:
> On 4/2/20 1:13 PM, Greg KH wrote:
> > No, the structure should be changed to actually be correct, as that is
> > not how it should be declared in order to not have any padding between
> > variables in the structure :)
> 
> What would be the correct way of declaring that structure?
> 

See any of the structures in include/linux/* that have:
	} __packed;
as their closing bracket.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[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