From patchwork Mon Oct 15 21:26:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mamta Shukla X-Patchwork-Id: 10644689 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 034173C13 for ; Wed, 17 Oct 2018 06:41:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E7B9E2A7E6 for ; Wed, 17 Oct 2018 06:41:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D4BA52A81B; Wed, 17 Oct 2018 06:41:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DATE_IN_PAST_12_24, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3792C2A7E6 for ; Wed, 17 Oct 2018 06:41:00 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id ED6A76E317; Wed, 17 Oct 2018 06:40:27 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by gabe.freedesktop.org (Postfix) with ESMTPS id 732266E1DA for ; Tue, 16 Oct 2018 10:22:57 +0000 (UTC) Received: by mail-pl1-x642.google.com with SMTP id q19-v6so7727663pll.5 for ; Tue, 16 Oct 2018 03:22:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=ZIv86pWrDGETknjTIkSWZS7wrG8hZu8ipPaB5pCoeZI=; b=MB5gHOhDYghrlSUF+eAFH9dt1YHe51zx7NIvp8zUly+UCdrRX1iB+Hgqb7vUFArgtt Ew5S+FFHdXW7ZhDZvEfz1XFpXaPPb0Jxrav4d9j8ayKTubRWoLN85dmemXkWbAlDmrGF W5GxuuUXO661hkKKwKYWiD3a/1fTFnpJt0G/aFXni7qWhPIYaw4KKfReWlIlvWwCTu5q XRYmthXWV2vTCPZUJfuwcePenp/n5qiTOLWgU+DAirVPZlDZeW6RFzluxyauaqW4gCT8 9fAOxoRHNNpu05ag8+MpViKgg846UWbh+gSw/VB4oOE5+iaUKDug8PqBEEIMznVN9b5M WUwg== X-Gm-Message-State: ABuFfojY+Io0nI1J7xPdEMp7WQWO8Mtf8ltNayyw6a/jWRpETenabiwk GiktdMtE3A8KS0Pi8DADn44= X-Google-Smtp-Source: ACcGV61e/GzFJMhWle5omHXu8fktL4bYrc/QpW8ORtgkXIbJ3/gnH70hhetZ/EPlfXCe9XYH6MnBNQ== X-Received: by 2002:a17:902:a9c5:: with SMTP id b5-v6mr17147139plr.340.1539685375896; Tue, 16 Oct 2018 03:22:55 -0700 (PDT) Received: from armorer ([117.208.15.95]) by smtp.gmail.com with ESMTPSA id z11-v6sm28832791pfg.85.2018.10.16.03.22.54 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 16 Oct 2018 03:22:55 -0700 (PDT) Date: Tue, 16 Oct 2018 02:56:44 +0530 From: Mamta Shukla To: outreachy-kernel@googlegroups.com Subject: [PATCH DRM] drm: Shift * to be adjacent to pointer name Message-ID: <20181015212644.GA28579@armorer> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Mailman-Approved-At: Wed, 17 Oct 2018 06:40:09 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: airlied@linux.ie, daniel.vetter@ffwll.ch, dri-devel@lists.freedesktop.org, sean@poorly.run Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Shift * to be adjacent to pointer name to follow Linux coding style. Issue found with checkpatch.pl ERROR: "foo * bar" should be "foo *bar" Signed-off-by: Mamta Shukla --- drivers/gpu/drm/drm_memory.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/drm_memory.c b/drivers/gpu/drm/drm_memory.c index d69e4fc..40c4349 100644 --- a/drivers/gpu/drm/drm_memory.c +++ b/drivers/gpu/drm/drm_memory.c @@ -51,7 +51,7 @@ #endif static void *agp_remap(unsigned long offset, unsigned long size, - struct drm_device * dev) + struct drm_device *dev) { unsigned long i, num_pages = PAGE_ALIGN(size) / PAGE_SIZE; @@ -94,26 +94,26 @@ static void *agp_remap(unsigned long offset, unsigned long size, } /** Wrapper around agp_free_memory() */ -void drm_free_agp(struct agp_memory * handle, int pages) +void drm_free_agp(struct agp_memory *handle, int pages) { agp_free_memory(handle); } /** Wrapper around agp_bind_memory() */ -int drm_bind_agp(struct agp_memory * handle, unsigned int start) +int drm_bind_agp(struct agp_memory *handle, unsigned int start) { return agp_bind_memory(handle, start); } /** Wrapper around agp_unbind_memory() */ -int drm_unbind_agp(struct agp_memory * handle) +int drm_unbind_agp(struct agp_memory *handle) { return agp_unbind_memory(handle); } #else /* CONFIG_AGP */ static inline void *agp_remap(unsigned long offset, unsigned long size, - struct drm_device * dev) + struct drm_device *dev) { return NULL; }