Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4827398imm; Mon, 14 May 2018 13:56:23 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq27K4D88vzdPhZgjzHUyg3aMHMG9SVAmjrv7Nr7yrQFJqqOG6lsQI/sWOyfWiqLygpgyUr X-Received: by 2002:a17:902:70c4:: with SMTP id l4-v6mr11425257plt.174.1526331383940; Mon, 14 May 2018 13:56:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526331383; cv=none; d=google.com; s=arc-20160816; b=WRzT+yeV0k2UOc9ufjQxWNa4NR6cdEB0DU4vaJt1FyjJy+i2ffWKBxi7pT+KVknlb1 yq9ftHdG8gpnlSsjTrNDXXBd4qbFdxTyD4TEm3LY4+jRlmCh3PXZFdI7T03w48N4npUM HHk7YA7DVMHw/Giphkk8zNTDOiopuAvolhbKJjIvtb1iRrCeJfV8fl593UTMccWyMzEJ 6lrgnDNWXVzRGEdVR5mW6tpOG3bUD2FJ6z4jrzRsWK5s4O0y8T2iRgOLHCCQsWeC8LQL 77tSqUzICVgNR7bde4G6qhRG+3vkD/CNGTXTov45P8GqoSC7Hdg1Db0ji0dA0P+0Q2Wo NZEQ== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=dnow8lJoxdh4niPS70mfvnGNp1xLsE9aFc+7n3wxf4Y=; b=lL8dyVBu/GmbfuZQX0gHKu6XQ494q2sYyA4W0o4EroisPJCYnD98bXpKd7woxmGhc0 CvmxqOy+noYqQw6EFoumDHORFtc41K5ack9YXxEcKaPDRM47w/bFX5CKpzjgojBgpRIt nc9JFeeP9RBYLQpMUQJjFQ9K9WTkEOJSgHiIp2jAu5BH7ITvbb6kJ3z9pj1DBDsnbt57 MeARGfwBWgDRLvm4OB7VO20AQYnazPVnc7noY0FiiGY+MjPVN5WjxwgqMv6FdrcYQub7 W82qkK/PjUNl+A515ZoBuQ61O4sMz1MNd7IDaWnH6s1zyQWLHotH0UQSBUut95RpMJw1 Talg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=R24cEaP/; 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 t184-v6si10165497pfb.98.2018.05.14.13.56.09; Mon, 14 May 2018 13:56:23 -0700 (PDT) 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=R24cEaP/; 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 S1752243AbeENUzf (ORCPT + 99 others); Mon, 14 May 2018 16:55:35 -0400 Received: from mail-qk0-f172.google.com ([209.85.220.172]:45318 "EHLO mail-qk0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752057AbeENUzd (ORCPT ); Mon, 14 May 2018 16:55:33 -0400 Received: by mail-qk0-f172.google.com with SMTP id a8-v6so415912qkj.12; Mon, 14 May 2018 13:55:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=dnow8lJoxdh4niPS70mfvnGNp1xLsE9aFc+7n3wxf4Y=; b=R24cEaP/Htlav6BUSCZZbzGl34bhJHpKF/ziw6zTr+HnTjInA0anKSndZplv7FTYd5 NF7YocZ9+w98GCaD0TaVp7duf39GjiP74AIrNbEHmoFqDTmylkeOv4jpzZI8+N4GuXGh +c4yoLGuR+zhTNZC5kqC1sWFeO1XBn/DWXTHeHHtg45n07RGOHMTlcWnHJuIctjJbZxN 1mMIx79yKVRaG9O1v5CtXpece2NAegNcWnOkOTOxaPWMn/ZS4YumyIvAw8vySlpsyu/Q gG1etrzv++dF9kmch3JI03g94jedQY4lJn+HxQ2S0vFBNDfA3x4D0pFI0B8jDYLnacvF /omA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=dnow8lJoxdh4niPS70mfvnGNp1xLsE9aFc+7n3wxf4Y=; b=pfxSLIFxsr9CeqKlW3B1cgZA9XGHKUo7qGNwBlHaOniyl5evGhdE3tGFVIyjsoLBT8 VNn0Y0ppu0kTWMQLLCp3OZF0kUPkNl1v3b0CuyyCsU8egR3kTCZimmUjBOL0I7wEWaJl qBZCwVzSaas9yyypB51kiTKIxdnBkDU7jRoKyVu2JrUaWabIIOML0MrOOQEUwcmB81Q3 1r9vkZ+Si5naNndyuCeJau5RcR9keJnJuGic7TwXuMFCYvOZnJtRVu0wg0QP5Bjde+m4 f+xEmYBwGrB8iGX5K3iH82971/bKkTzsYEUkt2HtwQ9TH7N1I5wXmI4ZQuYQ2YijoP0E Attg== X-Gm-Message-State: ALKqPwdV8Ad+f4uOWa0T07N7R4LruRn8A6eWSFo9WSw5XHVyjk6q3iQe jEGA087h4OO9VwMyRUzh13U2Njx8FC9gsRQsReY= X-Received: by 2002:a37:1f06:: with SMTP id f6-v6mr9771441qkf.147.1526331332759; Mon, 14 May 2018 13:55:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.152.150 with HTTP; Mon, 14 May 2018 13:55:32 -0700 (PDT) In-Reply-To: References: <20180508131547.44366-1-andriy.shevchenko@linux.intel.com> <20180514121817.GA27869@wunner.de> <20180514154017.GA6734@wunner.de> From: Andy Shevchenko Date: Mon, 14 May 2018 23:55:32 +0300 Message-ID: Subject: Re: [PATCH v2] device property: Get rid of union aliasing To: "Rafael J. Wysocki" Cc: Andy Shevchenko , Lukas Wunner , Greg Kroah-Hartman , Linux Kernel Mailing List , Ard Biesheuvel , linux-efi , Sakari Ailus , Mika Westerberg , "Rafael J . Wysocki" , ACPI Devel Maling 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, May 14, 2018 at 11:44 PM, Rafael J. Wysocki wrote: > On Mon, May 14, 2018 at 6:13 PM, Andy Shevchenko > wrote: >> On Mon, 2018-05-14 at 17:40 +0200, Lukas Wunner wrote: >>> On Mon, May 14, 2018 at 03:48:09PM +0300, Andy Shevchenko wrote: >>> Well if that is your concern then you need to prevent functions which >>> retrieve properties to use the wrong type. >>> >>> E.g. to prevent retrieval of the u8 array as string, you'd have to >>> amend drivers/base/property.c:pset_prop_read_string_array() to >>> check the type of the property found and return -EINVAL if it's not >>> string. >> >> I think it's doable. I will hack a new version later this week. > > So I'm assuming that I should disregard this patch and wait for an > update, right? Right. -- With Best Regards, Andy Shevchenko