2012-06-08 15:34:00

by Paul Bolle

[permalink] [raw]
Subject: [PATCH] Remove lib/mpi/generic_mpi-asm-defs.h

This header got added by commit 7e8dec918ef8e0f68b4937c3c50fa57002077a4d
("crypto: GnuPG based MPI lib - additional sources (part 4)"). Nothing
includes it.

The sole named constant it defines is BYTES_PER_MPI_LIMB. That named
constant is already provided by <linux/mpi.h> (which is made available
to the files in lib/mpi via mpi-internal.h). In this header that define
depends on the undefined macro SIZEOF_UNSIGNED_LONG.

So this header is unused, unneeded and broken. It can safely be removed.

Signed-off-by: Paul Bolle <[email protected]>
---
This patch is, once again, tested only with "git grep".

lib/mpi/generic_mpi-asm-defs.h | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
delete mode 100644 lib/mpi/generic_mpi-asm-defs.h

diff --git a/lib/mpi/generic_mpi-asm-defs.h b/lib/mpi/generic_mpi-asm-defs.h
deleted file mode 100644
index 047d1f5..0000000
--- a/lib/mpi/generic_mpi-asm-defs.h
+++ /dev/null
@@ -1,4 +0,0 @@
-/* This file defines some basic constants for the MPI machinery. We
- * need to define the types on a per-CPU basis, so it is done with
- * this file here. */
-#define BYTES_PER_MPI_LIMB (SIZEOF_UNSIGNED_LONG)
--
1.7.7.6


2012-06-11 08:27:35

by Kasatkin, Dmitry

[permalink] [raw]
Subject: Re: [PATCH] Remove lib/mpi/generic_mpi-asm-defs.h

Hello,

Indeed like that...
That patch has been already reverted and unused code removed.
Changes are available in the #next-queue branch of Linux security tree.

Thanks!

- Dmitry

On Fri, Jun 8, 2012 at 6:33 PM, Paul Bolle <[email protected]> wrote:
> This header got added by commit 7e8dec918ef8e0f68b4937c3c50fa57002077a4d
> ("crypto: GnuPG based MPI lib - additional sources (part 4)"). Nothing
> includes it.
>
> The sole named constant it defines is BYTES_PER_MPI_LIMB. That named
> constant is already provided by <linux/mpi.h> (which is made available
> to the files in lib/mpi via mpi-internal.h). In this header that define
> depends on the undefined macro SIZEOF_UNSIGNED_LONG.
>
> So this header is unused, unneeded and broken. It can safely be removed.
>
> Signed-off-by: Paul Bolle <[email protected]>
> ---
> This patch is, once again, tested only with "git grep".
>
>  lib/mpi/generic_mpi-asm-defs.h |    4 ----
>  1 files changed, 0 insertions(+), 4 deletions(-)
>  delete mode 100644 lib/mpi/generic_mpi-asm-defs.h
>
> diff --git a/lib/mpi/generic_mpi-asm-defs.h b/lib/mpi/generic_mpi-asm-defs.h
> deleted file mode 100644
> index 047d1f5..0000000
> --- a/lib/mpi/generic_mpi-asm-defs.h
> +++ /dev/null
> @@ -1,4 +0,0 @@
> -/* This file defines some basic constants for the MPI machinery.  We
> - * need to define the types on a per-CPU basis, so it is done with
> - * this file here.  */
> -#define BYTES_PER_MPI_LIMB  (SIZEOF_UNSIGNED_LONG)
> --
> 1.7.7.6
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

2012-06-11 08:55:20

by Paul Bolle

[permalink] [raw]
Subject: Re: [PATCH] Remove lib/mpi/generic_mpi-asm-defs.h

Dmitry,

On Mon, 2012-06-11 at 11:27 +0300, Kasatkin, Dmitry wrote:
> That patch has been already reverted and unused code removed.
> Changes are available in the #next-queue branch of Linux security tree.

That would be commit 9e235dcaf4f63d88a7e9ce5735ba5c2eb2719603 ("Revert
"crypto: GnuPG based MPI lib - additional sources (part 4)""). I'll
remove this header from the stack of (possibly) unused headers.

Thanks!


Paul Bolle

2012-06-11 09:20:27

by Kasatkin, Dmitry

[permalink] [raw]
Subject: Re: [PATCH] Remove lib/mpi/generic_mpi-asm-defs.h

On Mon, Jun 11, 2012 at 11:55 AM, Paul Bolle <[email protected]> wrote:
> Dmitry,
>
> On Mon, 2012-06-11 at 11:27 +0300, Kasatkin, Dmitry wrote:
>> That patch has been already reverted and unused code removed.
>> Changes are available in the #next-queue branch of Linux security tree.
>
> That would be commit 9e235dcaf4f63d88a7e9ce5735ba5c2eb2719603 ("Revert
> "crypto: GnuPG based MPI lib - additional sources (part 4)""). I'll
> remove this header from the stack of (possibly) unused headers.
>
> Thanks!
>

Yes, This patch and next one...

Thanks.

>
> Paul Bolle
>