Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp618605ybt; Wed, 24 Jun 2020 07:15:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzs5s3Of/pUC8tp38IBCco5lP8ONMMH1mprJWSV7z2jG1jj9fsnY6kIqsMMMck4FRTwCgp/ X-Received: by 2002:a17:907:9495:: with SMTP id dm21mr24908907ejc.357.1593008158771; Wed, 24 Jun 2020 07:15:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593008158; cv=none; d=google.com; s=arc-20160816; b=xm5zTOx1vOSFyvIec3s2YdsizDOHNvmRh9MwWGt3z+O8W0M7Jd+iPx3Pt5s1QsrCgJ M6wUMEcpIyaR8n5odGxiIhuDuKurRJlTyJtMW5kpnYnq8ohsmVA0yL17Z7EDnQD1GaMp 9ZhxmwwdVgCXjRg8ZWYxZUHx6qEnd68q+xyvDNb6Prm2SgxG2HN4iAcWi8x+lNAwAICR 3xj4F7VAxf+zUyr9AwyYx61CGZxFvEMxOrhO8p+JfqdWXWI+pDDV4vf30Lzjoz+zAy/4 OQPMT4iD8O4BfCdB0xWlQ3m1GBl3HW6wNNnZKEQzN7jN9UwN8g+ui8LBN2gx880gqOvp 9l5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=RKz3cdJXe2hoM5GIr6id15i/IZKe76FR3EXbaf6TXp4=; b=0215KAWKr52tsXfGFPEr5JE4joEWqXeaQvtOB3xanvNKFkqOUHDhRXEXcag7WzIpRT oQKC1leFoHEjIOiqG8p6WqnHmxtersD8jBmQJeu40B2AFwe352dtlsYhA8k6KGG+LlV4 GOvko3v1nxT9LVcvO9Qls5OG5x1rlkkuJxk/ePOoOWSidcojHrNDIQfia/pAT7III8YI sCD2bxOKBHNtTgdEvTp1pDt72yndbE1/4JR3GLy/mDh2F/uRXwEhhFmAyu+Dw1C4UjmN heESruhlfEjzUwPz27w8NOkOcaLvFJl67WPVz5mZCLUeUizFH76pw45+16ty/t4d2BlL qDog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=poono5pq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qc8si7826054ejb.150.2020.06.24.07.15.35; Wed, 24 Jun 2020 07:15:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=poono5pq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391189AbgFXON4 (ORCPT + 99 others); Wed, 24 Jun 2020 10:13:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389583AbgFXONz (ORCPT ); Wed, 24 Jun 2020 10:13:55 -0400 Received: from mail-qv1-xf44.google.com (mail-qv1-xf44.google.com [IPv6:2607:f8b0:4864:20::f44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24BA6C0613ED for ; Wed, 24 Jun 2020 07:13:55 -0700 (PDT) Received: by mail-qv1-xf44.google.com with SMTP id dm12so1076026qvb.9 for ; Wed, 24 Jun 2020 07:13:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=RKz3cdJXe2hoM5GIr6id15i/IZKe76FR3EXbaf6TXp4=; b=poono5pq6vhzbjvFd1OHrtxuikcrummcCc9v5GctMBp+PBK+7qT4Ah+iRf7eEmqxAo kyKRtRFGZcOpcEaJTzBCgMCNyx9vTN63XF3B5HeEUeah5Pc3bmj6Wwd7vBu4pjMlORv8 vLc9wcXyue/fRjof9G4UbxEBkDsaG7i4TSQQdhkNN4fZGDN9qtV79HsbGjk6pMHB9aHm 6YkdDuvB8qEN3smb8RHmwmyui58Azd/wuGnjgJi79zqlioBBBsKjTvE9CydYqpN1RC11 ojjjRKfB4yh6PYC/udhxXDkilYPjZtPLTP4rxJAMakk+6xW7qzCvBTg3ZkWjX22yIj5t 3+nw== 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:content-transfer-encoding; bh=RKz3cdJXe2hoM5GIr6id15i/IZKe76FR3EXbaf6TXp4=; b=XWIpNEDEnoOWKr600uKvXJJu4Ys73a4mkFYo6g45ye3NttQM15LXmlqqKrPaQ7v6Jm ZhMDtXgU8nFnZRZzh1Ji3PnXr8rCJB3QkV/DdLBMKwA+QP+3fwpNRcBIIYoUmgzu6e03 w4+e+ony7+pw3zIzCepIH30oMNv9CM3lNGTxbKk9UF6Q8GfvzoGR94D20aGRA0hsUyD0 sDNDF7LVH3/ovLZTEYy1ZnZlkxFePB128OMtZLfge+N5bXtQpTfQE8aeV8WAnKcdpn7f Egi1EVDCjWJV6KYl+aBk/RcK/dNQQAznioa/L8pDtswR2Jzjx3BQtA+HGHVgf4SWJMto jUZQ== X-Gm-Message-State: AOAM531k5/D8tvPcz+BER/NI4FQEwVZxxXHcglP7loUNZemf0ZyTbruF NJzveZtrwGWs/tHiHJpIekWVaOw9FVtNL6TXQHgCwfdgJNg= X-Received: by 2002:ad4:580e:: with SMTP id dd14mr14998492qvb.96.1593008034313; Wed, 24 Jun 2020 07:13:54 -0700 (PDT) MIME-Version: 1.0 References: <20200623040107.22270-1-warthog618@gmail.com> <20200623040107.22270-13-warthog618@gmail.com> In-Reply-To: <20200623040107.22270-13-warthog618@gmail.com> From: Bartosz Golaszewski Date: Wed, 24 Jun 2020 16:13:43 +0200 Message-ID: Subject: Re: [PATCH 12/22] gpio: uapi: define GPIO_MAX_NAME_SIZE for array sizes To: Kent Gibson Cc: LKML , linux-gpio , Linus Walleij Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org wt., 23 cze 2020 o 06:02 Kent Gibson napisa=C5=82(a)= : > > Replace constant array sizes with a macro constant to clarify the source > of array sizes, provide a place to document any constraints on the size, > and to simplify array sizing in userspace if constructing structs > from their composite fields. > > Signed-off-by: Kent Gibson > Reviewed-by: Bartosz Golaszewski