* drivers/s390/char/sclp_config.c:96:41: sparse: sparse: Initializer entry defined twice
@ 2026-12-03 16:29 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-12-03 16:29 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: Heiko Carstens <hca@linux.ibm.com>
CC: Alexander Gordeev <agordeev@linux.ibm.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: d06ce6f1eb5eeffd4ebcfde345dc34a98131d106
commit: 8587af9cff43aa114ee69b401b8ac3e2c5aea4d3 s390/sclp: Remove SCLP_OFB Kconfig option
date: 7 months ago
:::::: branch date: 15 hours ago
:::::: commit date: 7 months ago
config: s390-randconfig-r2304-20261203 (https://download.01.org/0day-ci/archive/20261203/20261203172654.vrOGMPti-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project c81a35549c5c976f799dc394e6eaf41da1ff2f64)
sparse: v0.6.5-rc1-94-g0d159c10
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261203/20261203172654.vrOGMPti-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: 8587af9cff43 ("s390/sclp: Remove SCLP_OFB Kconfig option")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/20261203172654.vrOGMPti-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/s390/char/sclp_config.c:96:41: sparse: sparse: Initializer entry defined twice
drivers/s390/char/sclp_config.c:96:41: sparse: also defined here
vim +96 drivers/s390/char/sclp_config.c
2fc2d1e9ffcde78 Heiko Carstens 2007-04-27 87
c6f70d3b8a32fde Jochen Schweflinghaus 2015-11-26 88 static int sclp_ofb_send_req(char *ev_data, size_t len)
c6f70d3b8a32fde Jochen Schweflinghaus 2015-11-26 89 {
c6f70d3b8a32fde Jochen Schweflinghaus 2015-11-26 90 static DEFINE_MUTEX(send_mutex);
c6f70d3b8a32fde Jochen Schweflinghaus 2015-11-26 91 struct sclp_ofb_sccb *sccb;
c6f70d3b8a32fde Jochen Schweflinghaus 2015-11-26 92 int rc, response;
c6f70d3b8a32fde Jochen Schweflinghaus 2015-11-26 93
c6f70d3b8a32fde Jochen Schweflinghaus 2015-11-26 94 if (len > OFB_DATA_MAX)
c6f70d3b8a32fde Jochen Schweflinghaus 2015-11-26 95 return -EINVAL;
c6f70d3b8a32fde Jochen Schweflinghaus 2015-11-26 @96 sccb = (struct sclp_ofb_sccb *) get_zeroed_page(GFP_KERNEL | GFP_DMA);
c6f70d3b8a32fde Jochen Schweflinghaus 2015-11-26 97 if (!sccb)
c6f70d3b8a32fde Jochen Schweflinghaus 2015-11-26 98 return -ENOMEM;
c6f70d3b8a32fde Jochen Schweflinghaus 2015-11-26 99 /* Setup SCCB for Control-Program Identification */
c6f70d3b8a32fde Jochen Schweflinghaus 2015-11-26 100 sccb->header.length = sizeof(struct sclp_ofb_sccb);
c6f70d3b8a32fde Jochen Schweflinghaus 2015-11-26 101 sccb->ofb_evbuf.header.length = sizeof(struct sclp_ofb_evbuf);
c6f70d3b8a32fde Jochen Schweflinghaus 2015-11-26 102 sccb->ofb_evbuf.header.type = EVTYP_CONFMGMDATA;
c6f70d3b8a32fde Jochen Schweflinghaus 2015-11-26 103 sccb->ofb_evbuf.cm_data.ev_qualifier = EV_QUAL_OPEN4BUSINESS;
c6f70d3b8a32fde Jochen Schweflinghaus 2015-11-26 104 memcpy(sccb->ofb_evbuf.ev_data, ev_data, len);
c6f70d3b8a32fde Jochen Schweflinghaus 2015-11-26 105
c6f70d3b8a32fde Jochen Schweflinghaus 2015-11-26 106 if (!(sclp_conf_register.sclp_receive_mask & EVTYP_CONFMGMDATA_MASK))
c6f70d3b8a32fde Jochen Schweflinghaus 2015-11-26 107 pr_warn("SCLP receiver did not register to receive "
c6f70d3b8a32fde Jochen Schweflinghaus 2015-11-26 108 "Configuration Management Data Events.\n");
c6f70d3b8a32fde Jochen Schweflinghaus 2015-11-26 109
c6f70d3b8a32fde Jochen Schweflinghaus 2015-11-26 110 mutex_lock(&send_mutex);
c6f70d3b8a32fde Jochen Schweflinghaus 2015-11-26 111 rc = sclp_sync_request(SCLP_CMDW_WRITE_EVENT_DATA, sccb);
c6f70d3b8a32fde Jochen Schweflinghaus 2015-11-26 112 mutex_unlock(&send_mutex);
c6f70d3b8a32fde Jochen Schweflinghaus 2015-11-26 113 if (rc)
c6f70d3b8a32fde Jochen Schweflinghaus 2015-11-26 114 goto out;
c6f70d3b8a32fde Jochen Schweflinghaus 2015-11-26 115 response = sccb->header.response_code;
c6f70d3b8a32fde Jochen Schweflinghaus 2015-11-26 116 if (response != 0x0020) {
c6f70d3b8a32fde Jochen Schweflinghaus 2015-11-26 117 pr_err("Open for Business request failed with response code "
c6f70d3b8a32fde Jochen Schweflinghaus 2015-11-26 118 "0x%04x\n", response);
c6f70d3b8a32fde Jochen Schweflinghaus 2015-11-26 119 rc = -EIO;
c6f70d3b8a32fde Jochen Schweflinghaus 2015-11-26 120 }
c6f70d3b8a32fde Jochen Schweflinghaus 2015-11-26 121 out:
c6f70d3b8a32fde Jochen Schweflinghaus 2015-11-26 122 free_page((unsigned long)sccb);
c6f70d3b8a32fde Jochen Schweflinghaus 2015-11-26 123 return rc;
c6f70d3b8a32fde Jochen Schweflinghaus 2015-11-26 124 }
c6f70d3b8a32fde Jochen Schweflinghaus 2015-11-26 125
:::::: The code at line 96 was first introduced by commit
:::::: c6f70d3b8a32fdec60d3f78cb59423f056f16688 s390/sclp: add open for business support
:::::: TO: Jochen Schweflinghaus <schwefel@de.ibm.com>
:::::: CC: Martin Schwidefsky <schwidefsky@de.ibm.com>
--
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 16:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 16:29 drivers/s390/char/sclp_config.c:96:41: 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.