Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'm68knommu-for-v5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu

Pull m68knommu updates from Greg Ungerer:
"A few fixes, nothing too exciting.

Fix warnings when building for dragen2 targets (sparse and
"screen_bits") and ucsimm targets. Fix compilation problems when test
compiling for ColdFire targets with the mcf_edma driver enabled.
Remove an incorrect clock definition for the ColdFire m5441x.

Summary:

- fix 'screen_bits' defined but not used

- fix ucsimm sparse warnings

- fix dragen2 warnings

- fix test builds with the mcf_edma driver enabled"

* tag 'm68knommu-for-v5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu:
m68k: coldfire/device.c: only build for MCF_EDMA when h/w macros are defined
m68k: m5441x: remove erroneous clock disable
m68knommu: fix ucsimm sparse warnings
m68knommu: fix 'screen_bits' defined but not used
m68knommu: fix warning: no previous prototype for 'init_dragen2'

+10 -9
+1
arch/m68k/68000/dragen2.c
··· 11 11 #include <linux/init.h> 12 12 #include <asm/machdep.h> 13 13 #include <asm/MC68VZ328.h> 14 + #include "m68328.h" 14 15 #include "screen.h" 15 16 16 17 /***************************************************************************/
+2
arch/m68k/68000/screen.h
··· 1 1 /* Created with The GIMP */ 2 + #ifdef CONFIG_INIT_LCD 2 3 #define screen_width 320 3 4 #define screen_height 240 4 5 static unsigned char screen_bits[] = { ··· 803 802 0x93, 0x10, 0xe2, 0x11, 0x00, 0x94, 0x22, 0x52, 0x69, 0x53, 0x52, 0x45, 804 803 0x49, 0x22, 0xa4, 0x4a, 0x55, 0x29, 0x2a, 0xa4, 0x52, 0x42, 0xaa, 0xa5, 805 804 0x52, 0xa8, 0xaa, 0x55, 0x4a, 0xab, 0xa9, 0x4a, 0x54, 0x49, 0x32, 0x24 }; 805 + #endif /* CONFIG_INIT_LCD */
+4 -5
arch/m68k/68000/ucsimm.c
··· 16 16 17 17 #include "m68328.h" 18 18 19 - unsigned char *cs8900a_hwaddr; 20 19 static int errno; 21 20 22 - _bsc0(char *, getserialnum) 23 - _bsc1(unsigned char *, gethwaddr, int, a) 24 - _bsc1(char *, getbenv, char *, a) 21 + static _bsc0(char *, getserialnum) 22 + static _bsc1(unsigned char *, gethwaddr, int, a) 23 + static _bsc1(char *, getbenv, char *, a) 25 24 26 25 void __init init_ucsimm(char *command, int size) 27 26 { 28 27 char *p; 29 28 30 29 pr_info("uCsimm/uCdimm serial string [%s]\n", getserialnum()); 31 - p = cs8900a_hwaddr = gethwaddr(0); 30 + p = gethwaddr(0); 32 31 pr_info("uCsimm/uCdimm hwaddr %pM\n", p); 33 32 p = getbenv("APPEND"); 34 33 if (p)
+3 -3
arch/m68k/coldfire/device.c
··· 480 480 #endif /* MCFI2C_BASE5 */ 481 481 #endif /* IS_ENABLED(CONFIG_I2C_IMX) */ 482 482 483 - #if IS_ENABLED(CONFIG_MCF_EDMA) 483 + #ifdef MCFEDMA_BASE 484 484 485 485 static const struct dma_slave_map mcf_edma_map[] = { 486 486 { "dreq0", "rx-tx", MCF_EDMA_FILTER_PARAM(0) }, ··· 552 552 .platform_data = &mcf_edma_data, 553 553 } 554 554 }; 555 - #endif /* IS_ENABLED(CONFIG_MCF_EDMA) */ 555 + #endif /* MCFEDMA_BASE */ 556 556 557 557 #ifdef MCFSDHC_BASE 558 558 static struct mcf_esdhc_platform_data mcf_esdhc_data = { ··· 651 651 &mcf_i2c5, 652 652 #endif 653 653 #endif 654 - #if IS_ENABLED(CONFIG_MCF_EDMA) 654 + #ifdef MCFEDMA_BASE 655 655 &mcf_edma, 656 656 #endif 657 657 #ifdef MCFSDHC_BASE
-1
arch/m68k/coldfire/m5441x.c
··· 181 181 &__clk_0_47, /* ssi.0 */ 182 182 &__clk_0_49, /* rng */ 183 183 &__clk_0_50, /* ssi.1 */ 184 - &__clk_0_51, /* eSDHC */ 185 184 &__clk_0_53, /* enet-fec */ 186 185 &__clk_0_54, /* enet-fec */ 187 186 &__clk_0_55, /* switch.0 */