identities: add dect_ari_cmp()
Already contained in the header files, but never implemented. Signed-off-by: Patrick McHardy <kaber@trash.net>
This commit is contained in:
parent
582a7d50c7
commit
ab0a2a6afa
|
@ -145,7 +145,6 @@ struct dect_ops {
|
|||
extern struct dect_handle *dect_open_handle(struct dect_ops *ops,
|
||||
const char *cluster);
|
||||
extern void dect_close_handle(struct dect_handle *dh);
|
||||
|
||||
extern void *dect_handle_priv(struct dect_handle *dh);
|
||||
|
||||
extern void dect_pp_set_ipui(struct dect_handle *dh,
|
||||
|
|
|
@ -122,6 +122,12 @@ uint64_t dect_build_ari(const struct dect_ari *ari)
|
|||
return a;
|
||||
}
|
||||
|
||||
bool dect_ari_cmp(const struct dect_ari *ari1, const struct dect_ari *ari2)
|
||||
{
|
||||
return memcmp(ari1, ari2, sizeof(*ari1));
|
||||
}
|
||||
EXPORT_SYMBOL(dect_ari_cmp);
|
||||
|
||||
static void dect_dump_ipei(const struct dect_ipei *ipei)
|
||||
{
|
||||
sfmt_debug("\tEMC: %.4x\n", ipei->emc);
|
||||
|
|
Reference in New Issue