Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d6ec0842 authored by Jens Axboe's avatar Jens Axboe
Browse files

Add CONFIG_DEBUG_SG sg validation



Add a Kconfig entry which will toggle some sanity checks on the sg
entry and tables.

Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent 18dabf47
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -5,6 +5,9 @@
#include <asm/types.h>
  
struct scatterlist {
#ifdef CONFIG_DEBUG_SG
	unsigned long sg_magic;
#endif
	unsigned long page_link;
	unsigned int offset;

+3 −0
Original line number Diff line number Diff line
@@ -5,6 +5,9 @@
#include <asm/types.h>

struct scatterlist {
#ifdef CONFIG_DEBUG_SG
	unsigned long	sg_magic;
#endif
	unsigned long	page_link;
	unsigned int	offset;		/* buffer offset		 */
	dma_addr_t	dma_address;	/* dma address			 */
+3 −0
Original line number Diff line number Diff line
@@ -4,6 +4,9 @@
#include <asm/types.h>

struct scatterlist {
#ifdef CONFIG_DEBUG_SG
   unsigned long	sg_magic;
#endif
    unsigned long	page_link;
    unsigned int	offset;
    dma_addr_t		dma_address;
+3 −0
Original line number Diff line number Diff line
@@ -4,6 +4,9 @@
#include <linux/mm.h>

struct scatterlist {
#ifdef CONFIG_DEBUG_SG
	unsigned long sg_magic;
#endif
	unsigned long page_link;
	unsigned int offset;
	dma_addr_t dma_address;
+3 −0
Original line number Diff line number Diff line
@@ -2,6 +2,9 @@
#define __ASM_CRIS_SCATTERLIST_H

struct scatterlist {
#ifdef CONFIG_DEBUG_SG
	unsigned long sg_magic;
#endif
	char *  address;    /* Location data is to be transferred to */
	unsigned int length;

Loading