linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dan Carpenter <dan.carpenter@oracle.com>
To: aduggan@synaptics.com
Cc: linux-input@vger.kernel.org
Subject: re: Input: synaptics-rmi4 - add support for Synaptics RMI4 devices
Date: Mon, 14 Mar 2016 23:45:18 +0300	[thread overview]
Message-ID: <20160314204518.GA29433@mwanda> (raw)

Hello Andrew Duggan,

The patch 2b6a321da9a2: "Input: synaptics-rmi4 - add support for
Synaptics RMI4 devices" from Mar 10, 2016, leads to the following
static checker warning:

	drivers/input/rmi4/rmi_driver.c:129 process_one_interrupt()
	warn: this array is probably non-NULL. 'fn->irq_mask'

drivers/input/rmi4/rmi_driver.c
   120  static void process_one_interrupt(struct rmi_driver_data *data,
   121                                    struct rmi_function *fn)
   122  {
   123          struct rmi_function_handler *fh;
   124  
   125          if (!fn || !fn->dev.driver)
   126                  return;
   127  
   128          fh = to_rmi_function_handler(fn->dev.driver);
   129          if (fn->irq_mask && fh->attention) {
                    ^^^^^^^^^^^^
Always true.

   130                  bitmap_and(data->fn_irq_bits, data->irq_status, fn->irq_mask,
   131                                  data->irq_count);
   132                  if (!bitmap_empty(data->fn_irq_bits, data->irq_count))
   133                          fh->attention(fn, data->fn_irq_bits);
   134          }
   135  }

See also:
drivers/input/rmi4/rmi_driver.c:175 rmi_process_interrupt_requests() warn: this array is probably non-NULL. 'entry->irq_mask'


regards,
dan carpenter

                 reply	other threads:[~2016-03-14 20:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160314204518.GA29433@mwanda \
    --to=dan.carpenter@oracle.com \
    --cc=aduggan@synaptics.com \
    --cc=linux-input@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).