Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp95880pxb; Mon, 16 Aug 2021 00:25:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwi8DCT4EQM/HV3bHGZHYG0+U4hlSrI4Pqxolegqz4w4hwBQm3BsPBMviqBhOgzQUy1GRXf X-Received: by 2002:a05:6e02:1ca6:: with SMTP id x6mr1269846ill.86.1629098701852; Mon, 16 Aug 2021 00:25:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1629098701; cv=pass; d=google.com; s=arc-20160816; b=taeKQJFFCNIyQr5iKkugQI4zmXgAVGyIxTxIIRbNc/exk8y5gLlOHkRyMLDAuDkPHA g/d9sFpWoVeNT8XJUecw3bIZQtVR6zhASdbXC1DTXJ1dQOS9c58QHWGa0JkwenxYleac UWY+3vEbzXwhlXr5XIKcGKotPvkxbTxBeBsBTEv8LEair5jXRlZ0+IavAebyWHEtOAkt VkFbhhpsKBZh/2PzQohNZWGy5jX4yb4BZd/UTJ5qlhI1WY/pFNn3ipChFkTZCs7kCUoT t8KRm33epre5dtkNOVUPAmA68Gaok8TcXHhqd4fW0DUASfRLPCZaGDdC2T2MKWpwhN5G GuVA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-language :content-transfer-encoding:in-reply-to:user-agent:date:message-id :from:references:cc:to:subject:dkim-signature; bh=ZBBPRdzv/EIh54yLXbFTH6MFGsxLPhwoqoP09S2yB0Y=; b=iP2lC3kHv/Dw3+agzeYdBsB3wDc4LKxBh9aPux3kIENsFRc7YRJPqAgYJY3RAqq3q1 p2ZAtDHFH3rZyS/t6ZAd7SvN3A7Nm/Qa3+M7snQV1KGiKCt517+XNwIC2X7vzdIqdYUi vFGcorpLELjFkk4M/BparnMq9u1uQG1NWn8ebN85fOAFv11APnY+ZfNkvbRak59YPTJG TZCetFQpWXuWMH59wPTs6bNwdfd2+FOKj5j8X6mK/IqRasJK+h2nRBvH9i45R7/ytp6G sD4idCAnZRUTNHywc6OI/kwK9Rt1mG1sjP9Z0sAas5mSNm9vwjNTQqVFR2R1GSBMxwyw YIgA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=qbm+C8Sq; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y196si12684572iof.86.2021.08.16.00.24.50; Mon, 16 Aug 2021 00:25:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=qbm+C8Sq; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233936AbhHPHX2 (ORCPT + 99 others); Mon, 16 Aug 2021 03:23:28 -0400 Received: from mail-co1nam11on2069.outbound.protection.outlook.com ([40.107.220.69]:21345 "EHLO NAM11-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233725AbhHPHX1 (ORCPT ); Mon, 16 Aug 2021 03:23:27 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=emIE4AigZQwzl8nUCB3XGgTkub0/sbHH45cgztJTUq3i1Wu/Bd9Hm0bBCPzbdN9e65LHBlahi1wVXw7urVsw/oKwoR9IFs//Bn0KhGwhCgLJJtb9ZYDUb7cn/65KcJhlKpI5qoXaaA5cRdlU3xM5ZhJTvrdsOo78TQ/P9bD5eplUbPIy1LGzDbPMWg/VNzUZZrrfoifmJHL2tQmGExpWUCpqdQDqSVbzxGjuy+D4vX5ZJio/7tX99FXSTuhyZae6PFXunlwaHC3vUh1KUla92vWwgD6eQPdj4vdFfCNkDQzJXZIPLeHBR3KhaoVEgsgqOxcTPV5rFv9wYIxoZxTMKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZBBPRdzv/EIh54yLXbFTH6MFGsxLPhwoqoP09S2yB0Y=; b=BnnLYKoIb1BovFbXweVxJTACI5mnufm4/6F5RK7XfxePVEjrIjXGVvHInQwsfKyuuMg8WqZ6CJBYN87pzD/Lv+ncU69X4JFef839/gTWcv17otNQ1E1oPJfGSNX97aopAXDh41cekwYEO/kB+ritgVnLG/07YKOTzNqWBeFFWcZdWk3cFlkHHzQnA8OtvWeLoLZTnNcL7k2U2E/E6RXQJ3unP7QWdzV3nucMgB1n56yQxec520z9Ai0VszyOJ8hU1WzS3xzlxdSRedyQGkpJnQ7jVd6qCk6UhecJNDrBwJB/fkQTJTfbAapncDkYBOo0D+tdPrNOnRJKfaFLTUxw8g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZBBPRdzv/EIh54yLXbFTH6MFGsxLPhwoqoP09S2yB0Y=; b=qbm+C8SqJd42BdnPyr+WiDPx7iW3KVbPq5hlVHspCbd2F3d1/p0+zv8GYh/GdH0HvLEjrahu5dEIXN1CbO+iBrdbvTjrh4slsGU02Cj674nCJjr5M5ubeC57ue7BpESvNsNdDyrKZhJkZYDoINWGojJ7PDpnJUrioh+MPV+DO1Q= Authentication-Results: googlegroups.com; dkim=none (message not signed) header.d=none;googlegroups.com; dmarc=none action=none header.from=amd.com; Received: from MN2PR12MB3775.namprd12.prod.outlook.com (2603:10b6:208:159::19) by MN2PR12MB3838.namprd12.prod.outlook.com (2603:10b6:208:16c::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.15; Mon, 16 Aug 2021 07:22:55 +0000 Received: from MN2PR12MB3775.namprd12.prod.outlook.com ([fe80::dce2:96e5:aba2:66fe]) by MN2PR12MB3775.namprd12.prod.outlook.com ([fe80::dce2:96e5:aba2:66fe%6]) with mapi id 15.20.4415.023; Mon, 16 Aug 2021 07:22:55 +0000 Subject: Re: [PATCH] drm/radeon: Add break to switch statement in radeonfb_create_pinned_object() To: Nathan Chancellor , Alex Deucher , "Pan, Xinhui" Cc: Nick Desaulniers , "Gustavo A. R. Silva" , Kees Cook , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com References: <20210815192959.90142-1-nathan@kernel.org> From: =?UTF-8?Q?Christian_K=c3=b6nig?= Message-ID: Date: Mon, 16 Aug 2021 09:22:49 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 In-Reply-To: <20210815192959.90142-1-nathan@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-ClientProxiedBy: PR3P192CA0010.EURP192.PROD.OUTLOOK.COM (2603:10a6:102:56::15) To MN2PR12MB3775.namprd12.prod.outlook.com (2603:10b6:208:159::19) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [IPv6:2a02:908:1252:fb60:7d83:fd8:eb16:8605] (2a02:908:1252:fb60:7d83:fd8:eb16:8605) by PR3P192CA0010.EURP192.PROD.OUTLOOK.COM (2603:10a6:102:56::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.17 via Frontend Transport; Mon, 16 Aug 2021 07:22:53 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 313f7a5e-87df-43c0-e561-08d96086aa4d X-MS-TrafficTypeDiagnostic: MN2PR12MB3838: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:16; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9mggssteOv+Od9ZkDhFQ6OlWF+kPQgdxL0NDOT4AA60yEyAAbYt9cCbzaarZZJqmI+qi1PeH4kYBrI8OBPoMYuxXQ3jW67cg+569gtfJ+CpfmYN+58hOPKafel5CgbYaoizBGTjf9q4BhprSthCeYXZ1c4465mR8GCtOQtJ5FwrbwQAIE6ujDqnUy60PMSEVSoJrbUEP/zmQGN1PRtASU9WHYh9QUkHpdQAI07MKi7Zm86433c8XPTUm71mq+oo8HnmXWWEkGkONt8Z47obPCOUuEqCzDv6CHAS1wSjoyenuAtqTcdlHH+0nJFFl2S/SXcRFga5ZbVOqBtYwo49NFXIqzhLgkf9y1nJYOLxFVpSqVyA1Pg4HqxBQd2mg4LwrrY5iWjNL4g8fXKh7Gu5DH9asf1VDx/A8ty8dR9T4cNcJXCWQHDHJmF/UOuQfY0D2orQjZq1+CjjGdQVmqweBQ/xLtvg5qLy6ZpIVLZHOh7WuWbWSd1X8197M8ZqIRO2crs6qL3CthsjhmXyTmjycAG2ynzdIu4GK+k2k1QN/1KFchalaBgQYCDP2SSwyReYfweTGVI2LZaj4ZrCcTgdqke91VN0S2az6GmbzRILOKLuq3wJoF/sL9WbXlkmgP9K3+08HaTxRI5pKgL38OKUyvcdD0TlfAe6iXMaoA7XXsDhhMnAQ+6SdWrTTlLoyPAN/Pu5ynxyVuvsyS67CODzWACar78PO41emgJrNxVli+L0= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR12MB3775.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(39860400002)(396003)(376002)(346002)(136003)(366004)(6636002)(2616005)(83380400001)(31686004)(6666004)(6486002)(36756003)(38100700002)(66574015)(31696002)(66946007)(8936002)(478600001)(4326008)(110136005)(2906002)(5660300002)(8676002)(54906003)(186003)(86362001)(66556008)(316002)(66476007)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?WG80OEpCWndOZEJzSG9yUkxPc3U2QTEwMnF5Q08rZm1GVThNTkU1R3FxWVBK?= =?utf-8?B?WUNEZG1wb1N5b2RXZWFWay9oYmNwUTJlK0VGOEdkNU1vWUYzaHV6UnZIRE5n?= =?utf-8?B?VzhSYlZ6anNob2xtM0hoMFdBdlA3TUJFNjJYOXBsQ0FZYTVvUjUvTk9xRjlw?= =?utf-8?B?dkhVdnptU1hCQ251YXJVOThzanFzVDBBSmN6Q0tkVmVUcVphYjV3citrZURK?= =?utf-8?B?SldlcmtVS1ZCQUJ3TlZxRGhiYUxTZ1R0dHlscjgvMlNqNlNyb0taMFVnL01M?= =?utf-8?B?WWswbHRRcWhPYnhFYS9LcHIzR3JSa3VEZkVyY1JhWHBJcGhWN0FHbkt6TmdX?= =?utf-8?B?RWtBd09tM3poRkJnRVRvbnczTlByeEQ2a3pwbDhYdEcrR2F1bHZWRVVZVVI2?= =?utf-8?B?WXdaR1d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=?utf-8?B?YkVHYmdBRXBzYmVXZjJDWFBNRE1VNjNaalNEZUxVb25ZVDNHZTVDWkpYWktl?= =?utf-8?B?eXNoSTM3YTlBWTBFSnNxWXVmc2hTYWZLL0RYMi8vdzNmN2JnL3RnKzRYUjA0?= =?utf-8?B?U25WZENNVGg2L0VZVWgxQzZJL2NVNG4xWExKSUZtV0tMZDdKVEoyUUYwK1R5?= =?utf-8?B?QkJDaC9hR2Rob3VsZ0hZRkpaZTRyZkhlRnhuRHpCZzU3SVpaZzJwVXNmdmE3?= =?utf-8?B?MkpvUTR1SXF4eDdpa2RQZk5nbkhwQzExVUdHaXBYNDJBSDl2WlFtcjNxeDlV?= =?utf-8?B?WEZma3ZvMVhxTFZlRUpZMXpqU1JmakJKMjJkeWtEV25hOVozQ1FRbmpkRTR2?= =?utf-8?B?bFB3cVdWaEx0MHhrVlpwS0lINzVNbHJPazNvTXdlbHY4Z0JOTmZDeVlMUnpO?= =?utf-8?B?M1RveEhRbmVHcndSMmlib00zV3RpdzBaanM3OUt3NWo2WVF6Uks0UjN4d1J0?= =?utf-8?B?RGFZZjkrcEl0L3FvMisybFNFbytCMkMrYzh3czZJME1yR1VXWkVzUlF3dFNT?= =?utf-8?Q?T549CP0ZiJGPH?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 313f7a5e-87df-43c0-e561-08d96086aa4d X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB3775.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Aug 2021 07:22:55.0950 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: tTktETZPD31yV+tZu7jn2z1JMLN36pTTUD3a22S+qouIU6s89wDxmZqPjS95fwjq X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB3838 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 15.08.21 um 21:29 schrieb Nathan Chancellor: > Clang + -Wimplicit-fallthrough warns: > > drivers/gpu/drm/radeon/radeon_fb.c:170:2: warning: unannotated > fall-through between switch labels [-Wimplicit-fallthrough] > default: > ^ > drivers/gpu/drm/radeon/radeon_fb.c:170:2: note: insert 'break;' to avoid > fall-through > default: > ^ > break; > 1 warning generated. > > Clang's version of this warning is a little bit more pedantic than > GCC's. Add the missing break to satisfy it to match what has been done > all over the kernel tree. > > Signed-off-by: Nathan Chancellor Reviewed-by: Christian König > --- > drivers/gpu/drm/radeon/radeon_fb.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/drm/radeon/radeon_fb.c b/drivers/gpu/drm/radeon/radeon_fb.c > index 0b206b052972..c8b545181497 100644 > --- a/drivers/gpu/drm/radeon/radeon_fb.c > +++ b/drivers/gpu/drm/radeon/radeon_fb.c > @@ -167,6 +167,7 @@ static int radeonfb_create_pinned_object(struct radeon_fbdev *rfbdev, > break; > case 2: > tiling_flags |= RADEON_TILING_SWAP_16BIT; > + break; > default: > break; > } > > base-commit: ba31f97d43be41ca99ab72a6131d7c226306865f