Re: [PATCH]: SMBIOS: Add initial code and export version via sysfs

From: Prarit Bhargava
Date: Thu Mar 17 2011 - 15:13:10 EST




On 03/17/2011 03:09 PM, Alan Cox wrote:
>> +static struct class smbios_class = {
>> + .name = "smbios",
>> + .dev_release = (void(*)(struct device *)) kfree,
>> +};
>>
> I thought the policy was no new classes- Greg ?
>

Greg, eventually the SMBIOS code could replace the mixed DMI/SMBIOS code
we have right now. If there is a "no new classes" policy, could you
give me an idea of what I should do/use instead? The DMI stuff is
currently in its own class ...

>
>> + smbios_iounmap(buf, sizeof(*smbios_step));
>> + printk(KERN_INFO "SMBIOS: Invalid STEP table checksum = %u\n",
>> + chksum1);
>>
> Surely this isn't INFO ?
>
>

Good point :) I can certainly make that higher or a WARN_ON in the next
version.

P.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/