linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] lib: make sg_pool tristate instead of bool
@ 2016-04-24  2:44 Paul Gortmaker
  2016-04-24  3:30 ` Ming Lin
  2016-04-27 23:54 ` Martin K. Petersen
  0 siblings, 2 replies; 5+ messages in thread
From: Paul Gortmaker @ 2016-04-24  2:44 UTC (permalink / raw)
  To: linux-kernel
  Cc: Paul Gortmaker, Christoph Hellwig, Ming Lin, Sagi Grimberg,
	Martin K . Petersen

The recently added Kconfig controlling compilation of this code is:

lib/Kconfig:config SG_POOL
lib/Kconfig:    def_bool n

...meaning that it currently is not being built as a module by anyone,
and that tripped my audit looking for modular code that is essentially
orphaned (i.e. module_exit, and .remove fcns in non-modular drivers.)

In the following discussion, Ming Lin indicated that the original
intention was to have it tristate, so here we convert it accordingly.

Also fix up a couple spelling issues that appear in the surrounding
patch context.

Cc: Christoph Hellwig <hch@lst.de>
Cc: Ming Lin <ming.l@ssi.samsung.com>
Cc: Sagi Grimberg <sagi@grimberg.me>
Cc: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
---

[v2: drop modular code removal patch in favour of supporting a modular
 build via a one line Kconfig patch as per Ming's comments.  Build tested
 for allmodconfig on ARM and x86-64 on linux-next.   ]

 lib/Kconfig | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/Kconfig b/lib/Kconfig
index e04f168f8f42..8de5868804b5 100644
--- a/lib/Kconfig
+++ b/lib/Kconfig
@@ -528,13 +528,13 @@ config SG_SPLIT
 	help
 	 Provides a helper to split scatterlists into chunks, each chunk being
 	 a scatterlist. This should be selected by a driver or an API which
-	 whishes to split a scatterlist amongst multiple DMA channels.
+	 wishes to split a scatterlist amongst multiple DMA channels.
 
 config SG_POOL
-	def_bool n
+	def_tristate n
 	help
 	 Provides a helper to allocate chained scatterlists. This should be
-	 selected by a driver or an API which whishes to allocate chained
+	 selected by a driver or an API which wishes to allocate chained
 	 scatterlist.
 
 #
-- 
2.8.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH v2] lib: make sg_pool tristate instead of bool
  2016-04-24  2:44 [PATCH v2] lib: make sg_pool tristate instead of bool Paul Gortmaker
@ 2016-04-24  3:30 ` Ming Lin
  2016-04-27 23:54 ` Martin K. Petersen
  1 sibling, 0 replies; 5+ messages in thread
From: Ming Lin @ 2016-04-24  3:30 UTC (permalink / raw)
  To: Paul Gortmaker
  Cc: lkml, Christoph Hellwig, Ming Lin, Sagi Grimberg, Martin K . Petersen

On Sat, Apr 23, 2016 at 7:44 PM, Paul Gortmaker
<paul.gortmaker@windriver.com> wrote:
> The recently added Kconfig controlling compilation of this code is:
>
> lib/Kconfig:config SG_POOL
> lib/Kconfig:    def_bool n
>
> ...meaning that it currently is not being built as a module by anyone,
> and that tripped my audit looking for modular code that is essentially
> orphaned (i.e. module_exit, and .remove fcns in non-modular drivers.)
>
> In the following discussion, Ming Lin indicated that the original
> intention was to have it tristate, so here we convert it accordingly.
>
> Also fix up a couple spelling issues that appear in the surrounding
> patch context.
>
> Cc: Christoph Hellwig <hch@lst.de>
> Cc: Ming Lin <ming.l@ssi.samsung.com>
> Cc: Sagi Grimberg <sagi@grimberg.me>
> Cc: Martin K. Petersen <martin.petersen@oracle.com>
> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
> ---
>
> [v2: drop modular code removal patch in favour of supporting a modular
>  build via a one line Kconfig patch as per Ming's comments.  Build tested
>  for allmodconfig on ARM and x86-64 on linux-next.   ]
>
>  lib/Kconfig | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/lib/Kconfig b/lib/Kconfig
> index e04f168f8f42..8de5868804b5 100644
> --- a/lib/Kconfig
> +++ b/lib/Kconfig
> @@ -528,13 +528,13 @@ config SG_SPLIT
>         help
>          Provides a helper to split scatterlists into chunks, each chunk being
>          a scatterlist. This should be selected by a driver or an API which
> -        whishes to split a scatterlist amongst multiple DMA channels.
> +        wishes to split a scatterlist amongst multiple DMA channels.
>
>  config SG_POOL
> -       def_bool n
> +       def_tristate n
>         help
>          Provides a helper to allocate chained scatterlists. This should be
> -        selected by a driver or an API which whishes to allocate chained
> +        selected by a driver or an API which wishes to allocate chained
>          scatterlist.
>
>  #

Looks good.

Acked-by: Ming Lin <ming.l@ssi.samsung.com>

Thanks.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2] lib: make sg_pool tristate instead of bool
  2016-04-24  2:44 [PATCH v2] lib: make sg_pool tristate instead of bool Paul Gortmaker
  2016-04-24  3:30 ` Ming Lin
@ 2016-04-27 23:54 ` Martin K. Petersen
  2016-04-28  6:51   ` Christoph Hellwig
  1 sibling, 1 reply; 5+ messages in thread
From: Martin K. Petersen @ 2016-04-27 23:54 UTC (permalink / raw)
  To: Paul Gortmaker
  Cc: linux-kernel, Christoph Hellwig, Ming Lin, Sagi Grimberg,
	Martin K . Petersen

>>>>> "Paul" == Paul Gortmaker <paul.gortmaker@windriver.com> writes:

Paul> The recently added Kconfig controlling compilation of this code
Paul> is: lib/Kconfig:config SG_POOL lib/Kconfig: def_bool n

Paul> ...meaning that it currently is not being built as a module by
Paul> anyone, and that tripped my audit looking for modular code that is
Paul> essentially orphaned (i.e. module_exit, and .remove fcns in
Paul> non-modular drivers.)

Paul> In the following discussion, Ming Lin indicated that the original
Paul> intention was to have it tristate, so here we convert it
Paul> accordingly.

Paul> Also fix up a couple spelling issues that appear in the
Paul> surrounding patch context.

Somebody please review...

-- 
Martin K. Petersen	Oracle Linux Engineering

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2] lib: make sg_pool tristate instead of bool
  2016-04-27 23:54 ` Martin K. Petersen
@ 2016-04-28  6:51   ` Christoph Hellwig
  2016-04-30 19:58     ` Paul Gortmaker
  0 siblings, 1 reply; 5+ messages in thread
From: Christoph Hellwig @ 2016-04-28  6:51 UTC (permalink / raw)
  To: Martin K. Petersen
  Cc: Paul Gortmaker, linux-kernel, Christoph Hellwig, Ming Lin, Sagi Grimberg

On Wed, Apr 27, 2016 at 07:54:19PM -0400, Martin K. Petersen wrote:
> Somebody please review...

The patch is useless, we should just ignore it.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2] lib: make sg_pool tristate instead of bool
  2016-04-28  6:51   ` Christoph Hellwig
@ 2016-04-30 19:58     ` Paul Gortmaker
  0 siblings, 0 replies; 5+ messages in thread
From: Paul Gortmaker @ 2016-04-30 19:58 UTC (permalink / raw)
  To: Christoph Hellwig
  Cc: Martin K. Petersen, linux-kernel, Ming Lin, Sagi Grimberg

[Re: [PATCH v2] lib: make sg_pool tristate instead of bool] On 28/04/2016 (Thu 08:51) Christoph Hellwig wrote:

> On Wed, Apr 27, 2016 at 07:54:19PM -0400, Martin K. Petersen wrote:
> > Somebody please review...
> 
> The patch is useless, we should just ignore it.

I'll be the 1st to admit the patch isn't rocket science, but I'm missing
why it warrants a blanket "ignore" status.  If we have dead code or a
disconnect between Kconfig and source, to me that seems worth fixing.

Not looking to start a debate; just hoping to understand what I missed.

Thanks,
Paul.
--

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-04-30 19:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-24  2:44 [PATCH v2] lib: make sg_pool tristate instead of bool Paul Gortmaker
2016-04-24  3:30 ` Ming Lin
2016-04-27 23:54 ` Martin K. Petersen
2016-04-28  6:51   ` Christoph Hellwig
2016-04-30 19:58     ` Paul Gortmaker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).