Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4247580ybi; Tue, 18 Jun 2019 14:39:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqy9OKPtkbGqZuFqhBsZRCoh/CWbcn4+4mqLGMPNiu1d+EmIBEQsB3dYOeEV/szQ7zJpuzU5 X-Received: by 2002:a62:764d:: with SMTP id r74mr101449444pfc.110.1560893985146; Tue, 18 Jun 2019 14:39:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560893985; cv=none; d=google.com; s=arc-20160816; b=JUzQzCc3rJNGo1UxLwsE1EvE31B+k36q8j+OQ3L+JKLmxIyH9ncFKYNbs4lsxdJp0o bgLe4Pi9PuO1FRHSlBOl5YxYZrwyeevwDIu69OwnoTfIQBFXz6Vpt6b4Xf10j9+pE7iw MNctNb3r4uKqP3yAxDMnluegEZ+tfB3a17prZao2dez1Fc7TnU0s+ULvsOjJxdZGV5Xq vlhdfjDRYWhs75fn8QRUoa+rUMsj9qpD2IEDRs1iWU9g7kNP+k4augpmO3aGC4qv1nle elilI41rEhpycMkzQ7HvSn8ZaMZfXJGAJsQ+1yF3Gkf2W2Y9OXkPq+ym7DB9qIZFg3JT lPvw== 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=CfDzrmiLLr6oflVOPsQavK7j8U1kl3aBRQppHFQ95h8=; b=FxnDH1ozgcs7Ie9l8kwj09fdnLFXDb0yk1d407+5Iefp0G6dlC6O+R09pWuAqjI2OH /LKpU1rOjqEisLA9xocHWOOVxtjw6MqTspmjq/hRtYWQkish3IzGf58OM5dbquMGKxaN q0raukLpcGxy4V1EAtxhYF1DfJxycxeLnqFanUEN6+QiEbIAUHQxqctAcis4+VkKdlPq tWJ+Ca3uloy/iaowHD1Hk4OWTRSVyrX+RQVzEdechr+ogeR/2IwXcbFrM6KeH0/Nyp3T uL4cvo9peGwVEwMKGhxyOaAKQBDeJngt+vS6NzLudznDanXJTKedyGUibeoCFK+3TetA pqNA== 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 b36si14692323pla.289.2019.06.18.14.39.29; Tue, 18 Jun 2019 14:39:45 -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 S1730620AbfFRViK (ORCPT + 99 others); Tue, 18 Jun 2019 17:38:10 -0400 Received: from sauhun.de ([88.99.104.3]:45320 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730176AbfFRViK (ORCPT ); Tue, 18 Jun 2019 17:38:10 -0400 Received: from localhost (p5486CE06.dip0.t-ipconnect.de [84.134.206.6]) by pokefinder.org (Postfix) with ESMTPSA id 6249B2C047A; Tue, 18 Jun 2019 23:38:07 +0200 (CEST) Date: Tue, 18 Jun 2019 23:38:07 +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: <20190618213807.GA8356@kunai> References: <20190612081929.GA1687@kunai> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="pf9I7BMVVzbSWLtt" 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 --pf9I7BMVVzbSWLtt 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 I see there is a build-fix from davem now in linux-next. Shall I still apply this patch to my i2c tree once Mauro applied it to his? --pf9I7BMVVzbSWLtt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAl0JWboACgkQFA3kzBSg Kbaa/w//dkLZr3BGmVtNIAhtFtIVjejosTZf8PSX+avUaQH4EJQqe8kEwVzWHN7P o90IAkHqohbxmtgryeqROQQpzy8QIjKsr0zzqYIZlacU5z694Jev6AGhpw0dYx/j 3uYth51SjXmY/efoVQa+Z0tTCj5zNh8crkGQqitPgl0I0zzGBHDmfOh8pdJBYgYo HCuVP0NdugdIBOWcbiDEtF0mik7k71Zh1J1ZGcJw/LC5WrZ2WNS2ILHFH1yKDjVe 1WLFb8yE/Ea313X+f1Hgh3BSVxUszkFSRyfZvMabvdZb2jzzkUlxzHd78ZoAvvEb HjQ7oocJCy6XP312JllhG+TdLChu92HcNpaSbh4vxo15ilCQtcVPMXQIehvtgme0 Wn7MpuA3hjX1cltpjfsMYjl+LsAe1MlHPF5xFZusiA2N1OUIVhEcMTSvm5me44MB /syQnj8oCnOEtoPE7JaMwKxO0kj/z2HJrv7WEJg9eqRdigFq89SsXYt8UM0oh+UN pKPhHsdr5s2hY8Z2vw/p2K+um53tGCDwwswOJ1BC/I3LhOM9vg/dLDigA7bOpmmt 7HXf1cpBVJ/pDumoBq1sKfGIy4IqWNRw++/a7jjTMBogNSE14H7xAG17D9AowMkc ncqhh0FIPFr9DPZzFdLSHwvXIrbR6UOr0yuimIG3ukxOyTiktUg= =/ckW -----END PGP SIGNATURE----- --pf9I7BMVVzbSWLtt--