From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C3FADEB64DD for ; Fri, 21 Jul 2023 01:31:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229708AbjGUBbV (ORCPT ); Thu, 20 Jul 2023 21:31:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229528AbjGUBbR (ORCPT ); Thu, 20 Jul 2023 21:31:17 -0400 Received: from mail.208.org (unknown [183.242.55.162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C14701FED for ; Thu, 20 Jul 2023 18:31:14 -0700 (PDT) Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4R6X7z1gltzBRDtF for ; Fri, 21 Jul 2023 09:31:11 +0800 (CST) Authentication-Results: mail.208.org (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=208.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=208.org; h= content-transfer-encoding:content-type:message-id:user-agent :references:in-reply-to:subject:to:from:date:mime-version; s= dkim; t=1689903071; x=1692495072; bh=Qq62sLIO6ROPq/epkdPBhc/KPvU UIj4lTk/QHIBHckU=; b=exwDGHjJyLXPDiDr6d+fWHA6TZFDscQnhyPw0gAKMcn ZK2aQi075XlBAWPyQwPHF5709F6h4hF7SJrR3cYlt+z0V8nKkof/6FJL+E91qyBu gaqTe8ZEjZD5x3GrJC+kbm9wnexxiC4QOF3loVsjh/4HFyAWuaiOt56AFfwInDJi 6awS4gwxcSDqh3jZ2gCvHvy+Ev+DWSgeJtJjsjBAlL0kWsgZGFo5mX/THZVgNxyl dILNLnECjUvJ79B088rGON54PE4tIRcvzqRxF777cZKUISW/YIwGynOSvt8xJgjM heDtXdKRJdrKJklUyBDzKeJnbvCyS7Dg64kPzhvfbwA== X-Virus-Scanned: amavisd-new at mail.208.org Received: from mail.208.org ([127.0.0.1]) by mail.208.org (mail.208.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id J0GRzkBL_g70 for ; Fri, 21 Jul 2023 09:31:11 +0800 (CST) Received: from localhost (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTPSA id 4R6X7y5n73zBJkk9; Fri, 21 Jul 2023 09:31:10 +0800 (CST) MIME-Version: 1.0 Date: Fri, 21 Jul 2023 09:31:10 +0800 From: sunran001@208suo.com To: alexander.deucher@amd.com, airlied@gmail.com, daniel@ffwll.ch Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/amd: open brace '{' following struct go on the same line In-Reply-To: <20230721012635.4552-1-xujianghui@cdjrlc.com> References: <20230721012635.4552-1-xujianghui@cdjrlc.com> User-Agent: Roundcube Webmail Message-ID: X-Sender: sunran001@208suo.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the checkpatch error as open brace '{' following struct should go on the same line. Signed-off-by: Ran Sun --- drivers/gpu/drm/amd/include/yellow_carp_offset.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/include/yellow_carp_offset.h b/drivers/gpu/drm/amd/include/yellow_carp_offset.h index 0fea6a746611..a2c8dca2425e 100644 --- a/drivers/gpu/drm/amd/include/yellow_carp_offset.h +++ b/drivers/gpu/drm/amd/include/yellow_carp_offset.h @@ -7,13 +7,11 @@ #define MAX_SEGMENT 6 -struct IP_BASE_INSTANCE -{ +struct IP_BASE_INSTANCE { unsigned int segment[MAX_SEGMENT]; } __maybe_unused; -struct IP_BASE -{ +struct IP_BASE { struct IP_BASE_INSTANCE instance[MAX_INSTANCE]; } __maybe_unused; From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6689FEB64DA for ; Fri, 21 Jul 2023 01:31:18 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6E3B610E154; Fri, 21 Jul 2023 01:31:17 +0000 (UTC) Received: from mail.208.org (unknown [183.242.55.162]) by gabe.freedesktop.org (Postfix) with ESMTPS id E0D1F10E165 for ; Fri, 21 Jul 2023 01:31:14 +0000 (UTC) Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4R6X7z1r7FzBRDtH for ; Fri, 21 Jul 2023 09:31:11 +0800 (CST) Authentication-Results: mail.208.org (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=208.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=208.org; h= content-transfer-encoding:content-type:message-id:user-agent :references:in-reply-to:subject:to:from:date:mime-version; s= dkim; t=1689903071; x=1692495072; bh=Qq62sLIO6ROPq/epkdPBhc/KPvU UIj4lTk/QHIBHckU=; b=exwDGHjJyLXPDiDr6d+fWHA6TZFDscQnhyPw0gAKMcn ZK2aQi075XlBAWPyQwPHF5709F6h4hF7SJrR3cYlt+z0V8nKkof/6FJL+E91qyBu gaqTe8ZEjZD5x3GrJC+kbm9wnexxiC4QOF3loVsjh/4HFyAWuaiOt56AFfwInDJi 6awS4gwxcSDqh3jZ2gCvHvy+Ev+DWSgeJtJjsjBAlL0kWsgZGFo5mX/THZVgNxyl dILNLnECjUvJ79B088rGON54PE4tIRcvzqRxF777cZKUISW/YIwGynOSvt8xJgjM heDtXdKRJdrKJklUyBDzKeJnbvCyS7Dg64kPzhvfbwA== X-Virus-Scanned: amavisd-new at mail.208.org Received: from mail.208.org ([127.0.0.1]) by mail.208.org (mail.208.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id kLtn6Q9Z69ff for ; Fri, 21 Jul 2023 09:31:11 +0800 (CST) Received: from localhost (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTPSA id 4R6X7y5n73zBJkk9; Fri, 21 Jul 2023 09:31:10 +0800 (CST) MIME-Version: 1.0 Date: Fri, 21 Jul 2023 09:31:10 +0800 From: sunran001@208suo.com To: alexander.deucher@amd.com, airlied@gmail.com, daniel@ffwll.ch Subject: [PATCH] drm/amd: open brace '{' following struct go on the same line In-Reply-To: <20230721012635.4552-1-xujianghui@cdjrlc.com> References: <20230721012635.4552-1-xujianghui@cdjrlc.com> User-Agent: Roundcube Webmail Message-ID: X-Sender: sunran001@208suo.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fix the checkpatch error as open brace '{' following struct should go on the same line. Signed-off-by: Ran Sun --- drivers/gpu/drm/amd/include/yellow_carp_offset.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/include/yellow_carp_offset.h b/drivers/gpu/drm/amd/include/yellow_carp_offset.h index 0fea6a746611..a2c8dca2425e 100644 --- a/drivers/gpu/drm/amd/include/yellow_carp_offset.h +++ b/drivers/gpu/drm/amd/include/yellow_carp_offset.h @@ -7,13 +7,11 @@ #define MAX_SEGMENT 6 -struct IP_BASE_INSTANCE -{ +struct IP_BASE_INSTANCE { unsigned int segment[MAX_SEGMENT]; } __maybe_unused; -struct IP_BASE -{ +struct IP_BASE { struct IP_BASE_INSTANCE instance[MAX_INSTANCE]; } __maybe_unused;