All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>
Subject: [pdx86-platform-drivers-x86:review-ilpo-next 7/65] drivers/platform/asus/eeepc-laptop.c:778 eeepc_new_rfkill() warn: '*rfkill' is an error pointer or valid
Date: Thu, 26 Nov 2026 12:06:18 +0100	[thread overview]
Message-ID: <20261126112615.8RAV8Qf0-lkp@intel.com> (raw)

Unfiltered warning: this smatch report is sent as-is and has not been
reviewed for false positives, so please treat it with due skepticism.

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
CC: Hans de Goede <hdegoede@redhat.com>
TO: Chipang Kao <chipang_kao@asus.com>
CC: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
CC: Denis Benato <denis.benato@linux.dev>

Hi Chipang,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git review-ilpo-next
head:   6fc627bda235ac5b6f43b5f784b81d6c2450ae5a
commit: ef696e89f836c31825b754abe181b490b82fbee7 [7/65] platform/asus: Move ASUS platform drivers out of drivers/platform/x86
:::::: branch date: 12 hours ago
:::::: commit date: 2 weeks ago
config: x86_64-randconfig-2200-20261125 (https://download.01.org/0day-ci/archive/20261126/20261126112615.8RAV8Qf0-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
smatch: v0.5.0-9187-g5189e3fb

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@intel.com>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/20261126112615.8RAV8Qf0-lkp@intel.com/

smatch warnings:
drivers/platform/asus/eeepc-laptop.c:778 eeepc_new_rfkill() warn: '*rfkill' is an error pointer or valid

vim +778 drivers/platform/asus/eeepc-laptop.c

52bbe3c7b413d6 drivers/platform/x86/eeepc-laptop.c Alan Jenkins 2009-12-03  762  
854c78363f37f0 drivers/platform/x86/eeepc-laptop.c Alan Jenkins 2009-12-03  763  static int eeepc_new_rfkill(struct eeepc_laptop *eeepc,
854c78363f37f0 drivers/platform/x86/eeepc-laptop.c Alan Jenkins 2009-12-03  764  			    struct rfkill **rfkill,
854c78363f37f0 drivers/platform/x86/eeepc-laptop.c Alan Jenkins 2009-12-03  765  			    const char *name,
52bbe3c7b413d6 drivers/platform/x86/eeepc-laptop.c Alan Jenkins 2009-12-03  766  			    enum rfkill_type type, int cm)
52bbe3c7b413d6 drivers/platform/x86/eeepc-laptop.c Alan Jenkins 2009-12-03  767  {
854c78363f37f0 drivers/platform/x86/eeepc-laptop.c Alan Jenkins 2009-12-03  768  	acpi_handle handle;
52bbe3c7b413d6 drivers/platform/x86/eeepc-laptop.c Alan Jenkins 2009-12-03  769  	int result;
52bbe3c7b413d6 drivers/platform/x86/eeepc-laptop.c Alan Jenkins 2009-12-03  770  
854c78363f37f0 drivers/platform/x86/eeepc-laptop.c Alan Jenkins 2009-12-03  771  	result = acpi_setter_handle(eeepc, cm, &handle);
52bbe3c7b413d6 drivers/platform/x86/eeepc-laptop.c Alan Jenkins 2009-12-03  772  	if (result < 0)
52bbe3c7b413d6 drivers/platform/x86/eeepc-laptop.c Alan Jenkins 2009-12-03  773  		return result;
52bbe3c7b413d6 drivers/platform/x86/eeepc-laptop.c Alan Jenkins 2009-12-03  774  
854c78363f37f0 drivers/platform/x86/eeepc-laptop.c Alan Jenkins 2009-12-03  775  	*rfkill = rfkill_alloc(name, &eeepc->platform_device->dev, type,
854c78363f37f0 drivers/platform/x86/eeepc-laptop.c Alan Jenkins 2009-12-03  776  			       &eeepc_rfkill_ops, handle);
52bbe3c7b413d6 drivers/platform/x86/eeepc-laptop.c Alan Jenkins 2009-12-03  777  
52bbe3c7b413d6 drivers/platform/x86/eeepc-laptop.c Alan Jenkins 2009-12-03 @778  	if (!*rfkill)
52bbe3c7b413d6 drivers/platform/x86/eeepc-laptop.c Alan Jenkins 2009-12-03  779  		return -EINVAL;
52bbe3c7b413d6 drivers/platform/x86/eeepc-laptop.c Alan Jenkins 2009-12-03  780  
854c78363f37f0 drivers/platform/x86/eeepc-laptop.c Alan Jenkins 2009-12-03  781  	rfkill_init_sw_state(*rfkill, get_acpi(eeepc, cm) != 1);
52bbe3c7b413d6 drivers/platform/x86/eeepc-laptop.c Alan Jenkins 2009-12-03  782  	result = rfkill_register(*rfkill);
52bbe3c7b413d6 drivers/platform/x86/eeepc-laptop.c Alan Jenkins 2009-12-03  783  	if (result) {
52bbe3c7b413d6 drivers/platform/x86/eeepc-laptop.c Alan Jenkins 2009-12-03  784  		rfkill_destroy(*rfkill);
52bbe3c7b413d6 drivers/platform/x86/eeepc-laptop.c Alan Jenkins 2009-12-03  785  		*rfkill = NULL;
52bbe3c7b413d6 drivers/platform/x86/eeepc-laptop.c Alan Jenkins 2009-12-03  786  		return result;
52bbe3c7b413d6 drivers/platform/x86/eeepc-laptop.c Alan Jenkins 2009-12-03  787  	}
52bbe3c7b413d6 drivers/platform/x86/eeepc-laptop.c Alan Jenkins 2009-12-03  788  	return 0;
52bbe3c7b413d6 drivers/platform/x86/eeepc-laptop.c Alan Jenkins 2009-12-03  789  }
52bbe3c7b413d6 drivers/platform/x86/eeepc-laptop.c Alan Jenkins 2009-12-03  790  

:::::: The code at line 778 was first introduced by commit
:::::: 52bbe3c7b413d656833686f9f08e5dcab3786eeb eeepc-laptop: code movement

:::::: TO: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
:::::: CC: Len Brown <len.brown@intel.com>

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

                 reply	other threads:[~2026-11-26 11:07 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=20261126112615.8RAV8Qf0-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=error27@gmail.com \
    --cc=oe-kbuild@lists.linux.dev \
    /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 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.