Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3627876pxv; Mon, 19 Jul 2021 05:06:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxaM+683enaWfJpsqdAjDIPpS5cR3A8gR04vzm/eqzx4fzWHB2ZVSwBx8Ma34xjq6CiY2G X-Received: by 2002:a05:6e02:d41:: with SMTP id h1mr16073266ilj.191.1626696378943; Mon, 19 Jul 2021 05:06:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626696378; cv=none; d=google.com; s=arc-20160816; b=zIaA0UgqfVZl6o6N2V7BENOf8v87VEIQ6e5wzeux0z/tw31RWxVLoxxyTIoWIBHQ8Z 5XfT50hZ+Z7YDaUBbq0gcbdipIyVdrx4r3qXUCMx/PaBKzx5sJaWLJR19W1rIx2uH5qH 1ZuAItjmuelD7v/rKhnEXZHpdIxDGpkVtO625M2hVBWFi/unTkq20jP7yhFbTo6/N9iJ IcZO+kyQs7jZN6AH7rnPl0ib2RJJMrzLV3HYqW69wp/6+GGd02ftvOHx1o7v/96Bi7KQ /dyxD4OKaPRi/FL6M5t9LhHHYRmfi3+yDNaxP430aZaZ+ff3Sm49dVtbNMQgZnqTxH5h V0HA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=WbSSv4SMMJjF7KN+TnDqYe+YVaoD9GOlfgRW24gr4kk=; b=yPMQFeV0GNBZ0hkGNntkvjYZVhd2YK+lCV86E45CD+4RY6THPUK41Tg0NnuHEVgwur 9+JihqOzqBkQNAZVYMJLPXzbif6/7GoVop/EKVmG/HgDwJSKSDGWF3foz3ply+swOHLt gtevAh3W6DbHlWZa6a8OJsFf2HRzvbCGk4n5LZum2BW/TGilsMEm1GAje399gNY//2hJ khYiwjm83wwxxUc8OYANkOYxnInwEmbfDA6iWozkQ40vTC3l8qFInzpx2c09McgpVJX/ HdS1tiQrsJSmlj9APJLXikH2MlLMr5VfijGknbs1O4lLlV679ZvN8hwChlKwrZdu5HCc yd/w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h9si24108347jaj.25.2021.07.19.05.06.06; Mon, 19 Jul 2021 05:06:18 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236715AbhGSLYr (ORCPT + 99 others); Mon, 19 Jul 2021 07:24:47 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:33310 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236576AbhGSLYq (ORCPT ); Mon, 19 Jul 2021 07:24:46 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 55EE11C0B77; Mon, 19 Jul 2021 14:05:25 +0200 (CEST) Date: Mon, 19 Jul 2021 14:05:23 +0200 From: Pavel Machek To: Randy Dunlap Cc: Amy Parker , kernel test robot , kbuild-all@lists.01.org, linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] swap led_brightness from enum to typedef Message-ID: <20210719120523.GA20484@duo.ucw.cz> References: <9b5902665dcc4c0fca7546987303e348d8657f59.1626383424.git.apark0006@student.cerritos.edu> <202107161046.heIVRW8r-lkp@intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4Ckj6UjgE2iN1+kY" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --4Ckj6UjgE2iN1+kY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > >>> vim +18 include/media/v4l2-flash-led-class.h > >>> > >>> 14 > >>> 15 struct led_classdev_flash; > >>> 16 struct led_classdev; > >>> 17 struct v4l2_flash; > >>> > 18 led_brightness; > >>> 19 > >>> > >>> --- >=20 > >=20 > > Another patch was sent into the list to correct this error. >=20 > Hopefully Pavel (LED subsystem maintainer) will comment soon-ish. >=20 > My comments: >=20 > a. This patch would be the right thing to do if your large patch had alre= ady been > applied (merged) somewhere, but AFAIK it hasn't been. So: >=20 > b. IMO you should resend your entire patch set with this fix included. > Send it as "v2" (version 2) and explain the changes in it since your > original patch (which was v1). This v2 explanation should be below the > "---" line in the patch. (See Documentation/process/submitting-patches.rst > for more info -- or ask for more info/help.) I still remember the old patch, so b. is not strictly neccessary here. > c. For your follow-up patch to include/media/v4l2-flash-led-class.h, whic= h was: >=20 > -led_brightness; > +typedef u8 led_brightness; >=20 > I would just add this to include/media/v4l2-flash-led-class.h: >=20 > #include >=20 > That way, in a few years, when the type of led_brightness changes again, > someone won't have to remember to search for other typedefs of it and > update them also. Or maybe they will do that after a bug happens and > someone notices it. >=20 > (Note that I am just trying to help. Pavel has more of a final > say-so about this.) And your comments are reasonable. Best regards, Pavel --=20 http://www.livejournal.com/~pavelmachek --4Ckj6UjgE2iN1+kY Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCYPVqgwAKCRAw5/Bqldv6 8sqcAJ0fEgANqqfVlKhtWakvUenLudcV5ACgn+3+BKVHIGKTxz+twWmvkg3w3eE= =vptw -----END PGP SIGNATURE----- --4Ckj6UjgE2iN1+kY--