LET US LOOK AT WAYS TO ACE MATHS TEST
by branden luci
Many people struggle with arithmetic and, therefore, are concerned about performing well on math examinations. Fortunately, there are several strategies you may employ to make these examinations much simpler to pass. Reading all directions, writing down all of your formulae, methodically working through each question, and properly displaying all of your work are all excellent techniques for nailing every question. If you become stuck on a question, then do not skip it ask for help. We will give you the assignment help (https://www.allassignmenthelp.com/uk/).
Are you cramming for your final test and running out of time to finish your assignment? Do you have frequent dreams about receiving poor grades? If you are facing these problems then do not worry we will provide you an assignment helper (https://www.allassignmenthelp.com/uk/), it may be time to seek help in the assignment by the assistance. And, since you've arrived at this page, we can assure you that we can lend a helping hand in your endeavor. Our professional writers understand how difficult and time-consuming assignment writing may be. As members of the student body, our writers understand the difficulties that normal students have while attempting to complete a difficult project. Many students struggle with a shortage of time, which prevents them from completing their assignments. The second most prevalent problem that students encounter is a deadline.
TIPS ON HOW CAN YOU ACE MATHS TEST
Let us look here at some of the tips on how can you ace the maths test. Maths being a bit difficult subject that everyone has fear. Though it takes some work and practice you can have them.
• Bring all of the essential test equipment.
Some exams require only a pen or pencil, while math tests may necessitate the use of other instruments. Remember to bring your calculator, protractor, ruler, compass, and anything else you'll need for the test. If you're permitted to utilize these tools but don't have them, you'll be at a significant disadvantage.
• Before beginning your job, make sure you have read all of the instructions. Understand precisely what you must perform in this test. The teacher may have given you particular directions to follow. To prevent losing points, read and follow all of the instructions.
• At the start of the test, make a list of all the formulae you'll need.
Most math examinations need you to recall a plethora of formulae to answer various problems. Even if you have studied and are familiar with them, you may forget some if you become worried during the test. Avoid this by performing a "brain dump" and jotting down all of the essential formulae before the start of the test. Then, if you forget something, look back to this list.
• Pay close attention to word puzzles.
Word problems are particularly difficult since it is not always apparent what the question is asking, or you may be perplexed by how the question is phrased. Spend additional effort on word problems to figure out what the inquiry is asking. Read it slowly and underline key terms that will lead you to the calculations you need to do.
• If you are allowed to take some credit, show all of your labor.
Some professors will give you partial credit if you correctly set out an equation and are on the right road to solving it. Get as much credit as possible by carefully writing all of your work. Even if you don't get the correct answer, you can still gain a few significant points.
• Skip any questions that have you stumped and come back to them later.
It's almost certain that you'll come upon a question that puzzles you. If you come across one of these questions, avoid it for the time being. There are likely other questions on the test that you can rapidly answer. You could spend too much time on this one and wind up running out of time for the rest of the test. After you've finished the easier questions, return to them.
1 year, 2 months
arch/nios2/kernel/setup.c:152:6: warning: Unused variable: dram_start [unusedVariable]
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 1e16624d7b4376797ede36e3c955375cf0f23298
commit: 7f7bc20bc41a4fbcd2db75b375ac95e5faf958ae nios2: Don't use _end for calculating min_low_pfn
date: 5 months ago
compiler: nios2-linux-gcc (GCC) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
cppcheck possible warnings: (new ones prefixed by >>, may not real problems)
>> arch/nios2/kernel/setup.c:152:6: warning: Unused variable: dram_start [unusedVariable]
int dram_start;
^
arch/nios2/kernel/setup.c:131:6: warning: Uninitialized variable: cmdline_passed [uninitvar]
if (cmdline_passed[0])
^
vim +152 arch/nios2/kernel/setup.c
7f7bc20bc41a4f Andreas Oetken 2021-02-19 149
27d22413e60009 Ley Foon Tan 2014-11-06 150 void __init setup_arch(char **cmdline_p)
27d22413e60009 Ley Foon Tan 2014-11-06 151 {
0042379279bcac Mike Rapoport 2018-10-26 @152 int dram_start;
:::::: The code at line 152 was first introduced by commit
:::::: 0042379279bcac871d2a60172f942a3a255ec611 nios2: switch to NO_BOOTMEM
:::::: TO: Mike Rapoport <rppt(a)linux.vnet.ibm.com>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
arch/nds32/kernel/setup.c:247:26: warning: Unused variable: region [unusedVariable]
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 50be9417e23af5a8ac860d998e1e3f06b8fd79d7
commit: 80c4574417ae42fe2ba6978772854dc67cfc5331 h8300, nds32, openrisc: simplify detection of memory extents
date: 9 months ago
compiler: nds32le-linux-gcc (GCC) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
cppcheck possible warnings: (new ones prefixed by >>, may not real problems)
>> arch/nds32/kernel/setup.c:247:26: warning: Unused variable: region [unusedVariable]
struct memblock_region *region;
^
vim +247 arch/nds32/kernel/setup.c
001d953ede35df Greentime Hu 2017-10-24 241
001d953ede35df Greentime Hu 2017-10-24 242 static void __init setup_memory(void)
001d953ede35df Greentime Hu 2017-10-24 243 {
001d953ede35df Greentime Hu 2017-10-24 244 unsigned long ram_start_pfn;
001d953ede35df Greentime Hu 2017-10-24 245 unsigned long free_ram_start_pfn;
001d953ede35df Greentime Hu 2017-10-24 246 phys_addr_t memory_start, memory_end;
001d953ede35df Greentime Hu 2017-10-24 @247 struct memblock_region *region;
001d953ede35df Greentime Hu 2017-10-24 248
001d953ede35df Greentime Hu 2017-10-24 249 memory_end = memory_start = 0;
001d953ede35df Greentime Hu 2017-10-24 250
001d953ede35df Greentime Hu 2017-10-24 251 /* Find main memory where is the kernel */
80c4574417ae42 Mike Rapoport 2020-10-13 252 memory_start = memblock_start_of_DRAM();
80c4574417ae42 Mike Rapoport 2020-10-13 253 memory_end = memblock_end_of_DRAM();
001d953ede35df Greentime Hu 2017-10-24 254
001d953ede35df Greentime Hu 2017-10-24 255 if (!memory_end) {
001d953ede35df Greentime Hu 2017-10-24 256 panic("No memory!");
001d953ede35df Greentime Hu 2017-10-24 257 }
001d953ede35df Greentime Hu 2017-10-24 258
001d953ede35df Greentime Hu 2017-10-24 259 ram_start_pfn = PFN_UP(memblock_start_of_DRAM());
001d953ede35df Greentime Hu 2017-10-24 260 /* free_ram_start_pfn is first page after kernel */
001d953ede35df Greentime Hu 2017-10-24 261 free_ram_start_pfn = PFN_UP(__pa(&_end));
001d953ede35df Greentime Hu 2017-10-24 262 max_pfn = PFN_DOWN(memblock_end_of_DRAM());
001d953ede35df Greentime Hu 2017-10-24 263 /* it could update max_pfn */
001d953ede35df Greentime Hu 2017-10-24 264 if (max_pfn - ram_start_pfn <= MAXMEM_PFN)
001d953ede35df Greentime Hu 2017-10-24 265 max_low_pfn = max_pfn;
001d953ede35df Greentime Hu 2017-10-24 266 else {
001d953ede35df Greentime Hu 2017-10-24 267 max_low_pfn = MAXMEM_PFN + ram_start_pfn;
001d953ede35df Greentime Hu 2017-10-24 268 if (!IS_ENABLED(CONFIG_HIGHMEM))
001d953ede35df Greentime Hu 2017-10-24 269 max_pfn = MAXMEM_PFN + ram_start_pfn;
001d953ede35df Greentime Hu 2017-10-24 270 }
001d953ede35df Greentime Hu 2017-10-24 271 /* high_memory is related with VMALLOC */
001d953ede35df Greentime Hu 2017-10-24 272 high_memory = (void *)__va(max_low_pfn * PAGE_SIZE);
001d953ede35df Greentime Hu 2017-10-24 273 min_low_pfn = free_ram_start_pfn;
001d953ede35df Greentime Hu 2017-10-24 274
001d953ede35df Greentime Hu 2017-10-24 275 /*
001d953ede35df Greentime Hu 2017-10-24 276 * initialize the boot-time allocator (with low memory only).
001d953ede35df Greentime Hu 2017-10-24 277 *
001d953ede35df Greentime Hu 2017-10-24 278 * This makes the memory from the end of the kernel to the end of
001d953ede35df Greentime Hu 2017-10-24 279 * RAM usable.
001d953ede35df Greentime Hu 2017-10-24 280 */
001d953ede35df Greentime Hu 2017-10-24 281 memblock_set_bottom_up(true);
001d953ede35df Greentime Hu 2017-10-24 282 memblock_reserve(PFN_PHYS(ram_start_pfn), PFN_PHYS(free_ram_start_pfn - ram_start_pfn));
001d953ede35df Greentime Hu 2017-10-24 283
001d953ede35df Greentime Hu 2017-10-24 284 early_init_fdt_reserve_self();
001d953ede35df Greentime Hu 2017-10-24 285 early_init_fdt_scan_reserved_mem();
001d953ede35df Greentime Hu 2017-10-24 286
001d953ede35df Greentime Hu 2017-10-24 287 memblock_dump_all();
001d953ede35df Greentime Hu 2017-10-24 288 }
001d953ede35df Greentime Hu 2017-10-24 289
:::::: The code at line 247 was first introduced by commit
:::::: 001d953ede35dfb135e636af4b41d5dd20a09471 nds32: Kernel booting and initialization
:::::: TO: Greentime Hu <greentime(a)andestech.com>
:::::: CC: Greentime Hu <greentime(a)andestech.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
Re: [PATCH] mm/debug_vm_pgtable: Fix corrupted PG_arch_1 by set_pmd_at()
by kernel test robot
Hi Gavin,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linus/master]
[cannot apply to hnaz-linux-mm/master linux/master v5.13 next-20210707]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Gavin-Shan/mm-debug_vm_pgtable-F...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 3dbdb38e286903ec220aaf1fb29a8d94297da246
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/414db1c0feb54b545b3df56bc19ffff27...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Gavin-Shan/mm-debug_vm_pgtable-Fix-corrupted-PG_arch_1-by-set_pmd_at/20210702-183310
git checkout 414db1c0feb54b545b3df56bc19ffff27580deb5
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from arch/x86/include/asm/page.h:76,
from arch/x86/include/asm/thread_info.h:12,
from include/linux/thread_info.h:59,
from arch/x86/include/asm/preempt.h:7,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:51,
from include/linux/mmzone.h:8,
from include/linux/gfp.h:6,
from mm/debug_vm_pgtable.c:13:
mm/debug_vm_pgtable.c: In function 'pud_advanced_tests':
>> include/asm-generic/memory_model.h:25:37: error: invalid operands to binary + (have 'struct page *' and 'struct page *')
25 | #define __pfn_to_page(pfn) (vmemmap + (pfn))
| ^
include/asm-generic/memory_model.h:53:21: note: in expansion of macro '__pfn_to_page'
53 | #define pfn_to_page __pfn_to_page
| ^~~~~~~~~~~~~
mm/debug_vm_pgtable.c:347:22: note: in expansion of macro 'pfn_to_page'
347 | struct page *page = pfn_to_page(page);
| ^~~~~~~~~~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for PHY_SPARX5_SERDES
Depends on (ARCH_SPARX5 || COMPILE_TEST && OF && HAS_IOMEM
Selected by
- SPARX5_SWITCH && NETDEVICES && ETHERNET && NET_VENDOR_MICROCHIP && NET_SWITCHDEV && HAS_IOMEM
vim +25 include/asm-generic/memory_model.h
8f6aac419bd590 Christoph Lameter 2007-10-16 23
af901ca181d92a André Goddard Rosa 2009-11-14 24 /* memmap is virtually contiguous. */
8f6aac419bd590 Christoph Lameter 2007-10-16 @25 #define __pfn_to_page(pfn) (vmemmap + (pfn))
32272a26974d20 Martin Schwidefsky 2008-12-25 26 #define __page_to_pfn(page) (unsigned long)((page) - vmemmap)
8f6aac419bd590 Christoph Lameter 2007-10-16 27
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[chrome-os:chromeos-5.10 9494/15742] drivers/gpu/drm/drm_file.c:789:6: error: no previous prototype for 'drm_send_event_helper'
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.10
head: 4ed1a5f50b6ee45e067898963287dca0ac886bac
commit: de45748ca413ac6ab63b4154aab9e6cc5ed41a2e [9494/15742] UPSTREAM: drm/drm_vblank: set the dma-fence timestamp during send_vblank_event
config: microblaze-randconfig-p002-20210712 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.10
git checkout de45748ca413ac6ab63b4154aab9e6cc5ed41a2e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=microblaze
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> kernel/watchdog.c:325:13: error: no previous prototype for 'watchdog_check_hardlockup' [-Werror=missing-prototypes]
325 | void __weak watchdog_check_hardlockup(void) {}
| ^~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
fs/io_uring.c: In function 'io_prep_async_work':
>> fs/io_uring.c:1431:22: error: variable 'id' set but not used [-Werror=unused-but-set-variable]
1431 | struct io_identity *id;
| ^~
cc1: all warnings being treated as errors
--
>> drivers/hid/hid-nintendo.c:92:17: error: 'JC_USB_SEND_UART' defined but not used [-Werror=unused-const-variable=]
92 | static const u8 JC_USB_SEND_UART = 0x92;
| ^~~~~~~~~~~~~~~~
>> drivers/hid/hid-nintendo.c:91:17: error: 'JC_USB_PRE_HANDSHAKE' defined but not used [-Werror=unused-const-variable=]
91 | static const u8 JC_USB_PRE_HANDSHAKE = 0x91;
| ^~~~~~~~~~~~~~~~~~~~
>> drivers/hid/hid-nintendo.c:90:17: error: 'JC_USB_RESET' defined but not used [-Werror=unused-const-variable=]
90 | static const u8 JC_USB_RESET = 0x06;
| ^~~~~~~~~~~~
>> drivers/hid/hid-nintendo.c:89:17: error: 'JC_USB_CMD_EN_TIMEOUT' defined but not used [-Werror=unused-const-variable=]
89 | static const u8 JC_USB_CMD_EN_TIMEOUT = 0x05;
| ^~~~~~~~~~~~~~~~~~~~~
>> drivers/hid/hid-nintendo.c:85:17: error: 'JC_USB_CMD_CONN_STATUS' defined but not used [-Werror=unused-const-variable=]
85 | static const u8 JC_USB_CMD_CONN_STATUS = 0x01;
| ^~~~~~~~~~~~~~~~~~~~~~
>> drivers/hid/hid-nintendo.c:82:17: error: 'JC_FEATURE_LAUNCH' defined but not used [-Werror=unused-const-variable=]
82 | static const u8 JC_FEATURE_LAUNCH = 0x75;
| ^~~~~~~~~~~~~~~~~
>> drivers/hid/hid-nintendo.c:81:17: error: 'JC_FEATURE_MEM_WRITE' defined but not used [-Werror=unused-const-variable=]
81 | static const u8 JC_FEATURE_MEM_WRITE = 0x74;
| ^~~~~~~~~~~~~~~~~~~~
>> drivers/hid/hid-nintendo.c:80:17: error: 'JC_FEATURE_ERASE_MEM_SECTOR' defined but not used [-Werror=unused-const-variable=]
80 | static const u8 JC_FEATURE_ERASE_MEM_SECTOR = 0x73;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/hid/hid-nintendo.c:79:17: error: 'JC_FEATURE_MEM_READ' defined but not used [-Werror=unused-const-variable=]
79 | static const u8 JC_FEATURE_MEM_READ = 0x72;
| ^~~~~~~~~~~~~~~~~~~
>> drivers/hid/hid-nintendo.c:78:17: error: 'JC_FEATURE_SETUP_MEM_READ' defined but not used [-Werror=unused-const-variable=]
78 | static const u8 JC_FEATURE_SETUP_MEM_READ = 0x71;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/hid/hid-nintendo.c:77:17: error: 'JC_FEATURE_OTA_FW_UPGRADE' defined but not used [-Werror=unused-const-variable=]
77 | static const u8 JC_FEATURE_OTA_FW_UPGRADE = 0x70;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/hid/hid-nintendo.c:76:17: error: 'JC_FEATURE_LAST_SUBCMD' defined but not used [-Werror=unused-const-variable=]
76 | static const u8 JC_FEATURE_LAST_SUBCMD = 0x02;
| ^~~~~~~~~~~~~~~~~~~~~~
>> drivers/hid/hid-nintendo.c:69:17: error: 'JC_INPUT_BUTTON_EVENT' defined but not used [-Werror=unused-const-variable=]
69 | static const u8 JC_INPUT_BUTTON_EVENT = 0x3F;
| ^~~~~~~~~~~~~~~~~~~~~
>> drivers/hid/hid-nintendo.c:66:17: error: 'JC_SUBCMD_GET_REGULATED_VOLTAGE' defined but not used [-Werror=unused-const-variable=]
66 | static const u8 JC_SUBCMD_GET_REGULATED_VOLTAGE = 0x50;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/hid/hid-nintendo.c:65:17: error: 'JC_SUBCMD_ENABLE_VIBRATION' defined but not used [-Werror=unused-const-variable=]
65 | static const u8 JC_SUBCMD_ENABLE_VIBRATION = 0x48;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/hid/hid-nintendo.c:64:17: error: 'JC_SUBCMD_READ_IMU_REG' defined but not used [-Werror=unused-const-variable=]
64 | static const u8 JC_SUBCMD_READ_IMU_REG = 0x43;
| ^~~~~~~~~~~~~~~~~~~~~~
>> drivers/hid/hid-nintendo.c:63:17: error: 'JC_SUBCMD_WRITE_IMU_REG' defined but not used [-Werror=unused-const-variable=]
63 | static const u8 JC_SUBCMD_WRITE_IMU_REG = 0x42;
| ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/hid/hid-nintendo.c:62:17: error: 'JC_SUBCMD_SET_IMU_SENSITIVITY' defined but not used [-Werror=unused-const-variable=]
62 | static const u8 JC_SUBCMD_SET_IMU_SENSITIVITY = 0x41;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/hid/hid-nintendo.c:61:17: error: 'JC_SUBCMD_ENABLE_IMU' defined but not used [-Werror=unused-const-variable=]
61 | static const u8 JC_SUBCMD_ENABLE_IMU = 0x40;
| ^~~~~~~~~~~~~~~~~~~~
>> drivers/hid/hid-nintendo.c:60:17: error: 'JC_SUBCMD_SET_HOME_LIGHT' defined but not used [-Werror=unused-const-variable=]
60 | static const u8 JC_SUBCMD_SET_HOME_LIGHT = 0x38;
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/hid/hid-nintendo.c:59:17: error: 'JC_SUBCMD_GET_PLAYER_LIGHTS' defined but not used [-Werror=unused-const-variable=]
59 | static const u8 JC_SUBCMD_GET_PLAYER_LIGHTS = 0x31;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/hid/hid-nintendo.c:57:17: error: 'JC_SUBCMD_SET_MCU_STATE' defined but not used [-Werror=unused-const-variable=]
57 | static const u8 JC_SUBCMD_SET_MCU_STATE = 0x22;
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/hid/hid-nintendo.c:56:17: error: 'JC_SUBCMD_SET_MCU_CONFIG' defined but not used [-Werror=unused-const-variable=]
56 | static const u8 JC_SUBCMD_SET_MCU_CONFIG = 0x21;
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/hid/hid-nintendo.c:55:17: error: 'JC_SUBCMD_RESET_MCU' defined but not used [-Werror=unused-const-variable=]
55 | static const u8 JC_SUBCMD_RESET_MCU = 0x20;
| ^~~~~~~~~~~~~~~~~~~
drivers/hid/hid-nintendo.c:54:17: error: 'JC_SUBCMD_SPI_FLASH_WRITE' defined but not used [-Werror=unused-const-variable=]
54 | static const u8 JC_SUBCMD_SPI_FLASH_WRITE = 0x11;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/hid/hid-nintendo.c:52:17: error: 'JC_SUBCMD_LOW_POWER_MODE' defined but not used [-Werror=unused-const-variable=]
52 | static const u8 JC_SUBCMD_LOW_POWER_MODE = 0x08;
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/hid/hid-nintendo.c:51:17: error: 'JC_SUBCMD_RESET_PAIRING_INFO' defined but not used [-Werror=unused-const-variable=]
51 | static const u8 JC_SUBCMD_RESET_PAIRING_INFO = 0x07;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/hid/hid-nintendo.c:50:17: error: 'JC_SUBCMD_SET_HCI_STATE' defined but not used [-Werror=unused-const-variable=]
50 | static const u8 JC_SUBCMD_SET_HCI_STATE = 0x06;
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/hid/hid-nintendo.c:49:17: error: 'JC_SUBCMD_GET_PAGE_LIST_STATE' defined but not used [-Werror=unused-const-variable=]
49 | static const u8 JC_SUBCMD_GET_PAGE_LIST_STATE = 0x05;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/hid/hid-nintendo.c:48:17: error: 'JC_SUBCMD_TRIGGERS_ELAPSED' defined but not used [-Werror=unused-const-variable=]
48 | static const u8 JC_SUBCMD_TRIGGERS_ELAPSED = 0x04;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/hid/hid-nintendo.c:46:17: error: 'JC_SUBCMD_REQ_DEV_INFO' defined but not used [-Werror=unused-const-variable=]
46 | static const u8 JC_SUBCMD_REQ_DEV_INFO = 0x02;
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/hid/hid-nintendo.c:45:17: error: 'JC_SUBCMD_MANUAL_BT_PAIRING' defined but not used [-Werror=unused-const-variable=]
45 | static const u8 JC_SUBCMD_MANUAL_BT_PAIRING = 0x01;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/hid/hid-nintendo.c:44:17: error: 'JC_SUBCMD_STATE' defined but not used [-Werror=unused-const-variable=]
44 | static const u8 JC_SUBCMD_STATE /*= 0x00*/;
| ^~~~~~~~~~~~~~~
drivers/hid/hid-nintendo.c:40:17: error: 'JC_OUTPUT_MCU_DATA' defined but not used [-Werror=unused-const-variable=]
40 | static const u8 JC_OUTPUT_MCU_DATA = 0x11;
| ^~~~~~~~~~~~~~~~~~
drivers/hid/hid-nintendo.c:39:17: error: 'JC_OUTPUT_RUMBLE_ONLY' defined but not used [-Werror=unused-const-variable=]
39 | static const u8 JC_OUTPUT_RUMBLE_ONLY = 0x10;
| ^~~~~~~~~~~~~~~~~~~~~
drivers/hid/hid-nintendo.c:38:17: error: 'JC_OUTPUT_FW_UPDATE_PKT' defined but not used [-Werror=unused-const-variable=]
38 | static const u8 JC_OUTPUT_FW_UPDATE_PKT = 0x03;
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
>> drivers/gpu/drm/drm_file.c:789:6: error: no previous prototype for 'drm_send_event_helper' [-Werror=missing-prototypes]
789 | void drm_send_event_helper(struct drm_device *dev,
| ^~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
drivers/usb/gadget/function/f_accessory.c:891:5: error: no previous prototype for 'acc_ctrlrequest' [-Werror=missing-prototypes]
891 | int acc_ctrlrequest(struct usb_composite_dev *cdev,
| ^~~~~~~~~~~~~~~
drivers/usb/gadget/function/f_accessory.c:1301:6: error: no previous prototype for 'acc_disconnect' [-Werror=missing-prototypes]
1301 | void acc_disconnect(void)
| ^~~~~~~~~~~~~~
drivers/usb/gadget/function/f_accessory.c: In function 'acc_alloc_inst':
>> drivers/usb/gadget/function/f_accessory.c:1372:18: error: variable 'dev' set but not used [-Werror=unused-but-set-variable]
1372 | struct acc_dev *dev;
| ^~~
drivers/usb/gadget/function/f_accessory.c: At top level:
drivers/usb/gadget/function/f_accessory.c:1399:5: error: no previous prototype for 'acc_ctrlrequest_configfs' [-Werror=missing-prototypes]
1399 | int acc_ctrlrequest_configfs(struct usb_function *f,
| ^~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
vim +/drm_send_event_helper +789 drivers/gpu/drm/drm_file.c
776
777 /**
778 * drm_send_event_helper - send DRM event to file descriptor
779 * @dev: DRM device
780 * @e: DRM event to deliver
781 * @timestamp: timestamp to set for the fence event in kernel's CLOCK_MONOTONIC
782 * time domain
783 *
784 * This helper function sends the event @e, initialized with
785 * drm_event_reserve_init(), to its associated userspace DRM file.
786 * The timestamp variant of dma_fence_signal is used when the caller
787 * sends a valid timestamp.
788 */
> 789 void drm_send_event_helper(struct drm_device *dev,
790 struct drm_pending_event *e, ktime_t timestamp)
791 {
792 assert_spin_locked(&dev->event_lock);
793
794 if (e->completion) {
795 complete_all(e->completion);
796 e->completion_release(e->completion);
797 e->completion = NULL;
798 }
799
800 if (e->fence) {
801 if (timestamp)
802 dma_fence_signal_timestamp(e->fence, timestamp);
803 else
804 dma_fence_signal(e->fence);
805 dma_fence_put(e->fence);
806 }
807
808 if (!e->file_priv) {
809 kfree(e);
810 return;
811 }
812
813 list_del(&e->pending_link);
814 list_add_tail(&e->link,
815 &e->file_priv->event_list);
816 wake_up_interruptible_poll(&e->file_priv->event_wait,
817 EPOLLIN | EPOLLRDNORM);
818 }
819
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[android-goldfish:android-3.18 113/206] WARNING: ipc/built-in.o(.data+0xa8): Section mismatch in reference from the variable .L72 to the function .init.text:sem_init()
by kernel test robot
tree: https://android.googlesource.com/kernel/goldfish android-3.18
head: e1ada1f8a51f0236f1fe313d134ed401a7bc80f9
commit: 829b990e2c206f58713d04b5a86763e2116a98b1 [113/206] ipc/util.c: sysvipc_find_ipc() incorrectly updates position index
config: parisc-randconfig-c004-20210706 (attached as .config)
compiler: hppa64-linux-gcc (GCC) 5.5.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git remote add android-goldfish https://android.googlesource.com/kernel/goldfish
git fetch --no-tags android-goldfish android-3.18
git checkout 829b990e2c206f58713d04b5a86763e2116a98b1
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-5.5.0 make.cross O=build_dir ARCH=parisc SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> WARNING: ipc/built-in.o(.data+0xa8): Section mismatch in reference from the variable .L72 to the function .init.text:sem_init()
The variable .L72 references
the function __init sem_init()
If the reference is valid then annotate the
variable with or __refdata (see linux/init.h) or name the variable:
--
>> WARNING: ipc/built-in.o(.data+0xb0): Section mismatch in reference from the variable .L74 to the function .init.text:msg_init()
The variable .L74 references
the function __init msg_init()
If the reference is valid then annotate the
variable with or __refdata (see linux/init.h) or name the variable:
--
>> WARNING: ipc/built-in.o(.data+0xb8): Section mismatch in reference from the variable .L76 to the function .init.text:shm_init()
The variable .L76 references
the function __init shm_init()
If the reference is valid then annotate the
variable with or __refdata (see linux/init.h) or name the variable:
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[alexandrebelloni:rtc-misc 33/39] dtbs_check: arch/arm/boot/dts/at91-sama5d4_xplained.dt.yaml: rv8803@32: $nodename:0: 'rv8803@32' does not match '^rtc(@.*|-[0-9a-f])*$'
by kernel test robot
tree: https://github.com/alexandrebelloni/linux rtc-misc
head: ece5945cf058cdb6ac3f21d58aa5e165ea4bac18
commit: 75a417cd21e30113eba0dbad301b002db573e8cf [33/39] RTCs on sama5d4 xult
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce: make ARCH=arm dtbs_check
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
dtcheck warnings: (new ones prefixed by >>)
arch/arm/boot/dts/at91-sama5d4_xplained.dt.yaml:0:0: /ahb/apb/ramc@f0010000: failed to match any schema with compatible: ['atmel,sama5d3-ddramc']
arch/arm/boot/dts/at91-sama5d4_xplained.dt.yaml:0:0: /ahb/apb/dma-controller@f0014000: failed to match any schema with compatible: ['atmel,sama5d4-dma']
arch/arm/boot/dts/at91-sama5d4_xplained.dt.yaml:0:0: /ahb/apb/pmc@f0018000: failed to match any schema with compatible: ['atmel,sama5d4-pmc', 'syscon']
arch/arm/boot/dts/at91-sama5d4_xplained.dt.yaml:0:0: /ahb/apb/mmc@f8000000: failed to match any schema with compatible: ['atmel,hsmci']
arch/arm/boot/dts/at91-sama5d4_xplained.dt.yaml:0:0: /ahb/apb/serial@f8004000: failed to match any schema with compatible: ['atmel,at91sam9260-usart']
arch/arm/boot/dts/at91-sama5d4_xplained.dt.yaml:0:0: /ahb/apb/ssc@f8008000: failed to match any schema with compatible: ['atmel,at91sam9g45-ssc']
arch/arm/boot/dts/at91-sama5d4_xplained.dt.yaml:0:0: /ahb/apb/pwm@f800c000: failed to match any schema with compatible: ['atmel,sama5d3-pwm']
arch/arm/boot/dts/at91-sama5d4_xplained.dt.yaml:0:0: /ahb/apb/spi@f8010000: failed to match any schema with compatible: ['atmel,at91rm9200-spi']
arch/arm/boot/dts/at91-sama5d4_xplained.dt.yaml:0:0: /ahb/apb/i2c@f8014000: failed to match any schema with compatible: ['atmel,sama5d4-i2c']
arch/arm/boot/dts/at91-sama5d4_xplained.dt.yaml:0:0: /ahb/apb/i2c@f8018000: failed to match any schema with compatible: ['atmel,sama5d4-i2c']
>> arch/arm/boot/dts/at91-sama5d4_xplained.dt.yaml: rv8803@32: $nodename:0: 'rv8803@32' does not match '^rtc(@.*|-[0-9a-f])*$'
From schema: Documentation/devicetree/bindings/rtc/epson,rx8900.yaml
>> arch/arm/boot/dts/at91-sama5d4_xplained.dt.yaml:0:0: /ahb/apb/i2c@f8018000/ds1307@68: failed to match any schema with compatible: ['dallas,ds1307']
>> arch/arm/boot/dts/at91-sama5d4_xplained.dt.yaml:0:0: /ahb/apb/i2c@f8018000/rv1805@69: failed to match any schema with compatible: ['microcrystal,rv1805']
>> arch/arm/boot/dts/at91-sama5d4_xplained.dt.yaml:0:0: /ahb/apb/i2c@f8018000/rtc@6f: failed to match any schema with compatible: ['microchip,mcp7941x']
arch/arm/boot/dts/at91-sama5d4_xplained.dt.yaml:0:0: /ahb/apb/ethernet@f8020000: failed to match any schema with compatible: ['atmel,sama5d4-gem']
arch/arm/boot/dts/at91-sama5d4_xplained.dt.yaml:0:0: /ahb/apb/i2c@f8024000: failed to match any schema with compatible: ['atmel,sama5d4-i2c']
arch/arm/boot/dts/at91-sama5d4_xplained.dt.yaml:0:0: /ahb/apb/sfr@f8028000: failed to match any schema with compatible: ['atmel,sama5d4-sfr', 'syscon']
arch/arm/boot/dts/at91-sama5d4_xplained.dt.yaml:0:0: /ahb/apb/serial@f802c000: failed to match any schema with compatible: ['atmel,at91sam9260-usart']
arch/arm/boot/dts/at91-sama5d4_xplained.dt.yaml:0:0: /ahb/apb/serial@f8030000: failed to match any schema with compatible: ['atmel,at91sam9260-usart']
arch/arm/boot/dts/at91-sama5d4_xplained.dt.yaml:0:0: /ahb/apb/mmc@fc000000: failed to match any schema with compatible: ['atmel,hsmci']
arch/arm/boot/dts/at91-sama5d4_xplained.dt.yaml:0:0: /ahb/apb/serial@fc004000: failed to match any schema with compatible: ['atmel,at91sam9260-usart']
arch/arm/boot/dts/at91-sama5d4_xplained.dt.yaml:0:0: /ahb/apb/serial@fc008000: failed to match any schema with compatible: ['atmel,at91sam9260-usart']
arch/arm/boot/dts/at91-sama5d4_xplained.dt.yaml:0:0: /ahb/apb/serial@fc00c000: failed to match any schema with compatible: ['atmel,at91sam9260-usart']
arch/arm/boot/dts/at91-sama5d4_xplained.dt.yaml:0:0: /ahb/apb/serial@fc010000: failed to match any schema with compatible: ['atmel,at91sam9260-usart']
arch/arm/boot/dts/at91-sama5d4_xplained.dt.yaml:0:0: /ahb/apb/ssc@fc014000: failed to match any schema with compatible: ['atmel,at91sam9g45-ssc']
arch/arm/boot/dts/at91-sama5d4_xplained.dt.yaml:0:0: /ahb/apb/spi@fc018000: failed to match any schema with compatible: ['atmel,at91rm9200-spi']
>> arch/arm/boot/dts/at91-sama5d4_xplained.dt.yaml:0:0: /ahb/apb/spi@fc018000/rtc@0: failed to match any schema with compatible: ['nxp,rtc-pcf2123']
arch/arm/boot/dts/at91-sama5d4_xplained.dt.yaml:0:0: /ahb/apb/spi@fc01c000: failed to match any schema with compatible: ['atmel,at91rm9200-spi']
arch/arm/boot/dts/at91-sama5d4_xplained.dt.yaml:0:0: /ahb/apb/ethernet@fc028000: failed to match any schema with compatible: ['atmel,sama5d4-gem']
arch/arm/boot/dts/at91-sama5d4_xplained.dt.yaml:0:0: /ahb/apb/trng@fc030000: failed to match any schema with compatible: ['atmel,at91sam9g45-trng']
arch/arm/boot/dts/at91-sama5d4_xplained.dt.yaml:0:0: /ahb/apb/aes@fc044000: failed to match any schema with compatible: ['atmel,at91sam9g46-aes']
arch/arm/boot/dts/at91-sama5d4_xplained.dt.yaml:0:0: /ahb/apb/tdes@fc04c000: failed to match any schema with compatible: ['atmel,at91sam9g46-tdes']
arch/arm/boot/dts/at91-sama5d4_xplained.dt.yaml:0:0: /ahb/apb/sha@fc050000: failed to match any schema with compatible: ['atmel,at91sam9g46-sha']
arch/arm/boot/dts/at91-sama5d4_xplained.dt.yaml:0:0: /ahb/apb/smc@fc05c000: failed to match any schema with compatible: ['atmel,sama5d3-smc', 'syscon', 'simple-mfd']
arch/arm/boot/dts/at91-sama5d4_xplained.dt.yaml:0:0: /ahb/apb/smc@fc05c000/ecc-engine@ffffc070: failed to match any schema with compatible: ['atmel,sama5d4-pmecc']
arch/arm/boot/dts/at91-sama5d4_xplained.dt.yaml:0:0: /ahb/apb/rstc@fc068600: failed to match any schema with compatible: ['atmel,sama5d3-rstc', 'atmel,at91sam9g45-rstc']
arch/arm/boot/dts/at91-sama5d4_xplained.dt.yaml:0:0: /ahb/apb/rstc@fc068600: failed to match any schema with compatible: ['atmel,sama5d3-rstc', 'atmel,at91sam9g45-rstc']
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
kernel/ptrace.c:425:26: sparse: sparse: incorrect type in assignment (different address spaces)
by kernel test robot
tree: https://github.com/0day-ci/linux/commits/UPDATE-20210712-014507/Bernd-Edl...
head: ae9cda8edea122ace72b822fb40607a4ce52d3d6
commit: ae9cda8edea122ace72b822fb40607a4ce52d3d6 exec: Fix dead-lock in de_thread with ptrace_attach
date: 12 hours ago
config: i386-randconfig-s002-20210711 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
# https://github.com/0day-ci/linux/commit/ae9cda8edea122ace72b822fb40607a4c...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review UPDATE-20210712-014507/Bernd-Edlinger/exec-Fix-dead-lock-in-de_thread-with-ptrace_attach/20210617-202441
git checkout ae9cda8edea122ace72b822fb40607a4ce52d3d6
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
kernel/ptrace.c:55:22: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/ptrace.c:55:22: sparse: struct task_struct *
kernel/ptrace.c:55:22: sparse: struct task_struct [noderef] __rcu *
kernel/ptrace.c:74:23: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct task_struct [noderef] __rcu *parent @@ got struct task_struct *new_parent @@
kernel/ptrace.c:74:23: sparse: expected struct task_struct [noderef] __rcu *parent
kernel/ptrace.c:74:23: sparse: got struct task_struct *new_parent
kernel/ptrace.c:75:29: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct cred const [noderef] __rcu *ptracer_cred @@ got struct cred const * @@
kernel/ptrace.c:75:29: sparse: expected struct cred const [noderef] __rcu *ptracer_cred
kernel/ptrace.c:75:29: sparse: got struct cred const *
kernel/ptrace.c:129:18: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct cred const *old_cred @@ got struct cred const [noderef] __rcu *ptracer_cred @@
kernel/ptrace.c:129:18: sparse: expected struct cred const *old_cred
kernel/ptrace.c:129:18: sparse: got struct cred const [noderef] __rcu *ptracer_cred
kernel/ptrace.c:133:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/ptrace.c:133:25: sparse: expected struct spinlock [usertype] *lock
kernel/ptrace.c:133:25: sparse: got struct spinlock [noderef] __rcu *
kernel/ptrace.c:171:27: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/ptrace.c:171:27: sparse: expected struct spinlock [usertype] *lock
kernel/ptrace.c:171:27: sparse: got struct spinlock [noderef] __rcu *
kernel/ptrace.c:198:28: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/ptrace.c:198:28: sparse: expected struct spinlock [usertype] *lock
kernel/ptrace.c:198:28: sparse: got struct spinlock [noderef] __rcu *
kernel/ptrace.c:204:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/ptrace.c:204:30: sparse: expected struct spinlock [usertype] *lock
kernel/ptrace.c:204:30: sparse: got struct spinlock [noderef] __rcu *
kernel/ptrace.c:214:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/ptrace.c:214:9: sparse: struct task_struct [noderef] __rcu *
kernel/ptrace.c:214:9: sparse: struct task_struct *
kernel/ptrace.c:259:44: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/ptrace.c:259:44: sparse: struct task_struct [noderef] __rcu *
kernel/ptrace.c:259:44: sparse: struct task_struct *
>> kernel/ptrace.c:425:26: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct cred const *old_cred @@ got struct cred const [noderef] __rcu *real_cred @@
kernel/ptrace.c:425:26: sparse: expected struct cred const *old_cred
kernel/ptrace.c:425:26: sparse: got struct cred const [noderef] __rcu *real_cred
kernel/ptrace.c:455:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/ptrace.c:455:24: sparse: expected struct spinlock [usertype] *lock
kernel/ptrace.c:455:24: sparse: got struct spinlock [noderef] __rcu *
kernel/ptrace.c:478:26: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/ptrace.c:478:26: sparse: expected struct spinlock [usertype] *lock
kernel/ptrace.c:478:26: sparse: got struct spinlock [noderef] __rcu *
kernel/ptrace.c:522:54: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct task_struct *parent @@ got struct task_struct [noderef] __rcu *parent @@
kernel/ptrace.c:522:54: sparse: expected struct task_struct *parent
kernel/ptrace.c:522:54: sparse: got struct task_struct [noderef] __rcu *parent
kernel/ptrace.c:530:53: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct task_struct *new_parent @@ got struct task_struct [noderef] __rcu *real_parent @@
kernel/ptrace.c:530:53: sparse: expected struct task_struct *new_parent
kernel/ptrace.c:530:53: sparse: got struct task_struct [noderef] __rcu *real_parent
kernel/ptrace.c:579:41: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct task_struct *p1 @@ got struct task_struct [noderef] __rcu *real_parent @@
kernel/ptrace.c:579:41: sparse: expected struct task_struct *p1
kernel/ptrace.c:579:41: sparse: got struct task_struct [noderef] __rcu *real_parent
kernel/ptrace.c:581:50: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct sighand_struct *sigh @@ got struct sighand_struct [noderef] __rcu *sighand @@
kernel/ptrace.c:581:50: sparse: expected struct sighand_struct *sigh
kernel/ptrace.c:581:50: sparse: got struct sighand_struct [noderef] __rcu *sighand
kernel/ptrace.c:783:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/ptrace.c:783:37: sparse: expected struct spinlock [usertype] *lock
kernel/ptrace.c:783:37: sparse: got struct spinlock [noderef] __rcu *
kernel/ptrace.c:791:39: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/ptrace.c:791:39: sparse: expected struct spinlock [usertype] *lock
kernel/ptrace.c:791:39: sparse: got struct spinlock [noderef] __rcu *
kernel/ptrace.c:914:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/ptrace.c:914:37: sparse: expected struct spinlock [usertype] *lock
kernel/ptrace.c:914:37: sparse: got struct spinlock [noderef] __rcu *
kernel/ptrace.c:918:39: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/ptrace.c:918:39: sparse: expected struct spinlock [usertype] *lock
kernel/ptrace.c:918:39: sparse: got struct spinlock [noderef] __rcu *
kernel/ptrace.c:1148:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/ptrace.c:1148:37: sparse: expected struct spinlock [usertype] *lock
kernel/ptrace.c:1148:37: sparse: got struct spinlock [noderef] __rcu *
kernel/ptrace.c:1150:39: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/ptrace.c:1150:39: sparse: expected struct spinlock [usertype] *lock
kernel/ptrace.c:1150:39: sparse: got struct spinlock [noderef] __rcu *
kernel/ptrace.c:528:38: sparse: sparse: dereference of noderef expression
kernel/ptrace.c: note: in included file (through include/linux/rcuwait.h, include/linux/percpu-rwsem.h, include/linux/fs.h, ...):
include/linux/sched/signal.h:727:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
include/linux/sched/signal.h:727:37: sparse: expected struct spinlock [usertype] *lock
include/linux/sched/signal.h:727:37: sparse: got struct spinlock [noderef] __rcu *
kernel/ptrace.c:730:9: sparse: sparse: context imbalance in 'ptrace_getsiginfo' - different lock contexts for basic block
include/linux/sched/signal.h:727:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
include/linux/sched/signal.h:727:37: sparse: expected struct spinlock [usertype] *lock
include/linux/sched/signal.h:727:37: sparse: got struct spinlock [noderef] __rcu *
kernel/ptrace.c:746:9: sparse: sparse: context imbalance in 'ptrace_setsiginfo' - different lock contexts for basic block
kernel/ptrace.c:920:9: sparse: sparse: context imbalance in 'ptrace_resume' - different lock contexts for basic block
include/linux/sched/signal.h:727:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
include/linux/sched/signal.h:727:37: sparse: expected struct spinlock [usertype] *lock
include/linux/sched/signal.h:727:37: sparse: got struct spinlock [noderef] __rcu *
include/linux/sched/signal.h:727:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
include/linux/sched/signal.h:727:37: sparse: expected struct spinlock [usertype] *lock
include/linux/sched/signal.h:727:37: sparse: got struct spinlock [noderef] __rcu *
kernel/ptrace.c:1302:9: sparse: sparse: context imbalance in 'ptrace_request' - different lock contexts for basic block
vim +425 kernel/ptrace.c
374
375 static int ptrace_attach(struct task_struct *task, long request,
376 unsigned long addr,
377 unsigned long flags)
378 {
379 bool seize = (request == PTRACE_SEIZE);
380 int retval;
381
382 retval = -EIO;
383 if (seize) {
384 if (addr != 0)
385 goto out;
386 if (flags & ~(unsigned long)PTRACE_O_MASK)
387 goto out;
388 flags = PT_PTRACED | PT_SEIZED | (flags << PT_OPT_FLAG_SHIFT);
389 } else {
390 flags = PT_PTRACED;
391 }
392
393 audit_ptrace(task);
394
395 retval = -EPERM;
396 if (unlikely(task->flags & PF_KTHREAD))
397 goto out;
398 if (same_thread_group(task, current))
399 goto out;
400
401 /*
402 * Protect exec's credential calculations against our interference;
403 * SUID, SGID and LSM creds get determined differently
404 * under ptrace.
405 */
406 retval = -ERESTARTNOINTR;
407 if (mutex_lock_interruptible(&task->signal->cred_guard_mutex))
408 goto out;
409
410 task_lock(task);
411 retval = __ptrace_may_access(task, PTRACE_MODE_ATTACH_REALCREDS);
412 task_unlock(task);
413 if (retval)
414 goto unlock_creds;
415
416 if (unlikely(task->in_execve)) {
417 struct linux_binprm *bprm = task->signal->exec_bprm;
418 const struct cred *old_cred;
419 struct mm_struct *old_mm;
420
421 retval = down_write_killable(&task->signal->exec_update_lock);
422 if (retval)
423 goto unlock_creds;
424 task_lock(task);
> 425 old_cred = task->real_cred;
426 old_mm = task->mm;
427 rcu_assign_pointer(task->real_cred, bprm->cred);
428 task->mm = bprm->mm;
429 retval = __ptrace_may_access(task, PTRACE_MODE_ATTACH_REALCREDS);
430 rcu_assign_pointer(task->real_cred, old_cred);
431 task->mm = old_mm;
432 task_unlock(task);
433 up_write(&task->signal->exec_update_lock);
434 if (retval)
435 goto unlock_creds;
436 }
437
438 write_lock_irq(&tasklist_lock);
439 retval = -EPERM;
440 if (unlikely(task->exit_state))
441 goto unlock_tasklist;
442 if (task->ptrace)
443 goto unlock_tasklist;
444
445 if (seize)
446 flags |= PT_SEIZED;
447 task->ptrace = flags;
448
449 ptrace_link(task, current);
450
451 /* SEIZE doesn't trap tracee on attach */
452 if (!seize)
453 send_sig_info(SIGSTOP, SEND_SIG_PRIV, task);
454
455 spin_lock(&task->sighand->siglock);
456
457 /*
458 * If the task is already STOPPED, set JOBCTL_TRAP_STOP and
459 * TRAPPING, and kick it so that it transits to TRACED. TRAPPING
460 * will be cleared if the child completes the transition or any
461 * event which clears the group stop states happens. We'll wait
462 * for the transition to complete before returning from this
463 * function.
464 *
465 * This hides STOPPED -> RUNNING -> TRACED transition from the
466 * attaching thread but a different thread in the same group can
467 * still observe the transient RUNNING state. IOW, if another
468 * thread's WNOHANG wait(2) on the stopped tracee races against
469 * ATTACH, the wait(2) may fail due to the transient RUNNING.
470 *
471 * The following task_is_stopped() test is safe as both transitions
472 * in and out of STOPPED are protected by siglock.
473 */
474 if (task_is_stopped(task) &&
475 task_set_jobctl_pending(task, JOBCTL_TRAP_STOP | JOBCTL_TRAPPING))
476 signal_wake_up_state(task, __TASK_STOPPED);
477
478 spin_unlock(&task->sighand->siglock);
479
480 retval = 0;
481 unlock_tasklist:
482 write_unlock_irq(&tasklist_lock);
483 unlock_creds:
484 mutex_unlock(&task->signal->cred_guard_mutex);
485 out:
486 if (!retval) {
487 /*
488 * We do not bother to change retval or clear JOBCTL_TRAPPING
489 * if wait_on_bit() was interrupted by SIGKILL. The tracer will
490 * not return to user-mode, it will exit and clear this bit in
491 * __ptrace_unlink() if it wasn't already cleared by the tracee;
492 * and until then nobody can ptrace this task.
493 */
494 wait_on_bit(&task->jobctl, JOBCTL_TRAPPING_BIT, TASK_KILLABLE);
495 proc_ptrace_connector(task, PTRACE_ATTACH);
496 }
497
498 return retval;
499 }
500
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months