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

Commit c5a69d57 authored by Tobias Klauser's avatar Tobias Klauser Committed by Adrian Bunk
Browse files

Storage class should be before const qualifier



The C99 specification states in section 6.11.5:

The placement of a storage-class specifier other than at the
beginning of the declaration specifiers in a declaration is an
obsolescent feature.

Signed-off-by: default avatarTobias Klauser <tklauser@distanz.ch>
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
parent 0bbfb7c2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -13,8 +13,8 @@
#include <asm/cacheflush.h>
#include <asm/page.h>

const extern unsigned char relocate_new_kernel[];
const extern unsigned int relocate_new_kernel_size;
extern const unsigned char relocate_new_kernel[];
extern const unsigned int relocate_new_kernel_size;

extern unsigned long kexec_start_address;
extern unsigned long kexec_indirection_page;
+1 −1
Original line number Diff line number Diff line
@@ -182,7 +182,7 @@ void rtas_progress(char *s, unsigned short hex)
	char *os;
	static int display_character, set_indicator;
	static int display_width, display_lines, form_feed;
	const static int *row_width;
	static const int *row_width;
	static DEFINE_SPINLOCK(progress_lock);
	static int current_line;
	static int pending_newline = 0;  /* did last write end with unprinted newline? */
+2 −2
Original line number Diff line number Diff line
@@ -18,8 +18,8 @@
#include <asm/freq.h>
#include <asm/io.h>

const static int pll1rate[]={1,2};
const static int pfc_divisors[]={1,2,0,4};
static const int pll1rate[] = {1,2};
static const int pfc_divisors[] = {1,2,0,4};

#if (CONFIG_SH_CLK_MD == 1) || (CONFIG_SH_CLK_MD == 2)
#define PLL2 (4)
+2 −2
Original line number Diff line number Diff line
@@ -18,8 +18,8 @@
#include <asm/freq.h>
#include <asm/io.h>

const static int pll1rate[]={1,2,3,4,6,8};
const static int pfc_divisors[]={1,2,3,4,6,8,12};
static const int pll1rate[]={1,2,3,4,6,8};
static const int pfc_divisors[]={1,2,3,4,6,8,12};
#define ifc_divisors pfc_divisors

#if (CONFIG_SH_CLK_MD == 2)
+1 −1
Original line number Diff line number Diff line
@@ -180,7 +180,7 @@ static int alloc_dma_trm_ctx(struct ti_ohci *ohci, struct dma_trm_ctx *d,
static void ohci1394_pci_remove(struct pci_dev *pdev);

#ifndef __LITTLE_ENDIAN
const static size_t hdr_sizes[] = {
static const size_t hdr_sizes[] = {
	3,	/* TCODE_WRITEQ */
	4,	/* TCODE_WRITEB */
	3,	/* TCODE_WRITE_RESPONSE */
Loading