lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Mon, 28 Dec 2020 05:36:16 +0800
From:   kernel test robot <lkp@...el.com>
To:     Shyam Sundar S K <Shyam-sundar.S-k@....com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Hans de Goede <hdegoede@...hat.com>,
        Andy Shevchenko <andy.shevchenko@...il.com>
Subject: drivers/platform/x86/amd-pmc.c:88:5: warning: "CONFIG_DEBUG_FS" is
 not defined, evaluates to 0

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   f838f8d2b694cf9d524dc4423e9dd2db13892f3f
commit: 156ec4731cb22b06c08e27debc1ef9f16f4bbb5e platform/x86: amd-pmc: Add AMD platform support for S2Idle
date:   7 weeks ago
config: i386-randconfig-p002-20201222 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=156ec4731cb22b06c08e27debc1ef9f16f4bbb5e
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 156ec4731cb22b06c08e27debc1ef9f16f4bbb5e
        # save the attached .config to linux build tree
        make W=1 ARCH=i386 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

All warnings (new ones prefixed by >>):

>> drivers/platform/x86/amd-pmc.c:88:5: warning: "CONFIG_DEBUG_FS" is not defined, evaluates to 0 [-Wundef]
      88 | #if CONFIG_DEBUG_FS
         |     ^~~~~~~~~~~~~~~


vim +/CONFIG_DEBUG_FS +88 drivers/platform/x86/amd-pmc.c

    87	
  > 88	#if CONFIG_DEBUG_FS
    89	static int smu_fw_info_show(struct seq_file *s, void *unused)
    90	{
    91		struct amd_pmc_dev *dev = s->private;
    92		u32 value;
    93	
    94		value = ioread32(dev->smu_base + AMD_SMU_FW_VERSION);
    95		seq_printf(s, "SMU FW Info: %x\n", value);
    96		return 0;
    97	}
    98	DEFINE_SHOW_ATTRIBUTE(smu_fw_info);
    99	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (39431 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ