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>] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LNX.2.00.1606241027520.6874@cbobk.fhfr.pm>
Date:	Fri, 24 Jun 2016 10:28:50 +0200 (CEST)
From:	Jiri Kosina <jikos@...nel.org>
To:	linux-input@...r.kernel.org
cc:	linux-kernel@...r.kernel.org
Subject: [PATCH] HID: hiddev: use IS_ENABLED() for USB_HIDDEV

From: Jiri Kosina <jkosina@...e.cz>

Use IS_ENABLED() for checking USB_HIDDEV to make sure compilation works 
for all possible config combinations.

Signed-off-by: Jiri Kosina <jkosina@...e.cz>
---
 include/linux/hiddev.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/hiddev.h b/include/linux/hiddev.h
index a5dd814..b6f48d6 100644
--- a/include/linux/hiddev.h
+++ b/include/linux/hiddev.h
@@ -37,7 +37,7 @@ struct hid_usage;
 struct hid_field;
 struct hid_report;
 
-#ifdef CONFIG_USB_HIDDEV
+#if IS_ENABLED(CONFIG_USB_HIDDEV)
 int hiddev_connect(struct hid_device *hid, unsigned int force);
 void hiddev_disconnect(struct hid_device *);
 void hiddev_hid_event(struct hid_device *hid, struct hid_field *field,

-- 
Jiri Kosina
SUSE Labs

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ