https://github.com/torvalds/linux
Revision 99b9be77632734363913e5cf22c06bb66d7f71d8 authored by Linus Torvalds on 04 January 2017, 16:56:05 UTC, committed by Linus Torvalds on 04 January 2017, 16:56:05 UTC
Pull gcc-plugins fixes from Kees Cook:
 "Small fixes for gcc-plugins when using certain gcc versions:

   - update gcc-common.h for gcc 7 (Emese Revfy)

   - fix latent_entropy type for early gcc on ARM (PaX Team)"

* tag 'gcc-plugins-v4.10-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux:
  gcc-plugins: update gcc-common.h for gcc-7
  latent_entropy: fix ARM build error on earlier gcc
2 parent s 0f64df3 + 81d873a
Raw File
Tip revision: 99b9be77632734363913e5cf22c06bb66d7f71d8 authored by Linus Torvalds on 04 January 2017, 16:56:05 UTC
Merge tag 'gcc-plugins-v4.10-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux
Tip revision: 99b9be7
leds.h
/*
 * Copyright 2015, Heiner Kallweit <hkallweit1@gmail.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */

#if IS_ENABLED(CONFIG_BT_LEDS)

void hci_leds_update_powered(struct hci_dev *hdev, bool enabled);
void hci_leds_init(struct hci_dev *hdev);

void bt_leds_init(void);
void bt_leds_cleanup(void);

#else

static inline void hci_leds_update_powered(struct hci_dev *hdev,
					   bool enabled) {}
static inline void hci_leds_init(struct hci_dev *hdev) {}

static inline void bt_leds_init(void) {}
static inline void bt_leds_cleanup(void) {}

#endif
back to top