#ifndef GEOIPH_H #define GEOIPH_H #include #include #include "config.h" #include "die.h" #if defined(HAVE_GEOIP) && defined(HAVE_LIBZ) extern void init_geoip(int enforce); extern void update_geoip(void); extern int geoip_working(void); extern const char *geoip4_city_name(struct sockaddr_in *sa); extern const char *geoip6_city_name(struct sockaddr_in6 *sa); extern const char *geoip4_region_name(struct sockaddr_in *sa); extern const char *geoip6_region_name(struct sockaddr_in6 *sa); extern const char *geoip4_country_name(struct sockaddr_in *sa); extern const char *geoip6_country_name(struct sockaddr_in6 *sa); extern float geoip4_longitude(struct sockaddr_in *sa); extern float geoip4_latitude(struct sockaddr_in *sa); extern float geoip6_longitude(struct sockaddr_in6 *sa); extern float geoip6_latitude(struct sockaddr_in6 *sa); extern const char *geoip4_as_name(struct sockaddr_in *sa); extern const char *geoip6_as_name(struct sockaddr_in6 *sa); extern void destroy_geoip(void); #else static inline void init_geoip(int enforce) { } static inline void destroy_geoip(void) { } static inline void update_geoip(void) { panic("No built-in geoip support!\n"); } static inline int geoip_working(void) { return 0; } static inline const char *geoip4_city_name(struct sockaddr_in *sa) { return NULL; } static inline const char *geoip6_city_name(struct sockaddr_in6 *sa) { return NULL; } static inline const char *geoip4_region_name(struct sockaddr_in *sa) { return NULL; } static inline const char *geoip6_region_name(struct sockaddr_in6 *sa) { return NULL; } static inline const char *geoip4_country_name(struct sockaddr_in *sa) { return NULL; } static inline const char *geoip6_country_name(struct sockaddr_in6 *sa) { return NULL; } static inline float geoip4_longitude(struct sockaddr_in *sa) { return .0f; } static inline float geoip4_latitude(struct sockaddr_in *sa) { return .0f; } static inline float geoip6_longitude(struct sockaddr_in6 *sa) { return .0f; } static inline float geoip6_latitude(struct sockaddr_in6 *sa) { return .0f; } static inline const char *geoip4_as_name(struct sockaddr_in *sa) { return NULL; } static inline const char *geoip6_as_name(struct sockaddr_in6 *sa) { return NULL; } #endif #endif /* GEOIPH_H */ git.cgi/linux/net-next.git/log/drivers/usb/renesas_usbhs/Kconfig'>
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2017-01-28 14:31:22 +0100
committerKalle Valo <kvalo@codeaurora.org>2017-01-31 09:27:09 +0200
commita971df0b9d04674e325346c17de9a895425ca5e1 (patch)
treeeda823e66ba32740c28a8ce4113b27caaa969423 /drivers/usb/renesas_usbhs/Kconfig
parent2a2a5d1835b6f0baa0e207426d3c79eefd32e253 (diff)
bcma: use (get|put)_device when probing/removing device driver
This allows tracking device state and e.g. makes devm work as expected. Signed-off-by: Rafał Miłecki <rafal@milecki.pl> Cc: Stable <stable@vger.kernel.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/usb/renesas_usbhs/Kconfig')