Commit dc390d8
mm-convert-totalram_pages-and-totalhigh_pages-variables-to-atomic-checkpatch-fixes
WARNING: 'lenght' may be misspelled - perhaps 'length'?
#7:
things. It was discussed in lenght here,
WARNING: line over 80 characters
torvalds#252: FILE: drivers/md/dm-crypt.c:2161:
+ unsigned long pages = (totalram_pages() - totalhigh_pages()) * DM_CRYPT_MEMORY_PERCENT / 100;
WARNING: line over 80 characters
torvalds#263: FILE: drivers/md/dm-integrity.c:2846:
+ if (journal_pages >= totalram_pages() - totalhigh_pages() || journal_desc_size > ULONG_MAX) {
WARNING: line over 80 characters
torvalds#307: FILE: drivers/parisc/ccio-dma.c:1254:
+ iova_space_size = (u32) (totalram_pages() / count_parisc_driver(&ccio_driver));
WARNING: please, no spaces at the start of a line
torvalds#472: FILE: include/linux/highmem.h:47:
+ atomic_long_inc(&_totalhigh_pages);$
WARNING: please, no spaces at the start of a line
torvalds#477: FILE: include/linux/highmem.h:52:
+ atomic_long_dec(&_totalhigh_pages);$
WARNING: please, no spaces at the start of a line
torvalds#482: FILE: include/linux/highmem.h:57:
+ atomic_long_add(count, &_totalhigh_pages);$
WARNING: please, no spaces at the start of a line
torvalds#487: FILE: include/linux/highmem.h:62:
+ atomic_long_set(&_totalhigh_pages, val);$
WARNING: please, no spaces at the start of a line
torvalds#511: FILE: include/linux/mm.h:54:
+ return (unsigned long)atomic_long_read(&_totalram_pages);$
WARNING: please, no spaces at the start of a line
torvalds#516: FILE: include/linux/mm.h:59:
+ atomic_long_inc(&_totalram_pages);$
WARNING: please, no spaces at the start of a line
torvalds#521: FILE: include/linux/mm.h:64:
+ atomic_long_dec(&_totalram_pages);$
WARNING: please, no spaces at the start of a line
torvalds#526: FILE: include/linux/mm.h:69:
+ atomic_long_add(count, &_totalram_pages);$
WARNING: please, no spaces at the start of a line
torvalds#531: FILE: include/linux/mm.h:74:
+ atomic_long_set(&_totalram_pages, val);$
WARNING: line over 80 characters
torvalds#722: FILE: mm/page_alloc.c:7288:
+ (physpages - totalram_pages() - totalcma_pages) << (PAGE_SHIFT - 10),
WARNING: Missing a blank line after declarations
torvalds#745: FILE: mm/shmem.c:118:
+ unsigned long nr_pages = totalram_pages();
+ return min(nr_pages - totalhigh_pages(), nr_pages / 2);
total: 0 errors, 15 warnings, 656 lines checked
NOTE: For some of the reported defects, checkpatch may be able to
mechanically convert to the typical style using --fix or --fix-inplace.
./patches/mm-convert-totalram_pages-and-totalhigh_pages-variables-to-atomic.patch has style problems, please review.
NOTE: If any of the errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.
Please run checkpatch prior to sending patches
Cc: Arun KS <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Stephen Rothwell <[email protected]>1 parent cf6f20f commit dc390d8
3 files changed
+10
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
| |||
0 commit comments