Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit df592eb5 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Greg Ungerer
Browse files

m68knommu: Mark functions only called from setup_arch() __init



Some functions that are only called (indirectly) from setup_arch() lack
__init annotations.

Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: default avatarGreg Ungerer <gerg@uclinux.org>
parent d8dfad38
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -118,7 +118,7 @@ void (*mach_power_off)(void);
 *
 * Returns:
 */
void parse_uboot_commandline(char *commandp, int size)
static void __init parse_uboot_commandline(char *commandp, int size)
{
	extern unsigned long _init_sp;
	unsigned long *sp;
+2 −1
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@

/***************************************************************************/

#include <linux/init.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/rtc.h>
@@ -42,7 +43,7 @@ void m68328_reset (void)

/***************************************************************************/

void config_BSP(char *command, int len)
void __init config_BSP(char *command, int len)
{
  printk(KERN_INFO "\n68328 support D. Jeff Dionne <jeff@uclinux.org>\n");
  printk(KERN_INFO "68328 support Kenneth Albanowski <kjahds@kjshds.com>\n");
+2 −1
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@

/***************************************************************************/

#include <linux/init.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/rtc.h>
@@ -52,7 +53,7 @@ _bsc1(unsigned char *, gethwaddr, int, a)
_bsc1(char *, getbenv, char *, a)
#endif

void config_BSP(char *command, int len)
void __init config_BSP(char *command, int len)
{
  unsigned char *p;

+5 −4
Original line number Diff line number Diff line
@@ -14,6 +14,7 @@

/***************************************************************************/

#include <linux/init.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/kd.h>
@@ -59,7 +60,7 @@ static void m68vz328_reset(void)
	);
}

static void init_hardware(char *command, int size)
static void __init init_hardware(char *command, int size)
{
#ifdef CONFIG_DIRECT_IO_ACCESS
	SCR = 0x10;					/* allow user access to internal registers */
@@ -145,7 +146,7 @@ _bsc0(char *, getserialnum)
_bsc1(unsigned char *, gethwaddr, int, a)
_bsc1(char *, getbenv, char *, a)

static void init_hardware(char *command, int size)
static void __init init_hardware(char *command, int size)
{
	char *p;

@@ -167,7 +168,7 @@ static void m68vz328_reset(void)
{
}

static void init_hardware(char *command, int size)
static void __init init_hardware(char *command, int size)
{
}

@@ -175,7 +176,7 @@ static void init_hardware(char *command, int size)
#endif
/***************************************************************************/

void config_BSP(char *command, int size)
void __init config_BSP(char *command, int size)
{
	printk(KERN_INFO "68VZ328 DragonBallVZ support (c) 2001 Lineo, Inc.\n");

+2 −1
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@
 */

#include <linux/errno.h>
#include <linux/init.h>
#include <linux/sched.h>
#include <linux/kernel.h>
#include <linux/param.h>
@@ -77,7 +78,7 @@ void m360_cpm_reset(void);



void m360_cpm_reset()
void __init m360_cpm_reset()
{
/* 	pte_t		   *pte; */

Loading