Repository navigation
Commit 4ea7b0c
net/skbuff: fix up kernel-doc placement
There are several skb_* functions where the locked and unlocked
functions are confusingly documented. For several of them, the
kernel-doc for the unlocked version is placed above the locked version,
which to the casual reader makes it seems like the locked version "takes
no locks and you must therefore hold required locks before calling it."
One can see, for example, that this link claims to document
skb_queue_head(), while instead describing __skb_queue_head().
https://www.kernel.org/doc/html/latest/networking/kapi.html#c.skb_queue_head
The correct documentation for skb_queue_head() is also included further
down the page.
This diff tested via:
$ scripts/kernel-doc -rst include/linux/skbuff.h net/core/skbuff.c
No new warnings were seen, and the output makes a little more sense.
Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 317d8e2 commit 4ea7b0c
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1889 | 1889 | | |
1890 | 1890 | | |
1891 | 1891 | | |
1892 | | - | |
1893 | 1892 | | |
1894 | 1893 | | |
1895 | 1894 | | |
1896 | 1895 | | |
1897 | 1896 | | |
| 1897 | + | |
1898 | 1898 | | |
1899 | 1899 | | |
1900 | 1900 | | |
| |||
1906 | 1906 | | |
1907 | 1907 | | |
1908 | 1908 | | |
1909 | | - | |
1910 | 1909 | | |
1911 | 1910 | | |
1912 | 1911 | | |
1913 | 1912 | | |
1914 | 1913 | | |
| 1914 | + | |
1915 | 1915 | | |
1916 | 1916 | | |
1917 | 1917 | | |
| |||
1938 | 1938 | | |
1939 | 1939 | | |
1940 | 1940 | | |
1941 | | - | |
1942 | 1941 | | |
1943 | 1942 | | |
1944 | 1943 | | |
1945 | 1944 | | |
1946 | 1945 | | |
1947 | 1946 | | |
1948 | 1947 | | |
| 1948 | + | |
1949 | 1949 | | |
1950 | 1950 | | |
1951 | 1951 | | |
| |||
1955 | 1955 | | |
1956 | 1956 | | |
1957 | 1957 | | |
1958 | | - | |
1959 | 1958 | | |
1960 | 1959 | | |
1961 | 1960 | | |
1962 | 1961 | | |
1963 | 1962 | | |
1964 | 1963 | | |
1965 | 1964 | | |
| 1965 | + | |
1966 | 1966 | | |
1967 | 1967 | | |
1968 | 1968 | | |
| |||
2653 | 2653 | | |
2654 | 2654 | | |
2655 | 2655 | | |
2656 | | - | |
2657 | 2656 | | |
2658 | 2657 | | |
2659 | 2658 | | |
2660 | 2659 | | |
2661 | 2660 | | |
2662 | 2661 | | |
| 2662 | + | |
2663 | 2663 | | |
2664 | 2664 | | |
2665 | 2665 | | |
| |||
3028 | 3028 | | |
3029 | 3029 | | |
3030 | 3030 | | |
3031 | | - | |
| 3031 | + | |
3032 | 3032 | | |
3033 | 3033 | | |
3034 | 3034 | | |
| |||
0 commit comments