Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp174485rwo; Fri, 21 Jul 2023 10:05:20 -0700 (PDT) X-Google-Smtp-Source: APBJJlGD1vIWTQRq5vqu21spM6zOr4LWlIncgaZsQW1ODXP4zkiZcK1/1sec4hEewMwxNGmJJ19b X-Received: by 2002:a05:6870:2194:b0:1b0:4e71:590 with SMTP id l20-20020a056870219400b001b04e710590mr3541497oae.9.1689959119923; Fri, 21 Jul 2023 10:05:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689959119; cv=none; d=google.com; s=arc-20160816; b=xYtwgQsuGoOCorf0rfT0QsGV2F0OqA1EV2ZR7GKYszEkDeeQZWtWbKjUD1wKrxn1sY FPQE+HXeMNbXiH+WNHI3RT83N8J39DIR7tuc+GqZJ5Xxgay569Q2hypLR8W6Q+ol9LYJ vgBd1xUCHPlB5jNhN2e+Mu9uQoPmQSTy1KwgmrybGTZroe0QhqDyGD6qdob59oO5b4Xi MuWGcjJN7SyRBiLLTnGbWsVhfAoJEDC9OMlcyonluoLHzF2TJTUmKGSLZP+/mCwcuV0g DAEi/rrIvBMaga0GeKBQriX8JsvyUq25pSNrBSN1xnB/lMKuPa5Sl9RpSv+iOWwC42cS a3ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=tl0eTAwzZMqhrxk94X5w3ULTemUp7A7rZI7DezrgeA0=; fh=XAi2m70BGXEOQsceuFSeefK5dlXkD+txnqHNwQ8Jpwo=; b=Tcn31WeZW2WVgXrCXczXKjssqZKD+DdjahJmKz4uj4kZQe5JmI63y0CRUxj6qgw7WS uLt7fn7CN04mIhZnrE/LqBFptE+OquPZwxLXNUiFPqej9zot3+HqDYzh902r4gv0ybFI hsYNoBPzBDKbVY9gzd62J1nA4J4CB/oLcAp0S9vDFRt92yPM7yA7fkVJpp4XoEw1etam AIguRYZGvb9r7dQ+AI3XuoNsmAaicRTfs/GztuXZctWZ5hgTSuyAziuHwiC3h0ON9Y6Y r4TINBmDTCD2GOkilglcPO2cqH9DZ/en4wkjrVjkrE4KLw9pDl8LaUovfPg4eD92WZ9p THig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="kmuAo33/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o13-20020a637e4d000000b00557807d78e2si3298135pgn.555.2023.07.21.10.05.07; Fri, 21 Jul 2023 10:05:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="kmuAo33/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231643AbjGUP4D (ORCPT + 99 others); Fri, 21 Jul 2023 11:56:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231411AbjGUP4B (ORCPT ); Fri, 21 Jul 2023 11:56:01 -0400 Received: from mail-oa1-x2c.google.com (mail-oa1-x2c.google.com [IPv6:2001:4860:4864:20::2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 200A63A90 for ; Fri, 21 Jul 2023 08:55:48 -0700 (PDT) Received: by mail-oa1-x2c.google.com with SMTP id 586e51a60fabf-1b0719dd966so1611496fac.1 for ; Fri, 21 Jul 2023 08:55:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689954947; x=1690559747; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=tl0eTAwzZMqhrxk94X5w3ULTemUp7A7rZI7DezrgeA0=; b=kmuAo33/+EOAbBUeF2mJvFIvjHiyGDFqgVkxovydnyB+xcalD42PZFUywMTVcGNa8t 5u4fevWpKgGGQiezFXTQkf7jwfFC0llQlpMIwAIQKM/BPDfdf20BfJkXkXGfurQ4gqAx eiB0ljF43D5RmbBCizRa98SBKdhu0Il0FmJyzjX9EqMDxuvjvX2XddKQzWI6bxZraYXr ffvqZ3CyBL2oRQ9Ut+ahEuZgU2oh5GtpQ3/nFq4l1IlFaYgG4+JADAloi03ppBV/aAu3 V1YZkFNO0TOnqwjf42Y+u61M4BM7CDldqMPhfQvtZn9QTvjfgzGaiPk2EziUpvYK2OWh epGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689954947; x=1690559747; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tl0eTAwzZMqhrxk94X5w3ULTemUp7A7rZI7DezrgeA0=; b=c/Ts7nP5XIVjLgx6V9Mjtaqy2pTeHv2SMIF8+da5xY5GIKnwXaEx0ZECEzXkZNvP5R 5/xL7oqwXfM8GLQ5TE/HBKZxH202NcIBDCrgGF3DqDOQacnqxfLRSQfDIotfPkPZKeuO s6Sph9B1Mq/Uf6XlwpqaqAGRjasoNP/B4xidBOPldmQ2KnOaSCUJ8hx7LcTbUWWgdc+y Nx2HOB+SSfNVgOTziJeww4Y5FSyICONvzlW4iwbCmktTCd0tqJJzDPhtByHu9YNeZZhE Co7nPNrbuKgwHSVUUgiGW3e6N8TQuOvYQj9zubKxR+yCWzjBn30qUoJPl0G6ze5TwKV3 w9lA== X-Gm-Message-State: ABy/qLbeI/NN+tErAWtlwXoZvHw4SlYYjdlJhrOf0cYYXe4V8keYeFWh lbvyfCtv/w0BWYsDQtn/BKAw+lk9YzSto2PJssc= X-Received: by 2002:a05:6870:7389:b0:1b0:89e4:e26b with SMTP id z9-20020a056870738900b001b089e4e26bmr2799810oam.48.1689954947629; Fri, 21 Jul 2023 08:55:47 -0700 (PDT) MIME-Version: 1.0 References: <20230721012635.4552-1-xujianghui@cdjrlc.com> In-Reply-To: From: Alex Deucher Date: Fri, 21 Jul 2023 11:55:36 -0400 Message-ID: Subject: Re: [PATCH] drm/amd: open brace '{' following struct go on the same line To: sunran001@208suo.com Cc: alexander.deucher@amd.com, airlied@gmail.com, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 20, 2023 at 9:31=E2=80=AFPM wrote: > > Fix the checkpatch error as open brace '{' following struct should > go on the same line. > > Signed-off-by: Ran Sun git am didn't seem to like the patch, but I was able to apply it cleanly manually with no fuzz. Not sure what's up, but I've applied it. Alex > --- > 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;