mirror of
https://github.com/linux-msm/qdl.git
synced 2026-02-25 13:12:25 -08:00
sahara: address checkpatch issues
CHECK: Macro argument reuse 'x' - possible side-effects?
+#define MIN(x, y) ((x) < (y) ? (x) : (y))
CHECK: Macro argument reuse 'y' - possible side-effects?
+#define MIN(x, y) ((x) < (y) ? (x) : (y))
CHECK: line length of 123 exceeds 120 columns
+ ux_debug("%-2d: type 0x%" PRIx64 " address: 0x%" PRIx64 " length: 0x%" PRIx64 " region: %s filename: %s\
Signed-off-by: Igor Opaniuk <igor.opaniuk@oss.qualcomm.com>
This commit is contained in:
12
sahara.c
12
sahara.c
@@ -19,7 +19,11 @@
|
||||
#include "qdl.h"
|
||||
#include "oscompat.h"
|
||||
|
||||
#define MIN(x, y) ((x) < (y) ? (x) : (y))
|
||||
#define MIN(x, y) ({ \
|
||||
__typeof__(x) _x = (x); \
|
||||
__typeof__(y) _y = (y); \
|
||||
_x < _y ? _x : _y; \
|
||||
})
|
||||
|
||||
#define SAHARA_HELLO_CMD 0x1 /* Min protocol version 1.0 */
|
||||
#define SAHARA_HELLO_RESP_CMD 0x2 /* Min protocol version 1.0 */
|
||||
@@ -420,8 +424,10 @@ static void sahara_debug64(struct qdl_device *qdl, struct sahara_pkt *pkt,
|
||||
if (sahara_debug64_filter(table[i].filename, filter))
|
||||
continue;
|
||||
|
||||
ux_debug("%-2d: type 0x%" PRIx64 " address: 0x%" PRIx64 " length: 0x%" PRIx64 " region: %s filename: %s\n",
|
||||
i, table[i].type, table[i].addr, table[i].length, table[i].region, table[i].filename);
|
||||
ux_debug("%-2d: type 0x%" PRIx64 " address: 0x%" PRIx64 " length: 0x%"
|
||||
PRIx64 " region: %s filename: %s\n",
|
||||
i, table[i].type, table[i].addr, table[i].length,
|
||||
table[i].region, table[i].filename);
|
||||
|
||||
n = sahara_debug64_one(qdl, table[i], ramdump_path);
|
||||
if (n < 0)
|
||||
|
||||
Reference in New Issue
Block a user