[PATCH v2] gpu: host1x: Fix compiler errors by converting to dma_addr_t

2018-05-17 Thread Emil Goode
to dma_alloc_wc(). Also check pb->mapped for non-NULL in the destroy function as that is the right way of checking if dma_alloc_wc() was successful. Signed-off-by: Emil Goode <emil@goode.io> --- v2: - Change the phys member type instead of adding casts. - Check pb->mapped in the destroy f

Re: [PATCH] gpu: host1x: Fix compiler errors

2018-05-16 Thread Emil Goode
Hello, On Mon, May 14, 2018 at 10:43:08AM +0200, Thierry Reding wrote: > On Mon, Mar 26, 2018 at 04:44:14PM +0200, Emil Goode wrote: > > The compiler is complaining with the following errors: > > > > drivers/gpu/host1x/cdma.c:94:48: error: > > passing argume

[PATCH] gpu: host1x: Fix compiler errors

2018-03-27 Thread Emil Goode
of ‘dma_alloc_wc’ from incompatible pointer type [-Werror=incompatible-pointer-types] The expected pointer type of the third argument to dma_alloc_wc() is dma_addr_t but phys_addr_t is passed. Fix this by adding casts to the expected pointer type. Signed-off-by: Emil Goode <emil@goode

Re: [PATCH] gpu: host1x: Fix compiler errors

2018-03-27 Thread Emil Goode
Hello, On Mon, Mar 26, 2018 at 04:57:34PM +0200, Thierry Reding wrote: > On Mon, Mar 26, 2018 at 04:44:14PM +0200, Emil Goode wrote: > > The compiler is complaining with the following errors: > > > > drivers/gpu/host1x/cdma.c:94:48: error: > > passing argume

[PATCH v2 1/3] drm/tegra: Relicense public header under MIT

2014-02-20 Thread Emil Goode
A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL > + * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR > + * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, > + * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR > + * OTHER DEALINGS IN THE SOFTWARE. > */ My contribution was tiny, otherwise I prefer GPL over MIT :) Acked-by: Emil Goode Best regards, Emil

Re: [PATCH] drm/tegra: Include header drm/drm.h

2013-04-28 Thread Emil Goode
/drm.h instead. Best regards, Emil Goode On Fri, Apr 26, 2013 at 09:22:08PM +0200, Thierry Reding wrote: On Fri, Apr 26, 2013 at 07:49:51PM +0200, Emil Goode wrote: Include definitions of used types by including drm/drm.h Sparse output: /usr/include/drm/tegra_drm.h:21: found __[us

[PATCH] drm/tegra: Include header drm/drm.h

2013-04-27 Thread Emil Goode
cludes drm/drm.h instead. Best regards, Emil Goode On Fri, Apr 26, 2013 at 09:22:08PM +0200, Thierry Reding wrote: > On Fri, Apr 26, 2013 at 07:49:51PM +0200, Emil Goode wrote: > > Include definitions of used types by including drm/drm.h > > > > Sparse output: >

[PATCH] drm/tegra: Include header drm/drm.h

2013-04-27 Thread Emil Goode
Include definitions of used types by including drm/drm.h Sparse output: /usr/include/drm/tegra_drm.h:21: found __[us]{8,16,32,64} type without #include linux/types.h Signed-off-by: Emil Goode emilgo...@gmail.com --- include/uapi/drm/tegra_drm.h |2 ++ 1 file changed, 2

[PATCH] drm/tegra: Include header drm/drm.h

2013-04-26 Thread Emil Goode
Include definitions of used types by including drm/drm.h Sparse output: /usr/include/drm/tegra_drm.h:21: found __[us]{8,16,32,64} type without #include Signed-off-by: Emil Goode --- include/uapi/drm/tegra_drm.h |2 ++ 1 file changed, 2 insertions(+) diff --git a/include

[PATCH] gma500: Remove unused variable

2012-09-06 Thread Emil Goode
This patch removes a unused struct psb_intel_connector Sparse gives a warning: drivers/gpu/drm/gma500/cdv_intel_hdmi.c:142:30: warning: unused variable ?psb_intel_connector? [-Wunused-variable] Signed-off-by: Emil Goode --- drivers/gpu/drm/gma500/cdv_intel_hdmi.c |2 -- 1 file

[PATCH] gma500: Remove unused variable

2012-09-06 Thread Emil Goode
This patch removes a unused struct psb_intel_connector Sparse gives a warning: drivers/gpu/drm/gma500/cdv_intel_hdmi.c:142:30: warning: unused variable ‘psb_intel_connector’ [-Wunused-variable] Signed-off-by: Emil Goode emilgo...@gmail.com --- drivers/gpu/drm/gma500/cdv_intel_hdmi.c

[PATCH] drm/exynos: Include missing linux/types.h in header

2012-05-10 Thread Emil Goode
Include the linux/types.h file where used types are declared. Sparse gives the following warning: /usr/include/drm/exynos_drm.h:92: found __[us]{8,16,32,64} type without #include Signed-off-by: Emil Goode --- include/drm/exynos_drm.h |2 ++ 1 file changed, 2 insertions

[PATCH] drm/exynos: Include missing linux/types.h in header

2012-05-10 Thread Emil Goode
Include the linux/types.h file where used types are declared. Sparse gives the following warning: /usr/include/drm/exynos_drm.h:92: found __[us]{8,16,32,64} type without #include linux/types.h Signed-off-by: Emil Goode emilgo...@gmail.com --- include/drm/exynos_drm.h |2