From patchwork Thu Nov 14 07:18:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: James Qian Wang X-Patchwork-Id: 11243131 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CF8316C1 for ; Thu, 14 Nov 2019 07:19:09 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id B14992068F for ; Thu, 14 Nov 2019 07:19:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B14992068F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3EFD66E13D; Thu, 14 Nov 2019 07:19:08 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40077.outbound.protection.outlook.com [40.107.4.77]) by gabe.freedesktop.org (Postfix) with ESMTPS id 48F716E13D for ; Thu, 14 Nov 2019 07:19:07 +0000 (UTC) Received: from DB6PR0802CA0028.eurprd08.prod.outlook.com (2603:10a6:4:a3::14) by VI1PR0801MB2093.eurprd08.prod.outlook.com (2603:10a6:800:8a::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2451.23; Thu, 14 Nov 2019 07:19:05 +0000 Received: from AM5EUR03FT030.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e08::200) by DB6PR0802CA0028.outlook.office365.com (2603:10a6:4:a3::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2451.23 via Frontend Transport; Thu, 14 Nov 2019 07:19:04 +0000 Received-SPF: Fail (protection.outlook.com: domain of arm.com does not designate 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM5EUR03FT030.mail.protection.outlook.com (10.152.16.117) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2451.23 via Frontend Transport; Thu, 14 Nov 2019 07:19:04 +0000 Received: ("Tessian outbound e4042aced47b:v33"); Thu, 14 Nov 2019 07:19:03 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: e19737817c3d43c2 X-CR-MTA-TID: 64aa7808 Received: from d2bf47018d18.3 (cr-mta-lb-1.cr-mta-net [104.47.2.52]) by 64aa7808-outbound-1.mta.getcheckrecipient.com id AE1563B8-C876-447E-9ACB-DCDC5C74013A.1; Thu, 14 Nov 2019 07:18:58 +0000 Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01lp2052.outbound.protection.outlook.com [104.47.2.52]) by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id d2bf47018d18.3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 14 Nov 2019 07:18:58 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G90Jk5rCQziaYCEoc88IpjjMpjEKMgwHxX7dAdOod+o82mugfKwZv68bLma77x9oM5vfHzpTp51az0HNUPVixbRZaLegLPxnjXINfLBz8p062oe7U5o6+cmi7pBI7ES5e0IepW1pSFoyPVXSKVyfilbpqqWE5Sm1Ee1lzhWFrilw0EP5OTyrjgGzvQsxhZGd/lZPKNB6mjbeRT0IQs9Lod4Lv1SX3wC9P2Trf5TBnHsT7veqFDDpkQ+2dC4CXuuZsPuyMfq0nPz4YC0YCtwddC0GFFMjCwmRws6ULhoQwUpFGv23ZIGtVnpV+eavZugGQTg7phIw7k+F9C/6YV8EHw== 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=8RxvFPIqym1fYqdb2W+49aDyvdLXHjumUE6tG4adzmQ=; b=PWh7TKtS+4BrQ674Dyg3sjjvHLfY+HODfsi7Xdhj1x6dMYIT6luAsnz+rAiHdPIyik9rLCPvIkB5lZ8mecODrAyi2UMtTGS64Z5mA1sk6UhACujkdg+/WfV3Tl/4QKVSXz08AOjGyB+nIWRv3G6kACynYMdgN4eYhw/Jj46TW6ZOLLPv6pjgv8fGpnO/VSQK9r4Tus8wi3jWkTn/zwq47uzN077jEq8BpvuEJXR0yQtOe5ehH1acEIwojWhDZGLeCV+zDT/FYrkIeVlKFBCBIBcKM2EQkvV/Iyod0DZ4J/psFntJ2k1OecZLe781prBXUOF7IwMdb/wN38wKMBWADA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none Received: from VE1PR08MB5006.eurprd08.prod.outlook.com (10.255.159.31) by VE1PR08MB5056.eurprd08.prod.outlook.com (10.255.159.221) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2451.26; Thu, 14 Nov 2019 07:18:57 +0000 Received: from VE1PR08MB5006.eurprd08.prod.outlook.com ([fe80::a809:417a:faf3:61a7]) by VE1PR08MB5006.eurprd08.prod.outlook.com ([fe80::a809:417a:faf3:61a7%6]) with mapi id 15.20.2451.023; Thu, 14 Nov 2019 07:18:57 +0000 From: "james qian wang (Arm Technology China)" To: Liviu Dudau , Mihail Atanassov Subject: =?utf-8?q?=5BPATCH=5D_drm/komeda=3A_Clean_warnings=3A_candidate_for?= =?utf-8?q?_=27gnu=5Fprintf=E2=80=99_format_attribute?= Thread-Topic: =?utf-8?q?=5BPATCH=5D_drm/komeda=3A_Clean_warnings=3A_candidat?= =?utf-8?q?e_for_=27gnu=5Fprintf=E2=80=99_format_attribute?= Thread-Index: AQHVmrvHSAACMS3tME+zvG9PBSu3eQ== Date: Thu, 14 Nov 2019 07:18:56 +0000 Message-ID: <20191114071839.29120-1-james.qian.wang@arm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [113.29.88.7] x-clientproxiedby: HK2PR0401CA0006.apcprd04.prod.outlook.com (2603:1096:202:2::16) To VE1PR08MB5006.eurprd08.prod.outlook.com (2603:10a6:803:113::31) Authentication-Results-Original: spf=none (sender IP is ) smtp.mailfrom=james.qian.wang@arm.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.20.1 x-ms-publictraffictype: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 4087f24e-66b1-4dda-d229-08d768d2ee41 X-MS-TrafficTypeDiagnostic: VE1PR08MB5056:|VE1PR08MB5056:|VI1PR0801MB2093: x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true x-ms-oob-tlc-oobclassifiers: OLM:1728;OLM:1728; x-forefront-prvs: 02213C82F8 X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(4636009)(39860400002)(346002)(376002)(366004)(396003)(136003)(199004)(189003)(64756008)(305945005)(66066001)(1076003)(14454004)(36756003)(71200400001)(71190400001)(7736002)(99286004)(4326008)(486006)(81156014)(81166006)(25786009)(86362001)(476003)(50226002)(2616005)(8936002)(66476007)(52116002)(186003)(6486002)(55236004)(6506007)(386003)(6436002)(6512007)(478600001)(102836004)(26005)(316002)(5660300002)(54906003)(110136005)(256004)(14444005)(66556008)(3846002)(6116002)(103116003)(66446008)(6636002)(66946007)(2906002); DIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR08MB5056; H:VE1PR08MB5006.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: mHDl+taNtf6rJc3ENb+jkHsdOSs89++QaoC1opiywJGuW0c1YaJQH97zInZ8mjvHDG/mVSGMuJtPPRcMn7PG2H2JF5mEaCZXI3H6ATQS9gLj9Jdy+VHSGSkp6a2OEBG0BSR2NBUlplGC7tNUvJa5a0QxtaG5znKATB7CPL2ifVY42V2PT5ra9KLSDC0J58D/h5nqfvZVS4r7jmrbFZ6wtjOAPFMUkv98pYWDt4jwbipIVHrW1/Msh9BHR9xHVTXF/awnz8ybAll1zEOI67LzB2nwOaFMs2RfyYve/SoPZxxVwqbCkfIR/bqEEhzL4XLQwpO8tst/jNWsbHsKoJ15+kFsaZCeXX3Reg5ZeJYp73WqyJBw1bYvLEdDm5t29e31jEw1x0PW/DT1xIROblq6Oo5sK60XtOH2tMZYGe3uJdxdMvnv8ozbL1E9S3lBtawe Content-ID: <8CC6763886CF6545AB964D2FAC7F7354@eurprd08.prod.outlook.com> MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR08MB5056 Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=james.qian.wang@arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT030.eop-EUR03.prod.protection.outlook.com X-Forefront-Antispam-Report: CIP:63.35.35.123; IPV:CAL; SCL:-1; CTRY:IE; EFV:NLI; SFV:NSPM; SFS:(10009020)(4636009)(136003)(346002)(376002)(396003)(39850400004)(1110001)(339900001)(199004)(189003)(99286004)(356004)(86362001)(36756003)(25786009)(305945005)(7736002)(14454004)(2906002)(102836004)(436003)(476003)(2616005)(486006)(336012)(26005)(126002)(478600001)(5660300002)(103116003)(66066001)(47776003)(105606002)(386003)(6506007)(50466002)(76130400001)(22756006)(186003)(70206006)(70586007)(1076003)(316002)(110136005)(54906003)(6116002)(3846002)(23676004)(4326008)(36906005)(2486003)(50226002)(81166006)(14444005)(81156014)(26826003)(6486002)(6636002)(8936002)(6512007); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0801MB2093; H:64aa7808-outbound-1.mta.getcheckrecipient.com; FPR:; SPF:Fail; LANG:en; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; A:1; MX:1; X-MS-Office365-Filtering-Correlation-Id-Prvs: c2138615-3eb3-4c27-ec71-08d768d2e968 NoDisclaimer: True X-Forefront-PRVS: 02213C82F8 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JUwVmosWah2rglvz6hUaCTcGhMbyLLh7ukwfpYrplyRtLB7e6unPq5SczNcfvCGj3UUGNqA3eM5ipPkg/DE1IzH2TfAPZNp5vPeC8ZPtKZ5TlMd8ArjXJVUWN8DDd8RFNNlT6V5W1uBSnbejdeKavkkIFxvx9bpZR0XMLnMjn0MDjMOiAcxDuuwrJl7gmYRPw7vPXdgmVYJP4VVpuE9UloT4Hx9OY/JONLjEokRYodxRgCqmzvq/vgTRk/eem9ZTyE7m86JzVHGpMLozIH/v7HtBJfLOSakKGd2o7FnIq2xXrZvfm9X0RAV88AKhVqJSHX+mvvTDBliJYTKjzJZ1AtVReOZ61e5mnLyCNHcYmkG+L1v+B62jBeTg1ThTxVMekIsOoWcX+DBzug9JPgNIVUgPYyPhTsMhczk1P8ylRRX4XrzGtizlOUejtCyMkZzx X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Nov 2019 07:19:04.5295 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4087f24e-66b1-4dda-d229-08d768d2ee41 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0801MB2093 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8RxvFPIqym1fYqdb2W+49aDyvdLXHjumUE6tG4adzmQ=; b=7edExcp6tjFL7CYSrYDW+CZY6DQWnjPl8AjkKwE3vnXYoe0yYloJ6gr4p+o5fFzNL1WezVI+hfdLm67LJNh3TUFCPnL/pXYfs8/31yVXXDvVl3peWOMrFwMGAmcX01A0DTjIEpzKitmJs3h3cfN78G8q7Ime5jgxeIvYan0sabo= X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8RxvFPIqym1fYqdb2W+49aDyvdLXHjumUE6tG4adzmQ=; b=7edExcp6tjFL7CYSrYDW+CZY6DQWnjPl8AjkKwE3vnXYoe0yYloJ6gr4p+o5fFzNL1WezVI+hfdLm67LJNh3TUFCPnL/pXYfs8/31yVXXDvVl3peWOMrFwMGAmcX01A0DTjIEpzKitmJs3h3cfN78G8q7Ime5jgxeIvYan0sabo= X-Mailman-Original-Authentication-Results: spf=fail (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; lists.freedesktop.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;lists.freedesktop.org; dmarc=none action=none header.from=arm.com; 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: "lowryli@arm.com" , nd , "james qian wang \(Arm Technology China\)" , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" komeda/komeda_pipeline.c: In function ‘komeda_component_add’: komeda/komeda_pipeline.c:213:3: warning: function ‘komeda_component_add’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] vsnprintf(c->name, sizeof(c->name), name_fmt, args); ^~~~~~~~~ komeda/komeda_event.c: In function ‘komeda_sprintf’: komeda/komeda_event.c:31:2: warning: function ‘komeda_sprintf’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] num = vsnprintf(str->str + str->len, free_sz, fmt, args); Signed-off-by: james qian wang (Arm Technology China) --- drivers/gpu/drm/arm/display/komeda/komeda_event.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_event.c b/drivers/gpu/drm/arm/display/komeda/komeda_event.c index bf269683f811..977c38d516da 100644 --- a/drivers/gpu/drm/arm/display/komeda/komeda_event.c +++ b/drivers/gpu/drm/arm/display/komeda/komeda_event.c @@ -17,6 +17,7 @@ struct komeda_str { /* return 0 on success, < 0 on no space. */ +__printf(2, 3) static int komeda_sprintf(struct komeda_str *str, const char *fmt, ...) { va_list args;