soc: qcom: Rename ice to qcom-ice to avoid module name conflict
PATCH 1/1 soc: qcom: Rename ice to qcom-ice to avoid module name conflict
The following error was reported when building x86_64 allmodconfig:
error: the following would cause module name conflict:
drivers/soc/qcom/ice.ko drivers/net/ethernet/intel/ice/ice.ko
Seems the 'ice' module name is already used by some Intel ethernet driver, so lets rename the Qualcomm Inline Crypto Engine (ICE) from 'ice' to 'qcom-ice' to avoid any kind of errors/confusions.
---
The build failure was reported here:
https://lore.kernel.org/all/[email protected]/
drivers/soc/qcom/Makefile | 2 +-
drivers/soc/qcom/{ice.c => qcom-ice.c} | 0
2 files changed, 1 insertion(+), 1 deletion(-)
rename drivers/soc/qcom/{ice.c => qcom-ice.c} (100%)drivers/soc/qcom/Makefile +1 -1
@@ -32,4 +32,4 @@ obj-$(CONFIG_QCOM_RPMHPD) += rpmhpd.o obj-$(CONFIG_QCOM_RPMPD) += rpmpd.o obj-$(CONFIG_QCOM_KRYO_L2_ACCESSORS) += kryo-l2-accessors.o obj-$(CONFIG_QCOM_ICC_BWMON) += icc-bwmon.o -obj-$(CONFIG_QCOM_INLINE_CRYPTO_ENGINE) += ice.o +obj-$(CONFIG_QCOM_INLINE_CRYPTO_ENGINE) += qcom-ice.o
drivers/soc/qcom/qcom-ice.c renamed from drivers/soc/qcom/ice.c +0 -0
Signature · 1 line
2.34.1
Quoted 15 lines · Abel Vesa
The following error was reported when building
x86_64allmodconfig:error: the following would cause module name conflict:
drivers/soc/qcom/ice.kodrivers/net/ethernet/intel/ice/ice.koSeems the 'ice' module name is already used by some Intel ethernet driver, so lets rename the Qualcomm Inline Crypto Engine (ICE) from 'ice' to 'qcom-ice' to avoid any kind of errors/confusions.
Reported-by Stephen Rothwell <[email protected]>Fixes 2afbf43a4aec ("soc: qcom: Make the Qualcomm UFS/SDCC ICE a dedicated driver")Signed-off-by Abel Vesa <[email protected]>---
Quoted 8 lines
The build failure was reported here:
https://lore.kernel.org/all/[email protected]/drivers/soc/qcom/Makefile | 2 +- drivers/soc/qcom/{ice.c => qcom-ice.c} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename drivers/soc/qcom/{ice.c => qcom-ice.c} (100%)
You can just rename the module name to "qcom-ice" and still keep the driver name as "ice" as it is already under "qcom" subdirectory.
We do it for other drivers as well.
- Mani
Quoted 17 lines
drivers/soc/qcom/Makefile +1
-1@@ -32,4 +32,4 @@ obj-$(CONFIG_QCOM_RPMHPD) += rpmhpd.o obj-$(CONFIG_QCOM_RPMPD) += rpmpd.o obj-$(CONFIG_QCOM_KRYO_L2_ACCESSORS) += kryo-l2-accessors.o obj-$(CONFIG_QCOM_ICC_BWMON) += icc-bwmon.o -obj-$(CONFIG_QCOM_INLINE_CRYPTO_ENGINE) += ice.o +obj-$(CONFIG_QCOM_INLINE_CRYPTO_ENGINE) += qcom-ice.odrivers/soc/qcom/qcom-ice.c renamed from drivers/soc/qcom/ice.c +0
-0Signature · 1 line
2.34.1
Signature · 1 line
மணிவண்ணன் சதாசிவம்
Quoted 25 lines · Manivannan Sadhasivam
Quoted 15 lines · Abel Vesa
The following error was reported when building
x86_64allmodconfig:error: the following would cause module name conflict:
drivers/soc/qcom/ice.kodrivers/net/ethernet/intel/ice/ice.koSeems the 'ice' module name is already used by some Intel ethernet driver, so lets rename the Qualcomm Inline Crypto Engine (ICE) from 'ice' to 'qcom-ice' to avoid any kind of errors/confusions.
Reported-by Stephen Rothwell <[email protected]>Fixes 2afbf43a4aec ("soc: qcom: Make the Qualcomm UFS/SDCC ICE a dedicated driver")Signed-off-by Abel Vesa <[email protected]>---
Quoted 8 lines
The build failure was reported here:
https://lore.kernel.org/all/[email protected]/drivers/soc/qcom/Makefile | 2 +- drivers/soc/qcom/{ice.c => qcom-ice.c} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename drivers/soc/qcom/{ice.c => qcom-ice.c} (100%)
Quoted 4 lines
You can just rename the module name to "qcom-ice" and still keep the driver name as "ice" as it is already under "qcom" subdirectory.
We do it for other drivers as well.
Yes, but in this case, it is not worth keeping the file name as is.
I'll send another version of this patch with the filename as qcom_ice.c in order to be inline with the other ones.
Quoted 23 lines
- Mani
Quoted 17 lines
drivers/soc/qcom/Makefile +1
-1@@ -32,4 +32,4 @@ obj-$(CONFIG_QCOM_RPMHPD) += rpmhpd.o obj-$(CONFIG_QCOM_RPMPD) += rpmpd.o obj-$(CONFIG_QCOM_KRYO_L2_ACCESSORS) += kryo-l2-accessors.o obj-$(CONFIG_QCOM_ICC_BWMON) += icc-bwmon.o -obj-$(CONFIG_QCOM_INLINE_CRYPTO_ENGINE) += ice.o +obj-$(CONFIG_QCOM_INLINE_CRYPTO_ENGINE) += qcom-ice.odrivers/soc/qcom/qcom-ice.c renamed from drivers/soc/qcom/ice.c +0
-0Signature · 1 line
2.34.1Signature · 1 line
மணிவண்ணன் சதாசிவம்
Quoted 26 lines · Abel Vesa
Quoted 25 lines · Manivannan Sadhasivam
Quoted 23 lines · Abel Vesa
The following error was reported when building
x86_64allmodconfig:error: the following would cause module name conflict:
drivers/soc/qcom/ice.kodrivers/net/ethernet/intel/ice/ice.koSeems the 'ice' module name is already used by some Intel ethernet driver, so lets rename the Qualcomm Inline Crypto Engine (ICE) from 'ice' to 'qcom-ice' to avoid any kind of errors/confusions.
Reported-by Stephen Rothwell <[email protected]>Fixes 2afbf43a4aec ("soc: qcom: Make the Qualcomm UFS/SDCC ICE a dedicated driver")Signed-off-by Abel Vesa <[email protected]>---
The build failure was reported here:
https://lore.kernel.org/all/[email protected]/drivers/soc/qcom/Makefile | 2 +- drivers/soc/qcom/{ice.c => qcom-ice.c} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename drivers/soc/qcom/{ice.c => qcom-ice.c} (100%)
Quoted 7 lines
Quoted 4 lines
You can just rename the module name to "qcom-ice" and still keep the driver name as "ice" as it is already under "qcom" subdirectory.
We do it for other drivers as well.
Yes, but in this case, it is not worth keeping the file name as is.
Since you already have "qcom" as the parent directory name, I don't know how adding "qcom" prefix for the drivers in child directory helps. It is required for the module name but not for the driver name.
If you look at current qcom soc drivers, then most of them are without prefix but _some_ are with prefix. And the later ones doesn't make sense to me,
But I'll leave it to Bjorn to take the call.
- Mani
Quoted 26 lines
I'll send another version of this patch with the filename as
qcom_ice.cin order to be inline with the other ones.Quoted 23 lines
- Mani
Quoted 17 lines
drivers/soc/qcom/Makefile +1
-1@@ -32,4 +32,4 @@ obj-$(CONFIG_QCOM_RPMHPD) += rpmhpd.o obj-$(CONFIG_QCOM_RPMPD) += rpmpd.o obj-$(CONFIG_QCOM_KRYO_L2_ACCESSORS) += kryo-l2-accessors.o obj-$(CONFIG_QCOM_ICC_BWMON) += icc-bwmon.o -obj-$(CONFIG_QCOM_INLINE_CRYPTO_ENGINE) += ice.o +obj-$(CONFIG_QCOM_INLINE_CRYPTO_ENGINE) += qcom-ice.odrivers/soc/qcom/qcom-ice.c renamed from drivers/soc/qcom/ice.c +0
-0Signature · 1 line
2.34.1Signature · 1 line
மணிவண்ணன் சதாசிவம்
Signature · 1 line
மணிவண்ணன் சதாசிவம்