* [PATCH 09/11] drivers/scsi: include <module.h> for modular ufshcd-pltfrm code
[not found] <1430444867-22342-1-git-send-email-paul.gortmaker@windriver.com>
@ 2015-05-01 1:47 ` Paul Gortmaker
2015-05-01 2:35 ` James Bottomley
0 siblings, 1 reply; 4+ messages in thread
From: Paul Gortmaker @ 2015-05-01 1:47 UTC (permalink / raw)
To: linux-kernel
Cc: Paul Gortmaker, Vinayak Holikatti, James E.J. Bottomley,
linux-scsi
This file is built off of a tristate Kconfig option and also contains
modular function calls so it should explicitly include module.h to
avoid compile breakage during header shuffles done in the future.
Cc: Vinayak Holikatti <vinholikatti@gmail.com>
Cc: "James E.J. Bottomley" <JBottomley@parallels.com>
Cc: linux-scsi@vger.kernel.org
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
---
drivers/scsi/ufs/ufshcd-pltfrm.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/scsi/ufs/ufshcd-pltfrm.c b/drivers/scsi/ufs/ufshcd-pltfrm.c
index 7db9564f507d..1c0bac8a7e4a 100644
--- a/drivers/scsi/ufs/ufshcd-pltfrm.c
+++ b/drivers/scsi/ufs/ufshcd-pltfrm.c
@@ -33,6 +33,7 @@
* this program.
*/
+#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/pm_runtime.h>
#include <linux/of.h>
--
2.2.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 09/11] drivers/scsi: include <module.h> for modular ufshcd-pltfrm code
2015-05-01 1:47 ` [PATCH 09/11] drivers/scsi: include <module.h> for modular ufshcd-pltfrm code Paul Gortmaker
@ 2015-05-01 2:35 ` James Bottomley
2015-05-01 13:37 ` Paul Gortmaker
0 siblings, 1 reply; 4+ messages in thread
From: James Bottomley @ 2015-05-01 2:35 UTC (permalink / raw)
To: Paul Gortmaker; +Cc: linux-kernel, Vinayak Holikatti, linux-scsi
On Thu, 2015-04-30 at 21:47 -0400, Paul Gortmaker wrote:
> This file is built off of a tristate Kconfig option and also contains
> modular function calls so it should explicitly include module.h to
> avoid compile breakage during header shuffles done in the future.
I don't understand your logic. The ufs code made a design choice to
consolidate most headers for the hcd code in a local include (ufshcd.h),
which includes module.h, so why would they explicitly need it here as
well? And if we follow your logic, why wouldn't they also need to
duplicate everything else (like the scsi includes)?
James
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 09/11] drivers/scsi: include <module.h> for modular ufshcd-pltfrm code
2015-05-01 2:35 ` James Bottomley
@ 2015-05-01 13:37 ` Paul Gortmaker
2015-05-01 13:43 ` James Bottomley
0 siblings, 1 reply; 4+ messages in thread
From: Paul Gortmaker @ 2015-05-01 13:37 UTC (permalink / raw)
To: James Bottomley; +Cc: linux-kernel, Vinayak Holikatti, linux-scsi
On 15-04-30 10:35 PM, James Bottomley wrote:
> On Thu, 2015-04-30 at 21:47 -0400, Paul Gortmaker wrote:
>> This file is built off of a tristate Kconfig option and also contains
>> modular function calls so it should explicitly include module.h to
>> avoid compile breakage during header shuffles done in the future.
>
> I don't understand your logic. The ufs code made a design choice to
> consolidate most headers for the hcd code in a local include (ufshcd.h),
> which includes module.h, so why would they explicitly need it here as
> well? And if we follow your logic, why wouldn't they also need to
> duplicate everything else (like the scsi includes)?
In my original build testing this file failed to compile once the
modular code was moved from init.h to module.h as per the description
in the 0/11.
Perhaps since that testing something else has changed. I will drop this
patch and retest and if it no longer fails, then great.
Paul.
--
>
> James
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 09/11] drivers/scsi: include <module.h> for modular ufshcd-pltfrm code
2015-05-01 13:37 ` Paul Gortmaker
@ 2015-05-01 13:43 ` James Bottomley
0 siblings, 0 replies; 4+ messages in thread
From: James Bottomley @ 2015-05-01 13:43 UTC (permalink / raw)
To: Paul Gortmaker; +Cc: linux-kernel, Vinayak Holikatti, linux-scsi
On Fri, 2015-05-01 at 09:37 -0400, Paul Gortmaker wrote:
> On 15-04-30 10:35 PM, James Bottomley wrote:
> > On Thu, 2015-04-30 at 21:47 -0400, Paul Gortmaker wrote:
> >> This file is built off of a tristate Kconfig option and also contains
> >> modular function calls so it should explicitly include module.h to
> >> avoid compile breakage during header shuffles done in the future.
> >
> > I don't understand your logic. The ufs code made a design choice to
> > consolidate most headers for the hcd code in a local include (ufshcd.h),
> > which includes module.h, so why would they explicitly need it here as
> > well? And if we follow your logic, why wouldn't they also need to
> > duplicate everything else (like the scsi includes)?
>
> In my original build testing this file failed to compile once the
> modular code was moved from init.h to module.h as per the description
> in the 0/11.
Just as a point of principle, you didn't send the 0/11 patch, so I only
have this one to go by.
> Perhaps since that testing something else has changed. I will drop this
> patch and retest and if it no longer fails, then great.
Sounds good.
James
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-05-01 13:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1430444867-22342-1-git-send-email-paul.gortmaker@windriver.com>
2015-05-01 1:47 ` [PATCH 09/11] drivers/scsi: include <module.h> for modular ufshcd-pltfrm code Paul Gortmaker
2015-05-01 2:35 ` James Bottomley
2015-05-01 13:37 ` Paul Gortmaker
2015-05-01 13:43 ` James Bottomley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).