Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6670780ybi; Mon, 8 Jul 2019 06:49:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqwkQ9KK8doUOkbPgVDiSCRjwpIbVAJbW/XLRsc0HsdnTub7B0kWWoAfaPs0oE+236KpeeS1 X-Received: by 2002:a17:90a:bd0b:: with SMTP id y11mr21334254pjr.141.1562593754411; Mon, 08 Jul 2019 06:49:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562593754; cv=none; d=google.com; s=arc-20160816; b=wMgNFHlwp/j9kC6jpdPdCAYRCFJdbsW1dfbl33BKHzer4nCJ0BfuSLd5HUG9YzRyEL KEZ2MnhGN7KneSpE6WRrhGb+FwJSnUVt3QHjZ2DHV0lVow1c3X5g9TrdUg3a38o970D9 bm9UvRuY9aE7DIV0gX+bR+EAFXtL+nsrxkFRiZRwLUSijOcb/Yxagp6lcsjko2S/fCT4 1Ous0PrTI1YEICgA64h62JxKkH2YGoi5uGBqvxKFZzyb/xuA9G7SO40I8WB/qUtHPS4T sD/5QtLuc8hjAneuE/cdijmw80JyCMwQD3LZy63AZallE+jbsAskS72JcLcIatn3ES18 zWYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Bf5Tig+jd5KNq9ILFTYl6jTOVQq2hZc89XNoFoBYuFk=; b=QR1cR9B7MmwTDk+U9SDRgyEnta8J+faeEHfmOyFdZfZE6l7vKPBWPYYHWlDQymTHE1 s5rEXOiZmNG7tNzj/p3KfZ7rsl3vcefLQM2cBlLh7oAOmJdfNtRKFUq7ghtOnEB5HXrh QPPequ/Yf1QZcorSY1RRb7bx+zRDAYKxOK7R9nASsKei+k9spauqqt14GqFi/2RKd8u9 qZbKdJvq1z08zohLw+B4soFB0q70+8GmL8HSTcqL2umy5CnU9O7izR/3wPL3aUVVG216 h6agi9wr59R/9to/oImVZ+CLu9oenTF737TK3cSqKFSpFR5F5ak/dTeVMzx6jjtTcDLQ iJYA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g7si16844854plt.244.2019.07.08.06.48.59; Mon, 08 Jul 2019 06:49:14 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729221AbfGHJZr (ORCPT + 99 others); Mon, 8 Jul 2019 05:25:47 -0400 Received: from sauhun.de ([88.99.104.3]:39068 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727163AbfGHJZr (ORCPT ); Mon, 8 Jul 2019 05:25:47 -0400 Received: from localhost (p54B33631.dip0.t-ipconnect.de [84.179.54.49]) by pokefinder.org (Postfix) with ESMTPSA id EEA7D2C04C2; Mon, 8 Jul 2019 11:25:43 +0200 (CEST) Date: Mon, 8 Jul 2019 11:25:43 +0200 From: Wolfram Sang To: Mauro Carvalho Chehab Cc: Linux Media Mailing List , Mauro Carvalho Chehab , Linux Next Mailing List , Linux Kernel Mailing List , Ruslan Babayev , Andrew de Quincey , Michael Buesch , Stephen Rothwell Subject: Re: [PATCH] media: tua6100: Remove some ugly defines Message-ID: <20190708092543.GA1050@kunai> References: <20190612081929.GA1687@kunai> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="NzB8fVQJ5HfG6fxh" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --NzB8fVQJ5HfG6fxh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 12, 2019 at 08:25:03AM -0300, Mauro Carvalho Chehab wrote: > As reported by Stephen: >=20 > > After merging the i2c tree, today's linux-next build (x86_64 allmodconf= ig) > > produced this warning: > > > > drivers/media/dvb-frontends/tua6100.c: In function 'tua6100_set_params': > > drivers/media/dvb-frontends/tua6100.c:71: warning: "_P" redefined > > #define _P 32 > > > > In file included from include/acpi/platform/aclinux.h:54, > > from include/acpi/platform/acenv.h:152, > > from include/acpi/acpi.h:22, > > from include/linux/acpi.h:21, > > from include/linux/i2c.h:17, > > from drivers/media/dvb-frontends/tua6100.h:22, > > from drivers/media/dvb-frontends/tua6100.c:24: > > include/linux/ctype.h:14: note: this is the location of the previous de= finition > > #define _P 0x10 /* punct */ > > > > Exposed by commit > > > > 5213d7efc8ec ("i2c: acpi: export i2c_acpi_find_adapter_by_handle") > > > > Since that included from > > > > Originally introduced by commit > > > > 00be2e7c6415 ("V4L/DVB (4606): Add driver for TUA6100") > > > > The _P in has existed since before git. >=20 > The addition of include at the I2C code caused a > breakage at the tua6100 driver. The reason is that the code there > used defines for 3 parameters used at the calculus for the > divide ratio. >=20 > In thesis, those are board-dependent, but, as there's just one > driver using it (ttpci/budget-av), there was no need to make > the code more generic. While it sounds unlikely that this old > DVB-S frontend would ever be used on new projects, one might > some day come with a variant using a different configuration. So, > let's do the right thing and store those values at its private > struct. >=20 > Reported-by: Stephen Rothwell > Signed-off-by: Mauro Carvalho Chehab Mauro, what do we do here? The merge window is open and I can't send my I2C pull request unless the above issue is fixed. I see two options: 1) This patch gets fast-tracked into the media-tree (or I can pick it into my I2C tree if you are fine with that) 2) I pick the intermediate fix from David Miller in linux-next into my tree, but I'd need your ack for this patch (can be given here): https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git/commit/d= rivers/media/dvb-frontends/tua6100.c?id=3D621ccc6cc5f8d6730b740d31d48182278= 66c93c9 Kind regards, Wolfram --NzB8fVQJ5HfG6fxh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAl0jDBMACgkQFA3kzBSg KbZgmA//Y4Uat5FuqUH5KCIdV4VqRuZxik4xLSUhCDPYBGcukT41EALv9HdMk2nG g0ok9znCKmK6rU+tUu2BvpOOpL0T7i2uqylTL7YI2/+v2v1sKJUderDaC1Y0zu7B Cx3K+DuxEPN9ShN84eiUL6snlQDu/lVC0n+bJ2kqk3RNF6BjmoHOweQPWBX6oSpE MBzlb60ih4fOp5Sq22RglUxbK5KIdp+61aPSArz0DbxlIU9Z5joz4qnG1NABMibv AIsLZgifiPtEdx9GHfuNEbrpqHZh3k2G5oGLTTbo3x6S3yd2ab1VrPJVKkB3giSf J5aEcs114vCMz+EMi+VJuE91QfxtoYOt+De409qZLA7Xv+DBMnv3HEEFhngLZ0SO THf1Z8PeFP48T6puzPZprwljjuEsSyNzuEzbJ0F0YctOR7AeRTU7bVFqlI3PQDKZ mJwnRD7345/P8IzI0JwhYLPFFAW5OrbnhMVyKiw7dM3uJm0Qg45YLn91C/9lNc76 Y2WxbFxKLpfMOGpbHOd7/YQ5iIdCtczyKq37TJN/DcYIHCgFXlOEI4FiChyzw9zv +Z5+uyZMjlKAmbAb+2ehOBzw4eBY3ZDYvETaGSzIvGjUKvuwfJYEtgb3t+buyh0U 4uaO6GWgUMEDwidEDvyuNkJls+OFrP5NI8wXbjwlL9zO0zKssKU= =sUUN -----END PGP SIGNATURE----- --NzB8fVQJ5HfG6fxh--