hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/drivers/net/ethernet/ibm/emac/mal.h
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * drivers/net/ethernet/ibm/emac/mal.h
34 *
....@@ -14,12 +15,6 @@
1415 * Based on original work by
1516 * Armin Kuster <akuster@mvista.com>
1617 * Copyright 2002 MontaVista Softare Inc.
17
- *
18
- * This program is free software; you can redistribute it and/or modify it
19
- * under the terms of the GNU General Public License as published by the
20
- * Free Software Foundation; either version 2 of the License, or (at your
21
- * option) any later version.
22
- *
2318 */
2419 #ifndef __IBM_NEWEMAC_MAL_H
2520 #define __IBM_NEWEMAC_MAL_H
....@@ -136,7 +131,7 @@
136131
137132 static inline int mal_tx_chunks(int len)
138133 {
139
- return (len + MAL_MAX_TX_SIZE - 1) / MAL_MAX_TX_SIZE;
134
+ return DIV_ROUND_UP(len, MAL_MAX_TX_SIZE);
140135 }
141136
142137 #define MAL_CHAN_MASK(n) (0x80000000 >> (n))