.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * ssi_protocol.c |
---|
3 | 4 | * |
---|
.. | .. |
---|
7 | 8 | * Copyright (C) 2013 Sebastian Reichel <sre@kernel.org> |
---|
8 | 9 | * |
---|
9 | 10 | * Contact: Carlos Chinea <carlos.chinea@nokia.com> |
---|
10 | | - * |
---|
11 | | - * This program is free software; you can redistribute it and/or |
---|
12 | | - * modify it under the terms of the GNU General Public License |
---|
13 | | - * version 2 as published by the Free Software Foundation. |
---|
14 | | - * |
---|
15 | | - * This program is distributed in the hope that it will be useful, but |
---|
16 | | - * WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
17 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
18 | | - * General Public License for more details. |
---|
19 | | - * |
---|
20 | | - * You should have received a copy of the GNU General Public License |
---|
21 | | - * along with this program; if not, write to the Free Software |
---|
22 | | - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA |
---|
23 | | - * 02110-1301 USA |
---|
24 | 11 | */ |
---|
25 | 12 | |
---|
26 | 13 | #include <linux/atomic.h> |
---|
.. | .. |
---|
194 | 181 | sg = sg_next(sg); |
---|
195 | 182 | BUG_ON(!sg); |
---|
196 | 183 | frag = &skb_shinfo(skb)->frags[i]; |
---|
197 | | - sg_set_page(sg, frag->page.p, frag->size, frag->page_offset); |
---|
| 184 | + sg_set_page(sg, skb_frag_page(frag), skb_frag_size(frag), |
---|
| 185 | + skb_frag_off(frag)); |
---|
198 | 186 | } |
---|
199 | 187 | } |
---|
200 | 188 | |
---|
.. | .. |
---|
303 | 291 | /* CMT speech workaround */ |
---|
304 | 292 | if (atomic_read(&ssi->tx_usecnt)) |
---|
305 | 293 | break; |
---|
306 | | - /* Otherwise fall through */ |
---|
| 294 | + fallthrough; |
---|
307 | 295 | case RECEIVING: |
---|
308 | 296 | mod_timer(&ssi->keep_alive, jiffies + |
---|
309 | 297 | msecs_to_jiffies(SSIP_KATOUT)); |
---|
.. | .. |
---|
478 | 466 | case SEND_READY: |
---|
479 | 467 | if (atomic_read(&ssi->tx_usecnt) == 0) |
---|
480 | 468 | break; |
---|
| 469 | + fallthrough; |
---|
481 | 470 | /* |
---|
482 | | - * Fall through. Workaround for cmt-speech |
---|
483 | | - * in that case we relay on audio timers. |
---|
| 471 | + * Workaround for cmt-speech in that case |
---|
| 472 | + * we relay on audio timers. |
---|
484 | 473 | */ |
---|
485 | 474 | case SEND_IDLE: |
---|
486 | 475 | spin_unlock(&ssi->lock); |
---|
.. | .. |
---|
679 | 668 | case ACTIVE: |
---|
680 | 669 | dev_err(&cl->device, "Boot info req on active state\n"); |
---|
681 | 670 | ssip_error(cl); |
---|
682 | | - /* Fall through */ |
---|
| 671 | + fallthrough; |
---|
683 | 672 | case INIT: |
---|
684 | 673 | case HANDSHAKE: |
---|
685 | 674 | spin_lock_bh(&ssi->lock); |
---|