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:   Fri, 15 Nov 2019 14:06:04 +0800
From:   fuyao <fuyao@...winnertech.com>
To:     linux-kernel@...r.kernel.org, linux-pm@...r.kernel.org
Cc:     麦键樟 <maijianzhang@...winnertech.com>,
        李静psw <lijingpsw@...winnertech.com>
Subject: [power supply]:missing definition without config

linux-pm:
hi, walk around the power_supply.h file. 
call power_supply_get_by_name without the CONFIG_POWER_SUPPLY, cause
error.
if we should use:

#ifdef CONFIG_POWER_SUPPLY
extern extern struct power_supply *power_supply_get_by_name(const char *name);
#else
static inline struct power_supply *
power_supply_get_by_name(const char *name)
{return NULL;}
#endif

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ