From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751388AbeAELNT (ORCPT + 1 other); Fri, 5 Jan 2018 06:13:19 -0500 Received: from mail-wm0-f48.google.com ([74.125.82.48]:38897 "EHLO mail-wm0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751092AbeAELNQ (ORCPT ); Fri, 5 Jan 2018 06:13:16 -0500 X-Google-Smtp-Source: ACJfBouA45Zqp3Yjq/6jSFtkA5N+g2WhRQQjmKLo3M/iINgkFWSNrrA8GuIYstQ+ZCGHgg9Bt9REMg== Date: Fri, 5 Jan 2018 12:13:13 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: Mario Limonciello Cc: dvhart@infradead.org, Andy Shevchenko , LKML , platform-driver-x86@vger.kernel.org, Andy Lutomirski , quasisec@google.com, rjw@rjwysocki.net, mjg59@google.com, hch@lst.de, Greg KH , Alan Cox Subject: Re: [PATCH v10 12/15] platform/x86: dell-smbios: Add filtering support Message-ID: <20180105111313.23c6vjs2x3fhtvi4@pali> References: <2dfbb122aa11fa9ff73cbfc6a403b82d1bb2e7c8.1508434514.git.mario.limonciello@dell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2dfbb122aa11fa9ff73cbfc6a403b82d1bb2e7c8.1508434514.git.mario.limonciello@dell.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: I know that this patch is already applied and merged, but I spotted this problem: On Thursday 19 October 2017 12:50:15 Mario Limonciello wrote: > +/* calls that are explicitly blacklisted */ > +static struct smbios_call call_blacklist[] = { > + {0x0000, 01, 07}, /* manufacturing use */ > + {0x0000, 06, 05}, /* manufacturing use */ > + {0x0000, 11, 03}, /* write once */ > + {0x0000, 11, 07}, /* write once */ Numbers prefixed by zero means that they are in octal notation, right? This can lead to misunderstanding, confusion or problems in future... Can we have all numbers either in hexadecimal or decimal notation? > + {0x0000, 11, 11}, /* write once */ > + {0x0000, 19, -1}, /* diagnostics */ > + /* handled by kernel: dell-laptop */ > + {0x0000, CLASS_INFO, SELECT_RFKILL}, > + {0x0000, CLASS_KBD_BACKLIGHT, SELECT_KBD_BACKLIGHT}, > +}; -- Pali Rohár pali.rohar@gmail.com