Skip to content

Commit 3e49a10

Browse files
Tyler Retzlaffdavid-marchand
authored andcommitted
net/cxgbe: replace may_alias attribute
Use existing __rte_may_alias macro from rte_common.h instead of directly using __attribute__((__may_alias__)). Signed-off-by: Tyler Retzlaff <[email protected]> Reviewed-by: Morten Brørup <[email protected]> Reviewed-by: Potnuri Bharat Teja <[email protected]>
1 parent 0883d73 commit 3e49a10

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

drivers/net/cxgbe/base/common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ static inline unsigned int core_ticks_to_us(const struct adapter *adapter,
428428
int t4_wr_mbox_meat_timeout(struct adapter *adap, int mbox, const void *cmd,
429429
int size, void *rpl, bool sleep_ok, int timeout);
430430
int t4_wr_mbox_meat(struct adapter *adap, int mbox,
431-
const void __attribute__((__may_alias__)) *cmd, int size,
431+
const void __rte_may_alias *cmd, int size,
432432
void *rpl, bool sleep_ok);
433433

434434
static inline int t4_wr_mbox_timeout(struct adapter *adap, int mbox,

drivers/net/cxgbe/base/t4_hw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ static void fw_asrt(struct adapter *adap, u32 mbox_addr)
291291
* the return value is the error code indicated by FW (negated).
292292
*/
293293
int t4_wr_mbox_meat_timeout(struct adapter *adap, int mbox,
294-
const void __attribute__((__may_alias__)) *cmd,
294+
const void __rte_may_alias *cmd,
295295
int size, void *rpl, bool sleep_ok, int timeout)
296296
{
297297
/*

drivers/net/cxgbe/base/t4vf_hw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ static void get_mbox_rpl(struct adapter *adap, __be64 *rpl, int nflit,
6868
* the return value is the error code indicated by FW (negated).
6969
*/
7070
int t4vf_wr_mbox_core(struct adapter *adapter,
71-
const void __attribute__((__may_alias__)) *cmd,
71+
const void __rte_may_alias *cmd,
7272
int size, void *rpl, bool sleep_ok)
7373
{
7474
/*

0 commit comments

Comments
 (0)