Message ID | 20230703135211.87416-1-andriy.shevchenko@linux.intel.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp551101vqx; Mon, 3 Jul 2023 07:08:12 -0700 (PDT) X-Google-Smtp-Source: APBJJlGST1UUPU5C2ubZPfD47o+MfscyQ099WMiP/UYqIvdsSoj8ki51lWoSS153GLR7bvL97BdQ X-Received: by 2002:a17:90a:2845:b0:263:a5b5:c538 with SMTP id p5-20020a17090a284500b00263a5b5c538mr7427110pjf.4.1688393291576; Mon, 03 Jul 2023 07:08:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688393291; cv=none; d=google.com; s=arc-20160816; b=Re1U1kWOjDPZKLZVFADjVP+c9lA1hei9RQFpm5jL7UtSFjQD7x3uPv153+4unc5iOh ZKUA8b6LlX6HDtnSPU8oAUI8sjH6xrV5DLE6EOuHQQ0/HAbr8nPdyoBhzVLAoI324vvI iwwZtOu9QmMKVTzgdVpDQTE7AKlCtcMDz+R+qZ5DBiBzXBO8X0DYXuyTgmYCHo/NicDj nrIncQkFYMqvxymwmxCKkJCsmaFw6kK+HjK+10q8yqPM1Hpcz7Vq/0XQnD2thBbnNpYb dfhvXll3GdYHZa7Dm6cI80dU+KQ+nh/8iOrCCiQTI+TxSfLRtHzQSc9zlm/nKT1jk6np dvBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=QOOViDByc5mOH5KU39stjTvcNBlnsdd4drGIlF2J8fs=; fh=Yry+BREdxSx0S6v1doyfX8ieBuVlIc7oUyKJ9x/Rj+g=; b=GibMqgR9IgHFXRsFJUi6BTbJmSkq3jvpH04HhKRPArKNfiqYPIVPShbjD65LxQTfQH rwtbumAduoG6kVSusaAwfUmIXIXGauAfT/KB91bbYEwJbcC3YakLbrUQ+MeL/KEiJAvd 7ptFG4oMsZ/t5HymnIsnQovQs6gS5vSiQ7qa434RJXrBVRhnhyQ+1WpNYpRCq8k+C1Ce OKBDFU58jsgIMFeVavZeQe2HsuIhGTDBtFvWHm9QNta47Tekzl89NHTt0XOdq0/6/0it mO9nFUxM1pj+EaB8N80S5Hk76J1IVRigYJumiQAsjDT8sTcWH0F/+ObT3eqWSTw8xv+A hp+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=FBb5wQWs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ot4-20020a17090b3b4400b00263deaac48esi82056pjb.8.2023.07.03.07.07.56; Mon, 03 Jul 2023 07:08:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=FBb5wQWs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231282AbjGCNw2 (ORCPT <rfc822;ivan.orlov0322@gmail.com> + 99 others); Mon, 3 Jul 2023 09:52:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231147AbjGCNw0 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 3 Jul 2023 09:52:26 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E638E58; Mon, 3 Jul 2023 06:52:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1688392345; x=1719928345; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=d7GySrGTjr8ZNAoiest4xrB1TTCUEMZaaC1CRETXOOo=; b=FBb5wQWs6EIBby+7ju/n0GLWoXmdi5adiPfzkecNuRPgtUtSN0Z9XIts kHTG2OYlPpbp1uvXfIjJ4ehndOZKNiE3Yym/UFgoPt0mTVZ5a477jBgbr AMoxDAaWgkFRMq9VFwMEe8YFYLeVmAkTioo5J/IH0T15bCDx8HtKaYbOP m+PQT46fZ96V92inKQvIfeyaQ+oWhzAQNsr7Uk86OGoSWyejI9FCQvnyZ OmFi720uLUBEkjBji7+rN0EpBrHw21t7kW+I+1/t8X0Bx1GNXTyZdkTBE ow1TXFe4hN+glO+ZsiPpNFxiT8PqjttzTzoZwbDjCuG4EgULCENE/BpdW A==; X-IronPort-AV: E=McAfee;i="6600,9927,10760"; a="365457290" X-IronPort-AV: E=Sophos;i="6.01,178,1684825200"; d="scan'208";a="365457290" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jul 2023 06:52:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10760"; a="721773868" X-IronPort-AV: E=Sophos;i="6.01,178,1684825200"; d="scan'208";a="721773868" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga007.fm.intel.com with ESMTP; 03 Jul 2023 06:52:19 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id ADCC9170; Mon, 3 Jul 2023 16:52:22 +0300 (EEST) From: Andy Shevchenko <andriy.shevchenko@linux.intel.com> To: Mauro Carvalho Chehab <mchehab@kernel.org>, Andy Shevchenko <andriy.shevchenko@linux.intel.com>, Hans Verkuil <hverkuil-cisco@xs4all.nl>, =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= <u.kleine-koenig@pengutronix.de>, Mark Brown <broonie@kernel.org>, David Lin <CTLIN0@nuvoton.com>, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, alsa-devel@alsa-project.org Cc: Jonathan Corbet <corbet@lwn.net>, Antti Palosaari <crope@iki.fi>, Sergey Kozlov <serjk@netup.ru>, Abylay Ospan <aospan@netup.ru>, Yasunari Takiguchi <Yasunari.Takiguchi@sony.com>, Michael Krufky <mkrufky@linuxtv.org>, Matthias Schwarzott <zzam@gentoo.org>, Akihiro Tsukada <tskd08@gmail.com>, Liam Girdwood <lgirdwood@gmail.com>, Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com> Subject: [PATCH v2 0/4] ASoC: remove copy of intlog10() Date: Mon, 3 Jul 2023 16:52:07 +0300 Message-Id: <20230703135211.87416-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770408684059580737?= X-GMAIL-MSGID: =?utf-8?q?1770408684059580737?= |
Series |
ASoC: remove copy of intlog10()
|
|
Message
Andy Shevchenko
July 3, 2023, 1:52 p.m. UTC
The first three patches moves intlog10() to be available in entire kernel. The last one removes copy of it in one driver. Besides already good Lines of Code (LoC) statistics the upcoming users, if any, can utilize the exported functions. The series can be routed via ASoC tree (as Mauro suggested). Note, int_log.h is separated from math.h due to licensing. I dunno if we can mix two in a single header file. In any case we may do it later on. Changelog v2: - moved kernel doc inclusion to the generic place (Mauro) - added tags (Mauro, Mark) Andy Shevchenko (4): lib/math: Move dvb_math.c into lib/math/int_log.c lib/math/int_log: Use ARRAY_SIZE(logtable) where makes sense lib/math/int_log: Replace LGPL-2.1-or-later boilerplate with SPDX identifier ASoC: nau8825: Replace copied'n'pasted intlog10() Documentation/core-api/kernel-api.rst | 7 +- Documentation/driver-api/media/dtv-common.rst | 9 -- drivers/media/dvb-core/Makefile | 2 +- drivers/media/dvb-frontends/af9013_priv.h | 2 +- drivers/media/dvb-frontends/af9033_priv.h | 2 +- drivers/media/dvb-frontends/cxd2820r_priv.h | 2 +- drivers/media/dvb-frontends/cxd2841er.c | 2 +- .../cxd2880/cxd2880_tnrdmd_dvbt2_mon.c | 2 +- .../cxd2880/cxd2880_tnrdmd_dvbt_mon.c | 2 +- .../media/dvb-frontends/cxd2880/cxd2880_top.c | 2 +- drivers/media/dvb-frontends/dib7000p.c | 2 +- drivers/media/dvb-frontends/dib8000.c | 2 +- drivers/media/dvb-frontends/dib9000.c | 2 +- drivers/media/dvb-frontends/drxk_hard.c | 2 +- drivers/media/dvb-frontends/lgdt3305.c | 2 +- drivers/media/dvb-frontends/lgdt3306a.c | 2 +- drivers/media/dvb-frontends/lgdt330x.c | 2 +- drivers/media/dvb-frontends/m88ds3103_priv.h | 2 +- drivers/media/dvb-frontends/mn88443x.c | 2 +- drivers/media/dvb-frontends/mn88472_priv.h | 2 +- drivers/media/dvb-frontends/mn88473_priv.h | 2 +- drivers/media/dvb-frontends/or51132.c | 2 +- drivers/media/dvb-frontends/or51211.c | 2 +- drivers/media/dvb-frontends/rtl2830_priv.h | 2 +- drivers/media/dvb-frontends/rtl2832_priv.h | 2 +- drivers/media/dvb-frontends/si2165.c | 2 +- drivers/media/dvb-frontends/stv0367.c | 2 +- drivers/media/dvb-frontends/tc90522.c | 2 +- drivers/media/dvb-frontends/tda10048.c | 2 +- include/{media/dvb_math.h => linux/int_log.h} | 18 +--- lib/math/Makefile | 2 +- .../dvb-core/dvb_math.c => lib/math/int_log.c | 26 ++---- sound/soc/codecs/nau8825.c | 93 +------------------ 33 files changed, 49 insertions(+), 160 deletions(-) rename include/{media/dvb_math.h => linux/int_log.h} (63%) rename drivers/media/dvb-core/dvb_math.c => lib/math/int_log.c (84%)
Comments
On Mon, 03 Jul 2023 16:52:07 +0300, Andy Shevchenko wrote: > The first three patches moves intlog10() to be available in entire > kernel. The last one removes copy of it in one driver. Besides already > good Lines of Code (LoC) statistics the upcoming users, if any, can > utilize the exported functions. > > The series can be routed via ASoC tree (as Mauro suggested). > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/4] lib/math: Move dvb_math.c into lib/math/int_log.c commit: f97fa3dcb2db02013e6904c032a1d2d45707ee40 [2/4] lib/math/int_log: Use ARRAY_SIZE(logtable) where makes sense commit: 08f6a14b2d376e96cb7166694193ec3c3a496d25 [3/4] lib/math/int_log: Replace LGPL-2.1-or-later boilerplate with SPDX identifier commit: 9ab04d7ed8bdd395b0617a1647dd475681f99151 [4/4] ASoC: nau8825: Replace copied'n'pasted intlog10() commit: a04616321f50bc389cd8d19a6d300d3c3f1be77b All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark