[dtor-input:next 94/110] drivers/input/serio/gscps2.c:221:50: error: 'struct <anonymous>' has no member named 'ste'; did you mean 'str'?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git next
head:   2c19d0159944f3aef1c0ebbd9d7fc6c2523e4307
commit: 44f920069911437dbce84084de02b5cba4ba94f7 [94/110] Input: gscps2 - use guard notation when acquiring spinlock
config: parisc-defconfig (https://download.01.org/0day-ci/archive/20241019/202410192242.GL0CoAbv-lkp@xxxxxxxxx/config)
compiler: hppa-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241019/202410192242.GL0CoAbv-lkp@xxxxxxxxx/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
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202410192242.GL0CoAbv-lkp@xxxxxxxxx/

All error/warnings (new ones prefixed by >>):

   drivers/input/serio/gscps2.c: In function 'gscps2_reset':
>> drivers/input/serio/gscps2.c:201:23: warning: unused variable 'flags' [-Wunused-variable]
     201 |         unsigned long flags;
         |                       ^~~~~
   drivers/input/serio/gscps2.c: In function 'gscps2_read_data':
>> drivers/input/serio/gscps2.c:221:50: error: 'struct <anonymous>' has no member named 'ste'; did you mean 'str'?
     221 |                 ps2port->buffer[ps2port->append].ste = status;
         |                                                  ^~~
         |                                                  str


vim +221 drivers/input/serio/gscps2.c

   194	
   195	/*
   196	 * gscps2_reset() - resets the PS/2 port
   197	 */
   198	
   199	static void gscps2_reset(struct gscps2port *ps2port)
   200	{
 > 201		unsigned long flags;
   202	
   203		/* reset the interface */
   204		guard(spinlock_irqsave)(&ps2port->lock);
   205		gscps2_flush(ps2port);
   206		writeb(0xff, ps2port->addr + GSC_RESET);
   207		gscps2_flush(ps2port);
   208	}
   209	
   210	static LIST_HEAD(ps2port_list);
   211	
   212	static void gscps2_read_data(struct gscps2port *ps2port)
   213	{
   214		u8 status;
   215	
   216		do {
   217			status = gscps2_readb_status(ps2port->addr);
   218			if (!(status & GSC_STAT_RBNE))
   219				break;
   220	
 > 221			ps2port->buffer[ps2port->append].ste = status;
   222			ps2port->buffer[ps2port->append].data =
   223					gscps2_readb_input(ps2port->addr);
   224		} while (true);
   225	}
   226	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki




[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux