Hi Avnish,

On Thu, May 29, 2025 at 11:59:27AM +0530, Avnish Chouhan wrote:
> Hi Daniel,
>
> I believe we need this change. We are using this function
> "of_path_get_nvme_nsid" in the patch which is defined in other file, and
> this "of_path_get_nvme_nsid" calls the function
> "block_device_get_sysfs_path_and_link". If we don't define this in the
> header file, we get this error below.
> Thank you!
>
> *****
>
> In file included from grub-core/osdep/ofpath.c:2:
> grub-core/osdep/linux/ofpath.c:228:1: error: no previous prototype for
> ‘block_device_get_sysfs_path_and_link’ [-Werror=missing-prototypes]
>   228 | block_device_get_sysfs_path_and_link(const char *devicenode)
>       | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

If you drop both changes then everything should be OK.

Daniel

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to