Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5890614ybi; Wed, 12 Jun 2019 10:11:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqysJ4O8fYxrAsycrG8QCF/opm4gSdWjE6UIi/qVK4XVqUK15Bu9IV8kSglycVUqD5WY/4pb X-Received: by 2002:a17:90a:9a95:: with SMTP id e21mr235427pjp.98.1560359464767; Wed, 12 Jun 2019 10:11:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560359464; cv=none; d=google.com; s=arc-20160816; b=vAcreoh8AhU6AH6lBY8WatIaieF+Wd/WEPfnYJNFZADy/S1gGWZ/7JIZIMdgMjxOTS A3n3vk7W0wfkNqCRYN1kOYVsuldMKm5Y7Eq4ZC+dNe2ovHPpNqeWU8WCOcxWFHyH0f9J Sm9bJztGl6Rl14UfgWBWngUxlIfFR7vU1Vqlojs5kslK/AlxGoYOIdIbjv5ZtTfiJdTK Vhp3Y8cqYRFLPX0S5O3mjzlE/YSNv7FAQnWy0PbrXdrdSoF3mMAxd9Rpfr4MQPmy4QrI g3BqV0Ke0Dg2JJHNmKdEaqKw5yrD6nN5zUp6S+PGW9L163MFmLvDXKp7bKw4MyS0Saeq wrrQ== 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=PtUyP+mC675IafK3sU3e8vhrdetphb8JB0phxBeQerw=; b=YE68AWa6JpILuvyp7asRtSFJqwWWlLT3d0sqTfRHUiMGJOo0ziu8FgAtIK+JBN+Z3t GxMtdH7RursgHSt1ykvN71miuBJGpNR0PO9ubZ0PHuJymwUMvvTp5Qj64F4Ex0dOg/Rp iUIfWu48+6GwdLzaBIaC/zeNrMSLisLCuRrT5t5gsqFC0zSwUdTqgBZbrSRRYCtkHsCj 3tJ4pZ9qP0/+cIJ0KZFTcaTI6qHS9BWVk3LAiQaYus4+VOhj1Nluz62xj6y2HJma7yzY NF0UuXE8JwOkYNX+XvZhPRWSL+YrZWd8+RNp7XSr4L+Mn+G8gPBOtTQ4TaUS5zBj8uCW ehlw== 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 d5si291652pfn.182.2019.06.12.10.10.49; Wed, 12 Jun 2019 10:11:04 -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 S2405655AbfFLMB0 (ORCPT + 99 others); Wed, 12 Jun 2019 08:01:26 -0400 Received: from sauhun.de ([88.99.104.3]:59056 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405198AbfFLMBZ (ORCPT ); Wed, 12 Jun 2019 08:01:25 -0400 Received: from localhost (p5486CACA.dip0.t-ipconnect.de [84.134.202.202]) by pokefinder.org (Postfix) with ESMTPSA id 32B0B2C54BC; Wed, 12 Jun 2019 14:01:23 +0200 (CEST) Date: Wed, 12 Jun 2019 14:01:22 +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: <20190612120122.GA2805@kunai> References: <20190612081929.GA1687@kunai> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="J2SCkAp4GZ/dPZZf" 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 --J2SCkAp4GZ/dPZZf 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 Acked-by: Wolfram Sang --J2SCkAp4GZ/dPZZf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAl0A6Y4ACgkQFA3kzBSg Kba4Pg/+ONgJJSPFFjCsjZt5hyRLBQiQ9aFn+9zRmA2GDcSxjKb/NSZZInR+ggE9 OQaO6dux7uA1X+UBlyQUSoxw8MHJGQqB8x1Xhg2EoZ5vOd53F2CJeQiUprr5GIok K7I5ETSMTgANqHqFZA2Ou65LFBE34RujYq7wv+2oAlviQiHx1wY0s5HmO9Rwya5R 80frSRmQZ3Q+vZmvUU3o+kRMxpq+DZK8McFBNw50p9K5QSGgAQkvjdjIdyoveK6n tXZ5uaEQdiPgrkWiuTxmvwtA3KggWAaiKXQxBebIgD0iy2SaBfm1QfQI5oiQOcOF 2CXYVo/1Y1AtCLFYOzNbNINKuVNphGSlR2SBzZ7Oc4kovrVt95VbAEMtHSkzhuwY FcxLMLH03T8vczUelYDUdv+atB4QoYBGs9WdliprT08DHNgBS+8ASRJM8cybGT9g DN1yFWE8YfhGVasuhIZul8shmfVthZIOo/GlaY0XxgODCkbB0Oq18moO4sjAquOA YnJg6IXDfzQUHAMSHuyquXb69I4QYeI+wibhw88/XNB1FpBVi6w0M3q8IxTj7gOY ZaFqAolAjnlXhBORhTdzKrInM0v0iaw1XGjKiUwfEEwZCTo0Oy5uczjlIkm86qFc 3h7EtxA8SDpTzZ/4MfGmJRQkuGmclz/HtVN3bTMqsJs5zQM0gxs= =TVqj -----END PGP SIGNATURE----- --J2SCkAp4GZ/dPZZf--