* arch/m68k/atari/config.c:802:10: sparse: sparse: Initializer entry defined twice
@ 2026-12-03 22:51 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-12-03 22:51 UTC (permalink / raw)
To: oe-kbuild; +Cc: lkp
::::::
:::::: Manual check reason: "sparse: Initializer entry defined twice"
::::::
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Miro Kropacek <miro.kropacek@gmail.com>
CC: Geert Uytterhoeven <geert@linux-m68k.org>
CC: Michael Schmitz <schmitzmic@gmail.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 007722b8211f7b34fdf21b1e6a9c32497633ea29
commit: dd22510518598ad0b0341168075b77b647954ff0 m68k: Add support for SVEthLANa
date: 10 weeks ago
:::::: branch date: 6 hours ago
:::::: commit date: 10 weeks ago
config: m68k-randconfig-r2304-20261203 (https://download.01.org/0day-ci/archive/20261203/20261203234111.UzSPCQL9-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 8.5.0
sparse: v0.6.5-rc1-94-g0d159c10
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261203/20261203234111.UzSPCQL9-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Fixes: dd2251051859 ("m68k: Add support for SVEthLANa")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/20261203234111.UzSPCQL9-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
arch/m68k/atari/config.c:959:43: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile *regp @@ got void [noderef] __iomem *[assigned] sv_version @@
arch/m68k/atari/config.c:959:43: sparse: expected void volatile *regp
arch/m68k/atari/config.c:959:43: sparse: got void [noderef] __iomem *[assigned] sv_version
>> arch/m68k/atari/config.c:802:10: sparse: sparse: Initializer entry defined twice
arch/m68k/atari/config.c:800:10: sparse: also defined here
vim +802 arch/m68k/atari/config.c
dd22510518598a Miro Kropacek 2026-08-20 796
dd22510518598a Miro Kropacek 2026-08-20 797 static struct platform_device svethlana_device = {
dd22510518598a Miro Kropacek 2026-08-20 798 .name = "ethoc",
dd22510518598a Miro Kropacek 2026-08-20 799 .id = -1,
dd22510518598a Miro Kropacek 2026-08-20 800 .num_resources = ARRAY_SIZE(svethlana_resources),
dd22510518598a Miro Kropacek 2026-08-20 801 .resource = svethlana_resources,
dd22510518598a Miro Kropacek 2026-08-20 @802 .dev = {
dd22510518598a Miro Kropacek 2026-08-20 803 .platform_data = &svethlana_platform_data,
dd22510518598a Miro Kropacek 2026-08-20 804 },
dd22510518598a Miro Kropacek 2026-08-20 805 };
dd22510518598a Miro Kropacek 2026-08-20 806 #endif /* CONFIG_ATARI_SVETHLANA */
dd22510518598a Miro Kropacek 2026-08-20 807
1d87a8f2911fe6 Michael Schmitz 2013-04-06 808 #ifdef CONFIG_ATARI_ETHERNEC
1d87a8f2911fe6 Michael Schmitz 2013-04-06 809 /*
1d87a8f2911fe6 Michael Schmitz 2013-04-06 810 * EtherNEC: RTL8019 (NE2000 compatible) Ethernet chipset,
1d87a8f2911fe6 Michael Schmitz 2013-04-06 811 * handled by ne.c driver
1d87a8f2911fe6 Michael Schmitz 2013-04-06 812 */
1d87a8f2911fe6 Michael Schmitz 2013-04-06 813
1d87a8f2911fe6 Michael Schmitz 2013-04-06 814 #define ATARI_ETHERNEC_PHYS_ADDR 0xfffa0000
1d87a8f2911fe6 Michael Schmitz 2013-04-06 815 #define ATARI_ETHERNEC_BASE 0x300
1d87a8f2911fe6 Michael Schmitz 2013-04-06 816 #define ATARI_ETHERNEC_IRQ IRQ_MFP_TIMER1
1d87a8f2911fe6 Michael Schmitz 2013-04-06 817
1d87a8f2911fe6 Michael Schmitz 2013-04-06 818 static struct resource rtl8019_resources[] = {
1d87a8f2911fe6 Michael Schmitz 2013-04-06 819 [0] = {
1d87a8f2911fe6 Michael Schmitz 2013-04-06 820 .name = "rtl8019-regs",
1d87a8f2911fe6 Michael Schmitz 2013-04-06 821 .start = ATARI_ETHERNEC_BASE,
1d87a8f2911fe6 Michael Schmitz 2013-04-06 822 .end = ATARI_ETHERNEC_BASE + 0x20 - 1,
1d87a8f2911fe6 Michael Schmitz 2013-04-06 823 .flags = IORESOURCE_IO,
1d87a8f2911fe6 Michael Schmitz 2013-04-06 824 },
1d87a8f2911fe6 Michael Schmitz 2013-04-06 825 [1] = {
1d87a8f2911fe6 Michael Schmitz 2013-04-06 826 .name = "rtl8019-irq",
1d87a8f2911fe6 Michael Schmitz 2013-04-06 827 .start = ATARI_ETHERNEC_IRQ,
1d87a8f2911fe6 Michael Schmitz 2013-04-06 828 .end = ATARI_ETHERNEC_IRQ,
1d87a8f2911fe6 Michael Schmitz 2013-04-06 829 .flags = IORESOURCE_IRQ,
1d87a8f2911fe6 Michael Schmitz 2013-04-06 830 },
1d87a8f2911fe6 Michael Schmitz 2013-04-06 831 };
1d87a8f2911fe6 Michael Schmitz 2013-04-06 832
1d87a8f2911fe6 Michael Schmitz 2013-04-06 833 static struct platform_device rtl8019_device = {
1d87a8f2911fe6 Michael Schmitz 2013-04-06 834 .name = "ne",
1d87a8f2911fe6 Michael Schmitz 2013-04-06 835 .id = -1,
1d87a8f2911fe6 Michael Schmitz 2013-04-06 836 .num_resources = ARRAY_SIZE(rtl8019_resources),
1d87a8f2911fe6 Michael Schmitz 2013-04-06 837 .resource = rtl8019_resources,
1d87a8f2911fe6 Michael Schmitz 2013-04-06 838 };
1d87a8f2911fe6 Michael Schmitz 2013-04-06 839
01a18d168776f2 Michael Schmitz 2013-04-06 840 /*
01a18d168776f2 Michael Schmitz 2013-04-06 841 * NetUSBee: ISP1160 USB host adapter via ROM-port adapter
01a18d168776f2 Michael Schmitz 2013-04-06 842 */
01a18d168776f2 Michael Schmitz 2013-04-06 843
01a18d168776f2 Michael Schmitz 2013-04-06 844 #define ATARI_NETUSBEE_PHYS_ADDR 0xfffa8000
01a18d168776f2 Michael Schmitz 2013-04-06 845 #define ATARI_NETUSBEE_BASE 0x340
01a18d168776f2 Michael Schmitz 2013-04-06 846 #define ATARI_NETUSBEE_IRQ IRQ_MFP_TIMER2
01a18d168776f2 Michael Schmitz 2013-04-06 847
01a18d168776f2 Michael Schmitz 2013-04-06 848 static struct resource netusbee_resources[] = {
01a18d168776f2 Michael Schmitz 2013-04-06 849 [0] = {
01a18d168776f2 Michael Schmitz 2013-04-06 850 .name = "isp1160-data",
01a18d168776f2 Michael Schmitz 2013-04-06 851 .start = ATARI_NETUSBEE_BASE,
01a18d168776f2 Michael Schmitz 2013-04-06 852 .end = ATARI_NETUSBEE_BASE + 0x1,
01a18d168776f2 Michael Schmitz 2013-04-06 853 .flags = IORESOURCE_MEM,
01a18d168776f2 Michael Schmitz 2013-04-06 854 },
01a18d168776f2 Michael Schmitz 2013-04-06 855 [1] = {
01a18d168776f2 Michael Schmitz 2013-04-06 856 .name = "isp1160-regs",
01a18d168776f2 Michael Schmitz 2013-04-06 857 .start = ATARI_NETUSBEE_BASE + 0x20,
01a18d168776f2 Michael Schmitz 2013-04-06 858 .end = ATARI_NETUSBEE_BASE + 0x21,
01a18d168776f2 Michael Schmitz 2013-04-06 859 .flags = IORESOURCE_MEM,
01a18d168776f2 Michael Schmitz 2013-04-06 860 },
01a18d168776f2 Michael Schmitz 2013-04-06 861 [2] = {
01a18d168776f2 Michael Schmitz 2013-04-06 862 .name = "isp1160-irq",
01a18d168776f2 Michael Schmitz 2013-04-06 863 .start = ATARI_NETUSBEE_IRQ,
01a18d168776f2 Michael Schmitz 2013-04-06 864 .end = ATARI_NETUSBEE_IRQ,
01a18d168776f2 Michael Schmitz 2013-04-06 865 .flags = IORESOURCE_IRQ,
01a18d168776f2 Michael Schmitz 2013-04-06 866 },
01a18d168776f2 Michael Schmitz 2013-04-06 867 };
01a18d168776f2 Michael Schmitz 2013-04-06 868
01a18d168776f2 Michael Schmitz 2013-04-06 869 /* (DataBusWidth16|AnalogOCEnable|DREQOutputPolarity|DownstreamPort15KRSel ) */
01a18d168776f2 Michael Schmitz 2013-04-06 870 static struct isp116x_platform_data netusbee_platform_data = {
01a18d168776f2 Michael Schmitz 2013-04-06 871 /* Enable internal resistors on downstream ports */
01a18d168776f2 Michael Schmitz 2013-04-06 872 .sel15Kres = 1,
01a18d168776f2 Michael Schmitz 2013-04-06 873 /* On-chip overcurrent protection */
01a18d168776f2 Michael Schmitz 2013-04-06 874 .oc_enable = 1,
01a18d168776f2 Michael Schmitz 2013-04-06 875 /* INT output polarity */
01a18d168776f2 Michael Schmitz 2013-04-06 876 .int_act_high = 1,
01a18d168776f2 Michael Schmitz 2013-04-06 877 /* INT edge or level triggered */
01a18d168776f2 Michael Schmitz 2013-04-06 878 .int_edge_triggered = 0,
01a18d168776f2 Michael Schmitz 2013-04-06 879
01a18d168776f2 Michael Schmitz 2013-04-06 880 /* WAKEUP pin connected - NOT SUPPORTED */
01a18d168776f2 Michael Schmitz 2013-04-06 881 /* .remote_wakeup_connected = 0, */
01a18d168776f2 Michael Schmitz 2013-04-06 882 /* Wakeup by devices on usb bus enabled */
01a18d168776f2 Michael Schmitz 2013-04-06 883 .remote_wakeup_enable = 0,
01a18d168776f2 Michael Schmitz 2013-04-06 884 .delay = isp1160_delay,
01a18d168776f2 Michael Schmitz 2013-04-06 885 };
01a18d168776f2 Michael Schmitz 2013-04-06 886
01a18d168776f2 Michael Schmitz 2013-04-06 887 static struct platform_device netusbee_device = {
01a18d168776f2 Michael Schmitz 2013-04-06 888 .name = "isp116x-hcd",
01a18d168776f2 Michael Schmitz 2013-04-06 889 .id = 1,
01a18d168776f2 Michael Schmitz 2013-04-06 890 .num_resources = ARRAY_SIZE(netusbee_resources),
01a18d168776f2 Michael Schmitz 2013-04-06 891 .resource = netusbee_resources,
01a18d168776f2 Michael Schmitz 2013-04-06 892 .dev = {
01a18d168776f2 Michael Schmitz 2013-04-06 893 .platform_data = &netusbee_platform_data,
01a18d168776f2 Michael Schmitz 2013-04-06 894 },
01a18d168776f2 Michael Schmitz 2013-04-06 895 };
01a18d168776f2 Michael Schmitz 2013-04-06 896
01a18d168776f2 Michael Schmitz 2013-04-06 897 static struct platform_device *atari_netusbee_devices[] __initdata = {
01a18d168776f2 Michael Schmitz 2013-04-06 898 &rtl8019_device,
01a18d168776f2 Michael Schmitz 2013-04-06 899 &netusbee_device
1d87a8f2911fe6 Michael Schmitz 2013-04-06 900 };
1d87a8f2911fe6 Michael Schmitz 2013-04-06 901 #endif /* CONFIG_ATARI_ETHERNEC */
1d87a8f2911fe6 Michael Schmitz 2013-04-06 902
2d522618c8d13a Finn Thain 2015-12-18 903 #if IS_ENABLED(CONFIG_ATARI_SCSI)
3ff228af84b577 Finn Thain 2014-11-12 904 static const struct resource atari_scsi_st_rsrc[] __initconst = {
3ff228af84b577 Finn Thain 2014-11-12 905 {
3ff228af84b577 Finn Thain 2014-11-12 906 .flags = IORESOURCE_IRQ,
3ff228af84b577 Finn Thain 2014-11-12 907 .start = IRQ_MFP_FSCSI,
3ff228af84b577 Finn Thain 2014-11-12 908 .end = IRQ_MFP_FSCSI,
3ff228af84b577 Finn Thain 2014-11-12 909 },
3ff228af84b577 Finn Thain 2014-11-12 910 };
3ff228af84b577 Finn Thain 2014-11-12 911
3ff228af84b577 Finn Thain 2014-11-12 912 static const struct resource atari_scsi_tt_rsrc[] __initconst = {
3ff228af84b577 Finn Thain 2014-11-12 913 {
3ff228af84b577 Finn Thain 2014-11-12 914 .flags = IORESOURCE_IRQ,
3ff228af84b577 Finn Thain 2014-11-12 915 .start = IRQ_TT_MFP_SCSI,
3ff228af84b577 Finn Thain 2014-11-12 916 .end = IRQ_TT_MFP_SCSI,
3ff228af84b577 Finn Thain 2014-11-12 917 },
3ff228af84b577 Finn Thain 2014-11-12 918 };
3ff228af84b577 Finn Thain 2014-11-12 919 #endif
3ff228af84b577 Finn Thain 2014-11-12 920
5ed0794cde5936 Michael Schmitz 2019-11-06 921 /*
5ed0794cde5936 Michael Schmitz 2019-11-06 922 * Falcon IDE interface
5ed0794cde5936 Michael Schmitz 2019-11-06 923 */
5ed0794cde5936 Michael Schmitz 2019-11-06 924
5ed0794cde5936 Michael Schmitz 2019-11-06 925 #define FALCON_IDE_BASE 0xfff00000
5ed0794cde5936 Michael Schmitz 2019-11-06 926
5ed0794cde5936 Michael Schmitz 2019-11-06 927 static const struct resource atari_falconide_rsrc[] __initconst = {
44b1fbc0f5f30e Finn Thain 2021-06-10 928 DEFINE_RES_MEM(FALCON_IDE_BASE, 0x38),
44b1fbc0f5f30e Finn Thain 2021-06-10 929 DEFINE_RES_MEM(FALCON_IDE_BASE + 0x38, 2),
5ed0794cde5936 Michael Schmitz 2019-11-06 930 };
5ed0794cde5936 Michael Schmitz 2019-11-06 931
7849b9122e97e3 Geert Uytterhoeven 2023-09-13 932 static int __init atari_platform_init(void)
736b24db32a806 Michael Schmitz 2013-04-06 933 {
5ed0794cde5936 Michael Schmitz 2019-11-06 934 struct platform_device *pdev;
736b24db32a806 Michael Schmitz 2013-04-06 935 int rv = 0;
736b24db32a806 Michael Schmitz 2013-04-06 936
736b24db32a806 Michael Schmitz 2013-04-06 937 if (!MACH_IS_ATARI)
736b24db32a806 Michael Schmitz 2013-04-06 938 return -ENODEV;
736b24db32a806 Michael Schmitz 2013-04-06 939
736b24db32a806 Michael Schmitz 2013-04-06 940 #ifdef CONFIG_ATARI_ETHERNAT
736b24db32a806 Michael Schmitz 2013-04-06 941 {
736b24db32a806 Michael Schmitz 2013-04-06 942 unsigned char *enatc_virt;
736b24db32a806 Michael Schmitz 2013-04-06 943 enatc_virt = (unsigned char *)ioremap((ATARI_ETHERNAT_PHYS_ADDR+0x23), 0xf);
736b24db32a806 Michael Schmitz 2013-04-06 944 if (hwreg_present(enatc_virt)) {
736b24db32a806 Michael Schmitz 2013-04-06 945 rv = platform_add_devices(atari_ethernat_devices,
736b24db32a806 Michael Schmitz 2013-04-06 946 ARRAY_SIZE(atari_ethernat_devices));
736b24db32a806 Michael Schmitz 2013-04-06 947 }
736b24db32a806 Michael Schmitz 2013-04-06 948 iounmap(enatc_virt);
736b24db32a806 Michael Schmitz 2013-04-06 949 }
736b24db32a806 Michael Schmitz 2013-04-06 950 #endif
736b24db32a806 Michael Schmitz 2013-04-06 951
dd22510518598a Miro Kropacek 2026-08-20 952 #ifdef CONFIG_ATARI_SVETHLANA
dd22510518598a Miro Kropacek 2026-08-20 953 {
dd22510518598a Miro Kropacek 2026-08-20 954 int error;
dd22510518598a Miro Kropacek 2026-08-20 955 void __iomem *sv_version;
dd22510518598a Miro Kropacek 2026-08-20 956
dd22510518598a Miro Kropacek 2026-08-20 957 sv_version = ioremap(ATARI_SV_VERSION_PHYS_ADDR, 4);
dd22510518598a Miro Kropacek 2026-08-20 958 if (sv_version) {
dd22510518598a Miro Kropacek 2026-08-20 @959 if (hwreg_present(sv_version) &&
dd22510518598a Miro Kropacek 2026-08-20 960 (__raw_readl(sv_version) & 0x3ff) >= 10) {
dd22510518598a Miro Kropacek 2026-08-20 961 error = platform_device_register(&svethlana_device);
dd22510518598a Miro Kropacek 2026-08-20 962 if (error && !rv)
dd22510518598a Miro Kropacek 2026-08-20 963 rv = error;
dd22510518598a Miro Kropacek 2026-08-20 964 }
dd22510518598a Miro Kropacek 2026-08-20 965 iounmap(sv_version);
dd22510518598a Miro Kropacek 2026-08-20 966 }
dd22510518598a Miro Kropacek 2026-08-20 967 }
dd22510518598a Miro Kropacek 2026-08-20 968 #endif
dd22510518598a Miro Kropacek 2026-08-20 969
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-12-03 22:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 22:51 arch/m68k/atari/config.c:802:10: sparse: sparse: Initializer entry defined twice kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.