All of lore.kernel.org
 help / color / mirror / Atom feed
* [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
@ 2026-11-26 11:06 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-11-26 11:06 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp, Dan Carpenter

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-26 11:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-26 11:06 [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 kernel test robot

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.