All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Ashwin Gundarapu <linuxuser509@zohomail.in>
Cc: oe-kbuild-all@lists.linux.dev, 0day robot <lkp@intel.com>
Subject: drivers/acpi/processor_idle.c:699:39: warning: suggest braces around empty body in an 'if' statement
Date: Mon, 15 Jun 2026 01:04:56 +0200	[thread overview]
Message-ID: <202606150127.ut0iFPwm-lkp@intel.com> (raw)

tree:   https://github.com/intel-lab-lkp/linux/commits/Ashwin-Gundarapu/x86-acpi-remove-unused-ACPI_FLUSH_CPU_CACHE-macro/20260614-224607
head:   651c474aa81fd5a23e9392b8bdb69a6b55412111
commit: 651c474aa81fd5a23e9392b8bdb69a6b55412111 x86/acpi: remove unused ACPI_FLUSH_CPU_CACHE macro
date:   8 hours ago
config: i386-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20260615/202606150127.ut0iFPwm-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260615/202606150127.ut0iFPwm-lkp@intel.com/reproduce)

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>
| Closes: https://lore.kernel.org/oe-kbuild-all/202606150127.ut0iFPwm-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/acpi/processor_idle.c: In function 'acpi_idle_enter':
>> drivers/acpi/processor_idle.c:699:39: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
     699 |                 ACPI_FLUSH_CPU_CACHE();
         |                                       ^


vim +/if +699 drivers/acpi/processor_idle.c

6491bc0c616969f Rafael J. Wysocki    2015-02-03  676  
409dfdcaffb266a Guilherme G. Piccoli 2022-06-07  677  static int __cpuidle acpi_idle_enter(struct cpuidle_device *dev,
6491bc0c616969f Rafael J. Wysocki    2015-02-03  678  			   struct cpuidle_driver *drv, int index)
6491bc0c616969f Rafael J. Wysocki    2015-02-03  679  {
6491bc0c616969f Rafael J. Wysocki    2015-02-03  680  	struct acpi_processor_cx *cx = per_cpu(acpi_cstate[index], dev->cpu);
6491bc0c616969f Rafael J. Wysocki    2015-02-03  681  	struct acpi_processor *pr;
6491bc0c616969f Rafael J. Wysocki    2015-02-03  682  
6491bc0c616969f Rafael J. Wysocki    2015-02-03  683  	pr = __this_cpu_read(processors);
6491bc0c616969f Rafael J. Wysocki    2015-02-03  684  	if (unlikely(!pr))
6491bc0c616969f Rafael J. Wysocki    2015-02-03  685  		return -EINVAL;
6491bc0c616969f Rafael J. Wysocki    2015-02-03  686  
6491bc0c616969f Rafael J. Wysocki    2015-02-03  687  	if (cx->type != ACPI_STATE_C1) {
1fecfdbb7acc662 Peter Zijlstra       2020-09-15  688  		if (cx->type == ACPI_STATE_C3 && pr->flags.bm_check)
1fecfdbb7acc662 Peter Zijlstra       2020-09-15  689  			return acpi_idle_enter_bm(drv, pr, cx, index);
1fecfdbb7acc662 Peter Zijlstra       2020-09-15  690  
1fecfdbb7acc662 Peter Zijlstra       2020-09-15  691  		/* C2 to C1 demotion. */
5f5081852038d9a Rafael J. Wysocki    2015-02-11  692  		if (acpi_idle_fallback_to_c1(pr) && num_online_cpus() > 1) {
dc2251bf98c66db Rafael J. Wysocki    2017-08-23  693  			index = ACPI_IDLE_STATE_START;
6491bc0c616969f Rafael J. Wysocki    2015-02-03  694  			cx = per_cpu(acpi_cstate[index], dev->cpu);
6491bc0c616969f Rafael J. Wysocki    2015-02-03  695  		}
6491bc0c616969f Rafael J. Wysocki    2015-02-03  696  	}
6491bc0c616969f Rafael J. Wysocki    2015-02-03  697  
6491bc0c616969f Rafael J. Wysocki    2015-02-03  698  	if (cx->type == ACPI_STATE_C3)
6491bc0c616969f Rafael J. Wysocki    2015-02-03 @699  		ACPI_FLUSH_CPU_CACHE();
6491bc0c616969f Rafael J. Wysocki    2015-02-03  700  
6491bc0c616969f Rafael J. Wysocki    2015-02-03  701  	acpi_idle_do_entry(cx);
6491bc0c616969f Rafael J. Wysocki    2015-02-03  702  
e978aa7d7d57d04 Deepthi Dharwar      2011-10-28  703  	return index;
4f86d3a8e297205 Len Brown            2007-10-03  704  }
4f86d3a8e297205 Len Brown            2007-10-03  705  

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

                 reply	other threads:[~2026-06-14 23:05 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=202606150127.ut0iFPwm-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=linuxuser509@zohomail.in \
    --cc=oe-kbuild-all@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.