binfmt_flat: move the MAX_SHARED_LIBS definition to binfmt_flat.c
authorChristoph Hellwig <hch@lst.de>
Thu, 13 Jun 2019 07:09:01 +0000 (09:09 +0200)
committerGreg Ungerer <gerg@kernel.org>
Sun, 23 Jun 2019 23:16:47 +0000 (09:16 +1000)
MAX_SHARED_LIBS is an implementation detail of the kernel loader,
and should be kept away from the file format definition.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
fs/binfmt_flat.c
include/linux/flat.h

index 0ca65d51bb017bbf544b0fc94d9b86674e4b0c2d..ccd9843e979eb81485e414663d2aebefcab1203b 100644 (file)
 #define RELOC_FAILED 0xff00ff01                /* Relocation incorrect somewhere */
 #define UNLOADED_LIB 0x7ff000ff                /* Placeholder for unused library */
 
+#ifdef CONFIG_BINFMT_SHARED_FLAT
+#define        MAX_SHARED_LIBS                 (4)
+#else
+#define        MAX_SHARED_LIBS                 (1)
+#endif
+
 struct lib_info {
        struct {
                unsigned long start_code;               /* Start of text segment */
index d586bb6e64a70f7b94587df4f35fcc7aad34a433..83977c0ce3def09523708c1afa2715eb47890724 100644 (file)
 
 #define        FLAT_VERSION                    0x00000004L
 
-#ifdef CONFIG_BINFMT_SHARED_FLAT
-#define        MAX_SHARED_LIBS                 (4)
-#else
-#define        MAX_SHARED_LIBS                 (1)
-#endif
-
 /*
  * To make everything easier to port and manage cross platform
  * development,  all fields are in network byte order.