Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2155397imd; Sun, 28 Oct 2018 04:16:52 -0700 (PDT) X-Google-Smtp-Source: AJdET5cLeX+xZEDOgoydx7XaCSZ188TDkrUtj0OxqMoekPvcNApaeoLrCyjKJMvCy/uS/RQUhhjA X-Received: by 2002:a17:902:8d88:: with SMTP id v8-v6mr10138200plo.21.1540725412149; Sun, 28 Oct 2018 04:16:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540725412; cv=none; d=google.com; s=arc-20160816; b=bf5PnwdQu+6WOOYvcEiyVClBzeNJBYIJCrQDqOvFDP2qnKW/ljAj/1XRQYB6E6q0CB RQoSzL4cXc5Ddmo5j7WZsJqLli4LxoPtuLWi/FNU/iStm8Ro0Vxcm9HLw/AAKJ2MJ8+m lPP2YbkQ+HBbIqg4g3Jh8jIecQXhc5yW+7qNUu+xASUNgii1jLPlYwXMAbwD5A9ls5Aq drfL9MG7RgF3igNvBrTxUkh0rR/tqirk+KWCMTixa72ykXC1iQHimunidhsCa5E169ov e2BmQIj7Ri4lqYuYYW6NXnugY9YvGjpX+YB3RWkXcXOmA4wUxmIAvtojzvyHpeDvfcwB ToAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=1bZhArkoqMIuKaNEK+cqsIteiW5Npk6lXBmRec8doAQ=; b=qUC+9g6ujLVK+fOeZQALBGys1Q1FZRL1GYs93croMAiYpKisKN8MtCDTbJ0Tx3EUT7 5eKl6uj6vdFmUhTbZhBfKWstfqzxlfe/1gS6sBM71+ndVwCMJJih/BBlJOyznZi2LIfi nccD0OpXp8Jkk4y7lZkjw0VIvo5RuH6MNaoe46ZK1MHkffYSi+X+AsAwqJ4oUVxV7rrZ r0Xso7P8wDDaPm60PkOQurnavD7KljWosHHkGU2TnEqvM/6T3MuT0a5K7+oEncdOtVHq z+JLn64QAPZsUNh18cQDxfe1GVRL9xpIe2ENfrNDJDa6bA45AMScuEmmCfkGcUVXSAZY 6Aug== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y16-v6si7918987pgh.383.2018.10.28.04.16.34; Sun, 28 Oct 2018 04:16:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727355AbeJ1TrL (ORCPT + 99 others); Sun, 28 Oct 2018 15:47:11 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:45667 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727065AbeJ1TrL (ORCPT ); Sun, 28 Oct 2018 15:47:11 -0400 Received: by mail-ed1-f65.google.com with SMTP id t10-v6so4835746eds.12 for ; Sun, 28 Oct 2018 04:02:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=1bZhArkoqMIuKaNEK+cqsIteiW5Npk6lXBmRec8doAQ=; b=tbmIYRrC3zVqMTEz6NekD7n/w/5/XnEaPRrWKWmtfTxppyZ1ulfsNQRHv5HrzVV3x5 QJAsQtVP08uzS4B8HQfueyo00RbUpryCExBZGk9K9+TJLs6IxVcYLTjC0SdZMIifSuRp Qv9a+97nBCqNchYxfyxKi6GvAgf+A/DfaXYdijWgZOzrvZ5WCOk8kFTwQsO77GBMUDSa +tv2+tg6gaeJ4oXJPAQy4tsy+RwJOjic0LnT/S+0+kdzlbbvcZkzA4QwG9UUiniHy5DD DjBcCVLQd3oG7b09PBry/AzXLoMgjZ4wm5cVKTCzwHBEK64aCDdQ7cPNr+9/8JPotGpU omow== X-Gm-Message-State: AGRZ1gIbYBhiKGWT4oQmuncOX/aw5TAXEptZJST9O7iHi2IuQWMm0Uqw egzuZl3b7lUoaytRGaE+iUH+Tw== X-Received: by 2002:a17:906:7442:: with SMTP id x2-v6mr7692676ejl.169.1540724570858; Sun, 28 Oct 2018 04:02:50 -0700 (PDT) Received: from shalem.localdomain (546A5441.cm-12-3b.dynamic.ziggo.nl. [84.106.84.65]) by smtp.gmail.com with ESMTPSA id f11-v6sm990513eds.23.2018.10.28.04.02.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Oct 2018 04:02:50 -0700 (PDT) Subject: Re: [RESEND PATCH 1/2] staging: vboxvideo: Change uint32_t to u32 To: Shayenne da Luz Moura , Greg Kroah-Hartman , Michael Thayer Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, outreachy-kernel@googlegroups.com References: From: Hans de Goede Message-ID: Date: Sun, 28 Oct 2018 12:02:49 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 26-10-18 21:04, Shayenne da Luz Moura wrote: > This change was suggested by checkpath.pl. > > CHECK: Prefer kernel type 'u32' over 'uint32_t' > > Signed-off-by: Shayenne da Luz Moura So as already mentioned in response to the coverletter of the first posting of this series. The drm headers use uint32_t in the prototype definition of the callback functions we are defining, so the vboxvideo code should use the same even if the compiler does not warn about the callback implementation having different parameter types in this case. To be precise, the page_flip member of struct drm_crtc_funcs is defined as: int (*page_flip)(struct drm_crtc *crtc, struct drm_framebuffer *fb, struct drm_pending_vblank_event *event, uint32_t flags, struct drm_modeset_acquire_ctx *ctx); So our implementation before your patch exactly matches the prototype which IMHO is the right thing to do. Regards, Hans > --- > drivers/staging/vboxvideo/vbox_mode.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/vboxvideo/vbox_mode.c b/drivers/staging/vboxvideo/vbox_mode.c > index 79836c8fb909..8a1b117990b8 100644 > --- a/drivers/staging/vboxvideo/vbox_mode.c > +++ b/drivers/staging/vboxvideo/vbox_mode.c > @@ -311,7 +311,7 @@ static int vbox_crtc_mode_set(struct drm_crtc *crtc, > static int vbox_crtc_page_flip(struct drm_crtc *crtc, > struct drm_framebuffer *fb, > struct drm_pending_vblank_event *event, > - uint32_t page_flip_flags, > + u32 page_flip_flags, > struct drm_modeset_acquire_ctx *ctx) > { > struct vbox_private *vbox = crtc->dev->dev_private; >