linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] fix build failure of mn10300
@ 2015-06-16 12:46 Sudip Mukherjee
  2015-06-16 12:46 ` [PATCH 1/2] mn10300: fix build failure Sudip Mukherjee
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Sudip Mukherjee @ 2015-06-16 12:46 UTC (permalink / raw)
  To: David Howells; +Cc: linux-am33-list, linux-kernel, Sudip Mukherjee

Hi,
This is an attempt to fix the build failures when building mn10300 with
allmodconfig. It is still not completely fixed, but now atleast two
errors less than all the errors.

regards
sudip

Sudip Mukherjee (2):
  mn10300: fix build failure
  mn10300: Provide dummy dma_alloc_attrs() and dma_free_attrs()

 arch/mn10300/include/asm/dma-mapping.h | 13 +++++++++++++
 arch/mn10300/include/asm/kprobes.h     | 12 ++++++++++++
 2 files changed, 25 insertions(+)

-- 
1.8.1.2


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] mn10300: fix build failure
  2015-06-16 12:46 [PATCH 0/2] fix build failure of mn10300 Sudip Mukherjee
@ 2015-06-16 12:46 ` Sudip Mukherjee
  2015-06-16 12:46 ` [PATCH 2/2] mn10300: Provide dummy dma_alloc_attrs() and dma_free_attrs() Sudip Mukherjee
  2015-06-18 11:32 ` [PATCH 0/2] fix build failure of mn10300 Sudip Mukherjee
  2 siblings, 0 replies; 4+ messages in thread
From: Sudip Mukherjee @ 2015-06-16 12:46 UTC (permalink / raw)
  To: David Howells; +Cc: linux-am33-list, linux-kernel, Sudip Mukherjee

allmodconfig build fails with the error:
invalid use of undefined type 'struct kprobe_ctlblk'

just declared the two basic structures after checking the struct in other
architectures.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
---
 arch/mn10300/include/asm/kprobes.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/arch/mn10300/include/asm/kprobes.h b/arch/mn10300/include/asm/kprobes.h
index c800b59..c90d2b1 100644
--- a/arch/mn10300/include/asm/kprobes.h
+++ b/arch/mn10300/include/asm/kprobes.h
@@ -47,4 +47,16 @@ extern int kprobe_exceptions_notify(struct notifier_block *self,
 
 extern void arch_remove_kprobe(struct kprobe *p);
 
+struct prev_kprobe {
+	struct kprobe *kp;
+	unsigned long status;
+};
+
+struct kprobe_ctlblk {
+	unsigned int kprobe_status;
+	struct pt_regs jprobe_saved_regs;
+	char jprobes_stack[MAX_STACK_SIZE];
+	struct prev_kprobe prev_kprobe;
+};
+
 #endif /* _ASM_KPROBES_H */
-- 
1.8.1.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] mn10300: Provide dummy dma_alloc_attrs() and dma_free_attrs()
  2015-06-16 12:46 [PATCH 0/2] fix build failure of mn10300 Sudip Mukherjee
  2015-06-16 12:46 ` [PATCH 1/2] mn10300: fix build failure Sudip Mukherjee
@ 2015-06-16 12:46 ` Sudip Mukherjee
  2015-06-18 11:32 ` [PATCH 0/2] fix build failure of mn10300 Sudip Mukherjee
  2 siblings, 0 replies; 4+ messages in thread
From: Sudip Mukherjee @ 2015-06-16 12:46 UTC (permalink / raw)
  To: David Howells; +Cc: linux-am33-list, linux-kernel, Sudip Mukherjee

allmodconfig fails to build with following errors.

drivers/media/platform/sti/bdisp/bdisp-hw.c:
	In function 'bdisp_hw_free_nodes':
drivers/media/platform/sti/bdisp/bdisp-hw.c:132:3: error:
	implicit declaration of function 'dma_free_attrs'
	
drivers/media/platform/sti/bdisp/bdisp-hw.c:
	In function 'bdisp_hw_alloc_nodes':
drivers/media/platform/sti/bdisp/bdisp-hw.c:157:2: error:
	implicit declaration of function 'dma_alloc_attrs'

mn10300 does not provide those functions at this time.
Provide dummy implementations to avoid build errors.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
---

copied from https://lkml.org/lkml/2015/4/22/346

 arch/mn10300/include/asm/dma-mapping.h | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/arch/mn10300/include/asm/dma-mapping.h b/arch/mn10300/include/asm/dma-mapping.h
index a18abfc..d589c5e 100644
--- a/arch/mn10300/include/asm/dma-mapping.h
+++ b/arch/mn10300/include/asm/dma-mapping.h
@@ -183,4 +183,17 @@ static inline int dma_get_sgtable(struct device *dev, struct sg_table *sgt,
 	return -EINVAL;
 }
 
+static inline void *dma_alloc_attrs(struct device *dev, size_t size,
+				    dma_addr_t *dma_handle, gfp_t flag,
+				    struct dma_attrs *attrs)
+{
+	return NULL;
+}
+
+static inline void dma_free_attrs(struct device *dev, size_t size,
+				  void *vaddr, dma_addr_t dma_handle,
+				  struct dma_attrs *attrs)
+{
+}
+
 #endif
-- 
1.8.1.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/2] fix build failure of mn10300
  2015-06-16 12:46 [PATCH 0/2] fix build failure of mn10300 Sudip Mukherjee
  2015-06-16 12:46 ` [PATCH 1/2] mn10300: fix build failure Sudip Mukherjee
  2015-06-16 12:46 ` [PATCH 2/2] mn10300: Provide dummy dma_alloc_attrs() and dma_free_attrs() Sudip Mukherjee
@ 2015-06-18 11:32 ` Sudip Mukherjee
  2 siblings, 0 replies; 4+ messages in thread
From: Sudip Mukherjee @ 2015-06-18 11:32 UTC (permalink / raw)
  To: David Howells; +Cc: linux-am33-list, linux-kernel

On Tue, Jun 16, 2015 at 06:16:29PM +0530, Sudip Mukherjee wrote:
> Hi,
> This is an attempt to fix the build failures when building mn10300 with
> allmodconfig. It is still not completely fixed, but now atleast two
> errors less than all the errors.
please drop this series. I am sending v2 which completely fixes the
build failure.

regards
sudip

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-06-18 11:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-16 12:46 [PATCH 0/2] fix build failure of mn10300 Sudip Mukherjee
2015-06-16 12:46 ` [PATCH 1/2] mn10300: fix build failure Sudip Mukherjee
2015-06-16 12:46 ` [PATCH 2/2] mn10300: Provide dummy dma_alloc_attrs() and dma_free_attrs() Sudip Mukherjee
2015-06-18 11:32 ` [PATCH 0/2] fix build failure of mn10300 Sudip Mukherjee

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).