diff options
author | Quan Nguyen <quan@os.amperecomputing.com> | 2022-10-24 14:59:56 +0700 |
---|---|---|
committer | Corey Minyard <cminyard@mvista.com> | 2022-10-24 09:19:12 -0500 |
commit | 6dbd4341b9da2063d86cdf4ed8d051e2617506b0 (patch) | |
tree | 26343dec990d935c61c7ff7ef3900c2ff4a568e0 /drivers/char/ipmi | |
parent | c608966f3f9c2dca596967501d00753282b395fc (diff) | |
download | linux-6dbd4341b9da2063d86cdf4ed8d051e2617506b0.tar.gz linux-6dbd4341b9da2063d86cdf4ed8d051e2617506b0.tar.bz2 linux-6dbd4341b9da2063d86cdf4ed8d051e2617506b0.zip |
ipmi: ssif_bmc: Use EPOLLIN instead of POLLIN
This fixes the following sparse warning:
sparse warnings: (new ones prefixed by >>)
>> drivers/char/ipmi/ssif_bmc.c:254:22: sparse: sparse: invalid assignment: |=
>> drivers/char/ipmi/ssif_bmc.c:254:22: sparse: left side has type restricted __poll_t
>> drivers/char/ipmi/ssif_bmc.c:254:22: sparse: right side has type int
Fixes: dd2bc5cc9e25 ("ipmi: ssif_bmc: Add SSIF BMC driver")
Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/all/202210181103.ontD9tRT-lkp@intel.com/
Signed-off-by: Quan Nguyen <quan@os.amperecomputing.com>
Message-Id: <20221024075956.3312552-1-quan@os.amperecomputing.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'drivers/char/ipmi')
-rw-r--r-- | drivers/char/ipmi/ssif_bmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/ipmi/ssif_bmc.c b/drivers/char/ipmi/ssif_bmc.c index a7bb4b99000e..2d8069386398 100644 --- a/drivers/char/ipmi/ssif_bmc.c +++ b/drivers/char/ipmi/ssif_bmc.c @@ -251,7 +251,7 @@ static __poll_t ssif_bmc_poll(struct file *file, poll_table *wait) spin_lock_irq(&ssif_bmc->lock); /* The request is available, userspace application can get the request */ if (ssif_bmc->request_available) - mask |= POLLIN; + mask |= EPOLLIN; spin_unlock_irq(&ssif_bmc->lock); |