pdr: Stabilise pldm_entity_association_pdr_add_check()

Having done so, also deprecate pldm_entity_association_pdr_add().

Use of pldm_entity_association_pdr_add_check() is demonstrated here:

https://gerrit.openbmc.org/c/openbmc/pldm/+/65040

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I48dc71078d54685992b152fb3c37fbd8e247ece0
diff --git a/abi/aarch64/gcc.dump b/abi/aarch64/gcc.dump
index 783e483..6c5f01a 100644
--- a/abi/aarch64/gcc.dump
+++ b/abi/aarch64/gcc.dump
@@ -6307,6 +6307,29 @@
                                          'Return' => '74',
                                          'ShortName' => 'pldm_entity_association_pdr_add_from_node_check'
                                        },
+                            '79909' => {
+                                         'Header' => 'pdr.h',
+                                         'Param' => {
+                                                      '0' => {
+                                                               'name' => 'tree',
+                                                               'type' => '77608'
+                                                             },
+                                                      '1' => {
+                                                               'name' => 'repo',
+                                                               'type' => '78894'
+                                                             },
+                                                      '2' => {
+                                                               'name' => 'is_remote',
+                                                               'type' => '6265'
+                                                             },
+                                                      '3' => {
+                                                               'name' => 'terminus_handle',
+                                                               'type' => '4895'
+                                                             }
+                                                    },
+                                         'Return' => '74',
+                                         'ShortName' => 'pldm_entity_association_pdr_add_check'
+                                       },
                             '80062' => {
                                          'Header' => 'pdr.h',
                                          'Param' => {
@@ -7519,6 +7542,7 @@
                                                  'pldm_bios_table_string_find_by_handle' => 1,
                                                  'pldm_bios_table_string_find_by_string' => 1,
                                                  'pldm_entity_association_pdr_add' => 1,
+                                                 'pldm_entity_association_pdr_add_check' => 1,
                                                  'pldm_entity_association_pdr_add_from_node_check' => 1,
                                                  'pldm_entity_association_pdr_extract' => 1,
                                                  'pldm_entity_association_tree_add' => 1,
diff --git a/abi/x86_64/gcc.dump b/abi/x86_64/gcc.dump
index 4cd6050..3f0819b 100644
--- a/abi/x86_64/gcc.dump
+++ b/abi/x86_64/gcc.dump
@@ -6816,6 +6816,29 @@
                                          'Return' => '74',
                                          'ShortName' => 'pldm_entity_association_pdr_add_from_node_check'
                                        },
+                            '81115' => {
+                                         'Header' => 'pdr.h',
+                                         'Param' => {
+                                                      '0' => {
+                                                               'name' => 'tree',
+                                                               'type' => '78780'
+                                                             },
+                                                      '1' => {
+                                                               'name' => 'repo',
+                                                               'type' => '80103'
+                                                             },
+                                                      '2' => {
+                                                               'name' => 'is_remote',
+                                                               'type' => '6423'
+                                                             },
+                                                      '3' => {
+                                                               'name' => 'terminus_handle',
+                                                               'type' => '5053'
+                                                             }
+                                                    },
+                                         'Return' => '74',
+                                         'ShortName' => 'pldm_entity_association_pdr_add_check'
+                                       },
                             '81275' => {
                                          'Header' => 'pdr.h',
                                          'Param' => {
@@ -8023,6 +8046,7 @@
                                                  'pldm_bios_table_string_find_by_handle' => 1,
                                                  'pldm_bios_table_string_find_by_string' => 1,
                                                  'pldm_entity_association_pdr_add' => 1,
+                                                 'pldm_entity_association_pdr_add_check' => 1,
                                                  'pldm_entity_association_pdr_add_from_node_check' => 1,
                                                  'pldm_entity_association_pdr_extract' => 1,
                                                  'pldm_entity_association_tree_add' => 1,
diff --git a/src/pdr.c b/src/pdr.c
index 23044a9..1a8c80b 100644
--- a/src/pdr.c
+++ b/src/pdr.c
@@ -908,7 +908,7 @@
 					  terminus_handle, record_handle);
 }
 
-LIBPLDM_ABI_STABLE
+LIBPLDM_ABI_DEPRECATED
 void pldm_entity_association_pdr_add(pldm_entity_association_tree *tree,
 				     pldm_pdr *repo, bool is_remote,
 				     uint16_t terminus_handle)
@@ -919,7 +919,7 @@
 	assert(!rc);
 }
 
-LIBPLDM_ABI_TESTING
+LIBPLDM_ABI_STABLE
 int pldm_entity_association_pdr_add_check(pldm_entity_association_tree *tree,
 					  pldm_pdr *repo, bool is_remote,
 					  uint16_t terminus_handle)