![]() |
|
|||
0001 /* 0002 BlueZ - Bluetooth protocol stack for Linux 0003 Copyright (C) 2014 Intel Corporation 0004 0005 This program is free software; you can redistribute it and/or modify 0006 it under the terms of the GNU General Public License version 2 as 0007 published by the Free Software Foundation; 0008 0009 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 0010 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 0011 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. 0012 IN NO EVENT SHALL THE COPYRIGHT HOLDER(S) AND AUTHOR(S) BE LIABLE FOR ANY 0013 CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES 0014 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 0015 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 0016 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 0017 0018 ALL LIABILITY, INCLUDING LIABILITY FOR INFRINGEMENT OF ANY PATENTS, 0019 COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS, RELATING TO USE OF THIS 0020 SOFTWARE IS DISCLAIMED. 0021 */ 0022 0023 #if IS_ENABLED(CONFIG_BT_SELFTEST) && IS_MODULE(CONFIG_BT) 0024 0025 /* When CONFIG_BT_SELFTEST=y and the CONFIG_BT=m, then the self testing 0026 * is run at module loading time. 0027 */ 0028 int bt_selftest(void); 0029 0030 #else 0031 0032 /* When CONFIG_BT_SELFTEST=y and CONFIG_BT=y, then the self testing 0033 * is run via late_initcall() to make sure that subsys_initcall() of 0034 * the Bluetooth subsystem and device_initcall() of the Crypto subsystem 0035 * do not clash. 0036 * 0037 * When CONFIG_BT_SELFTEST=n, then this turns into an empty call that 0038 * has no impact. 0039 */ 0040 static inline int bt_selftest(void) 0041 { 0042 return 0; 0043 } 0044 0045 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |