Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3625074imu; Mon, 28 Jan 2019 08:03:13 -0800 (PST) X-Google-Smtp-Source: ALg8bN4pMXZjtiODWPGCPlnI3MEiqEqXzCRxBW1Ut/RuRLSI979J8HNN3RL9mtA0EKJBX48Gy1CQ X-Received: by 2002:a63:413:: with SMTP id 19mr20007033pge.7.1548691393455; Mon, 28 Jan 2019 08:03:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548691393; cv=none; d=google.com; s=arc-20160816; b=uiVFJ3Ehzs3GRYYxxzUcqiRq/akSrfyuoicmSIjR40UiGMqRhGo+wmS9gQhOHwBmYp 0BGj9pjW4dUOcffjhBeJtWrg3jPUnrKD7KbKjKrgVFpcJrldTRTWu7l9bepwA7bzVQ53 gDATzuMfjlNiec+tKMcr+nU8vAYoYFNIIM9NSnaQy5TSjdqjKCmPpBBUwlsZT7B/BtF7 r58Omqog7lS4f2sD3oKlvRNO/8LshesbCinhM4VQmSrHpO+WU77nSR8UnZXfC33cIxlf C2uW2b+G/M7i++LAcYXydUAWAGyPOXXUHcAOIxBsBlbvw1ot0yZp57nm5LN0D8w2jWHJ 6SkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=enNVGkt9XDJEL3W1otIblCYmxiA/11Y68u0rYJ68T+U=; b=x7BoalRSWO2+RF33KO45JYjm8TBY0rioejehuOJRfQ0JbehLiUWYN0wFcZzRdPv5TB KrpfzZcsEYYqx4Xa//IFuUAzu2o3DTODvLsjgE+4V3ZqsJtaxILeBZGBTsiCjGRhAEDN OjIFNxYAEWm2ILm4vz6bnbaxUesIBKeKuSVuAOzTWsmqRLopecpYwxpd8du2F3i6+PML yblqcAUPX/Fset1jmyWxV+vc5OVj/L7AZtXOkZ0noeE0ydpgAKP+I4lEhgOfj2dXpVhv RAUv6mdlOZGRgWDfxD/m2xagT2Y4pARN2XMQb6xWxLz9DaZPCp7ouw9SSSKEZ4NmF6vl nBVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="UZvjHYj/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si33507336plp.114.2019.01.28.08.02.56; Mon, 28 Jan 2019 08:03:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="UZvjHYj/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730487AbfA1QB7 (ORCPT + 99 others); Mon, 28 Jan 2019 11:01:59 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:45423 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729309AbfA1QBy (ORCPT ); Mon, 28 Jan 2019 11:01:54 -0500 Received: by mail-pf1-f195.google.com with SMTP id g62so8164203pfd.12; Mon, 28 Jan 2019 08:01:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=enNVGkt9XDJEL3W1otIblCYmxiA/11Y68u0rYJ68T+U=; b=UZvjHYj/10tnpz1w6iWx5p+RfcdWFv61HQwrEqiR4P2NTarn3cus8cBk8KOjSo3J94 lApmfTJZBjfKHVLcT1Kf0Pkj/6ib6bVNMqgzR9U1cX5BR8wOMGVzTvUFk3T3ZKzB+LJA 4py1EcbSSkXIFzA7hfI6+48ujLTQ5bHx8g8JTXZ8jkCNW/N6NaqqHT0hUI0H6A6xlE9c VbYT5Xx7Xs+JQr7DUiLBMmReCXCA7Siivlrh6FDiPMQpIBO43FmnC5ysbHX983NwaaFL oEG2MLv+NrZm4xu3i/UdEGnDuSv3D+SpPQcU2pwaznUNx0JYEvG3RZyFSnWnVYFHCMZ4 yMkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=enNVGkt9XDJEL3W1otIblCYmxiA/11Y68u0rYJ68T+U=; b=kkn+7GEhbQPdbw45Gh91mndmke/53VFVhW97iwRxdNcMojkDzQIMN8CXSGgV2ZyDeY VI5toeZb4qBV6bOYdQdQhZEg4Esr/eZRa4twI7YyIiqK0+wAma2RrSF1mguykZ3AA5I6 EMpJHFXLbeXh4YI0tZJXInWyhB8rNQ824jpRu1PatZytNmUuWMN1ifFhP49y6OBZQPbw 6uRnHtjwfWcfvQMsOonO2EH+iNGdqzbOr9S8KZjPK3dc+y+w5NeRCU5rn8pN2XuyGo2u QrYujOBfwrbOGeF7K1115BUgzjV3n6g1IiE625nymIu0kzga3aeqJfk9MwJine3t4FC4 VMVg== X-Gm-Message-State: AJcUukf7dReB2NaC2BB61HJ1DJ9bThhbjaIwYa3vyyADawHYV52jA8rj 72jaGhpbBQRA/RXaBMHDBZaBS6yMFbYtHlItEkLNdb1u X-Received: by 2002:a63:20e:: with SMTP id 14mr20241414pgc.161.1548691313263; Mon, 28 Jan 2019 08:01:53 -0800 (PST) MIME-Version: 1.0 References: <20190128135437.qetbebros3xkayyn@mok.nu> In-Reply-To: <20190128135437.qetbebros3xkayyn@mok.nu> From: Andy Shevchenko Date: Mon, 28 Jan 2019 18:01:42 +0200 Message-ID: Subject: Re: [PATCH v2 1/3] platform/x86: wmi: move struct wmi_device_id to mod_devicetable.h To: Mattias Jacobsson <2pi@mok.nu> Cc: Darren Hart , Andy Shevchenko , Platform Driver , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 28, 2019 at 3:55 PM Mattias Jacobsson <2pi@mok.nu> wrote: > On 2019-01-27, Andy Shevchenko wrote: > > On Sun, Jan 27, 2019 at 9:04 PM Mattias Jacobsson <2pi@mok.nu> wrote: > > > +#define WMI_GUID_STRING_LEN 36 > > > > Isn't this already defined in UUID namespace? > > (include/linux/uuid.h IIRC) > > Kind of, UUID_STRING_LEN is defined in uuid.h. It is included behind a > #ifdef __KERNEL__, but others seam to use things included through it so > I guess it is alright... > > Let me know how you want it. On one hand I think too many places with the same information is not good. On the other hand WMI might change this limit in the future and on top of this it seems you are sharing it with user space. However, file2alias.c includes kernel header directly and uses a duplicate definition for cases !__KERNEL__. So, I would do that way. Use in mod_devicetable.h the definition from uuid.h (which is already included there), and duplicate the same definition in file2alias.c in the way it's done for the rest UUID stuff there. > > > #include > > > > > +#include > > > > Not sure it's needed since acpi.h includes that. > > It is included in acpi.h(behind CONFIG_ACPI), I thought it was cleaner > with it included explicitly. Plus that we aren't relying on others to > include it. > > Let me know how you want it. Since it's minor, it's up to you. Ideally we would better to split out that inclusion from acpi.h and explicitly do this in all similar cases, but it's not ours call here. That said, your variant is okay. -- With Best Regards, Andy Shevchenko