Thread (4 messages) flat view 4 messages, 2 authors, 2021-02-09

Re: [PATCH net-next 1/2] net: dsa: xrs700x: fix unused warning for of_device_id

From: Florian Fainelli <f.fainelli@gmail.com>
Date: 2021-02-09 23:01:52

On 2/9/21 1:12 PM, George McCollister wrote:
Fix unused variable warning that occurs when CONFIG_OF isn't defined by
adding __maybe_unused.
quoted
quoted
drivers/net/dsa/xrs700x/xrs700x_i2c.c:127:34: warning: unused
variable 'xrs700x_i2c_dt_ids' [-Wunused-const-variable]
   static const struct of_device_id xrs700x_i2c_dt_ids[] = {

Reported-by: kernel test robot <redacted>
Signed-off-by: George McCollister <george.mccollister@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
-- 
Florian
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help