Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp560435ybk; Fri, 15 May 2020 07:49:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrcZGk0VmpgPDK1yuVpvJ7LJGZiQtrwwQbahv9rA+MX6omsnqU+WtIEQsTOGdPK2t0lq5R X-Received: by 2002:a50:d9cb:: with SMTP id x11mr3157577edj.88.1589554183886; Fri, 15 May 2020 07:49:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589554183; cv=none; d=google.com; s=arc-20160816; b=gbBiPqVE3EEMhUYqW03SIl3in2ObDAZeRzUkgP3WMc3xfdo7qi1rBm0csipwJqfv87 EJf90OSgT/rgpCa8zNsqc69lHpb4clJajjj8CSOMrG7lCecyAPhvYE/dbY2jmG2AEdJQ nEe5erLM3PbYocYVGFxZEUpF7DYX1DBsRJrvniG88gH5eY726Jek8n2chVPTKuCm07TP 4hBIkX2GYeRvunZHEi8gimB+Yb7Vqth7wCcfqmBQTOP79K4FsFgEHvUsFH1ZGt3I8bUz 4N1KvxtB2ocJa4VTq8bxZmr3HvAMU6ugLMrBfzI5j1FmlhCqAb3HWL27SXCtb6ZiAI+Q fZyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=E4YlS9pF3sJjoRHLbhI+RKYEcdnPavfKO1hCEvlU4mw=; b=z3yN4m9wbiRYsNy5AN5SJe4Oa9wvyvKehWTggVeUPa88OXQxEwxha9hH3GBjaelYGs 1QBuvJ4N3nHp2Uan3efU0Mf6L5h0yeoWd+Ubu+X4uBV5vwRqp+J7ErOdeXEtUgtdqtwT j+K35aFyuGGgm3B9VJ2Mo3/h6mxrFTNAyFBaPjUYEo2Y2XZQRXOFauosGb245HK3juxe YBjBxlAtgJt+ZQKUPk6yVilZ0fyngakCnctIegB6OHltPypFvughaCrHM6b2QZ4RXsa4 /vmH5nRBP6DvUcXtT3IQU7pdYlV+qVLpuJ7fbSBwDCXNNwrBa9f9zBq61+4ecSdn1VBK 0VPQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b34si1288763edf.411.2020.05.15.07.49.20; Fri, 15 May 2020 07:49:43 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726244AbgEOOrw (ORCPT + 99 others); Fri, 15 May 2020 10:47:52 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:44728 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726163AbgEOOrw (ORCPT ); Fri, 15 May 2020 10:47:52 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: evelikov) with ESMTPSA id 329E22A238D Date: Fri, 15 May 2020 15:45:12 +0100 From: Emil Velikov To: Sebastian Reichel Cc: Sebastian Reichel , Rob Herring , Greg Kroah-Hartman , "Rafael J . Wysocki" , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com Subject: Re: [PATCHv1 01/19] kobject: increase allowed number of uevent variables Message-ID: <20200515144512.GB2836808@arch-x1c3> References: <20200513185615.508236-1-sebastian.reichel@collabora.com> <20200513185615.508236-2-sebastian.reichel@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200513185615.508236-2-sebastian.reichel@collabora.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/05/13, Sebastian Reichel wrote: > SBS battery driver exposes 32 power supply properties now, > which will result in uevent failure on (un)plugging the > battery. Other drivers (e.g. bq27xxx) are also coming close > to this limit, so increase it. > > Signed-off-by: Sebastian Reichel > --- > include/linux/kobject.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/linux/kobject.h b/include/linux/kobject.h > index e2ca0a292e21..75e822569e39 100644 > --- a/include/linux/kobject.h > +++ b/include/linux/kobject.h > @@ -29,7 +29,7 @@ > #include > > #define UEVENT_HELPER_PATH_LEN 256 > -#define UEVENT_NUM_ENVP 32 /* number of env pointers */ > +#define UEVENT_NUM_ENVP 64 /* number of env pointers */ To be on the safe side I've checked systemd/udev. It's using ordered hashmap, so it's perfectly capable of handling the extra entries. Reviewed-by: Emil Velikov -Emil