Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4965622rwd; Tue, 23 May 2023 15:46:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6ICMcS+97Z4F0JANJ7/Vl/OHMF9LDzZAC4CX74FDEMJcqJbuFaOhdzokrYFQOiU4Hh2HHG X-Received: by 2002:a17:902:e5ce:b0:1ac:b449:352d with SMTP id u14-20020a170902e5ce00b001acb449352dmr18515704plf.61.1684881989314; Tue, 23 May 2023 15:46:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1684881989; cv=pass; d=google.com; s=arc-20160816; b=Lth6p5TshlKnhIf7bPnBo2tGGPT7HeuN26KmZ3xQlFd3ekmjlTN5YOy8JZ3tjRn/Vp jiI/4MMbswtK3YAMXTyPJyFEUqKPd1JQ619/9v43wmg6pWUIH1sG9gOjg5eH9+G+D05L PcK3VbFs1fuO5mDwFuiBfiZ3Rk2GzoRDWct2wi2OWhHJ+lt26W9ekvwpWv0FXLyHfo4X zr9sx0HTszB82zXiDhYSDuzx30uYrBcByr53lDl/qEvtfdiOl7jjMwmyfwyhr9Mnv65O 3tHXK+ZRNT76MypCnTpOrYNLN65ya+4KJe8eHo6hiTjvj7z+nau0xDhdwbSB6afFh9Hk dELA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=yVR95slMPVeVhHM6nc6jlrfG95xlCOFBE/tpIAri17w=; b=gjwU46l+X/TtnvQmyzFoTKCm8riM3cqpjViAbSK2ecgVTEaAncRGtWwE4AWL1WOGEp P8FdLqPZpU2yuRrETAb8tQ0WDaS6eviEOOfZbsv2EA6TgsfueBWBFJtCdhy9pzMmA/8O TsW9Cv6qjJ5vskjUxHdiUwK8NKVgaT69zfFilj5TJaam8CmWl9LtRxDrKooP4ec47t0G VI6JsfL0CdpkM6+1jTzGjCk1ojCRh/9KD2rYjtfF9N4dBaS4j9NpIAcv2kPpLkQnN0Gq I5Ca9GOy3c/qkYBaA2yqs3PlxA4eAGbLFirNfr/WuwjoHp8uMTsozBwl30r/UaDvJmnf fU8w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b="x/0o+ov6"; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n13-20020a170902e54d00b001a9baadecc0si3226187plf.160.2023.05.23.15.46.15; Tue, 23 May 2023 15:46:29 -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=@amd.com header.s=selector1 header.b="x/0o+ov6"; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238604AbjEWWk3 (ORCPT + 99 others); Tue, 23 May 2023 18:40:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229961AbjEWWk2 (ORCPT ); Tue, 23 May 2023 18:40:28 -0400 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2057.outbound.protection.outlook.com [40.107.92.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D81CBF; Tue, 23 May 2023 15:40:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Txw8wEsjghms3flUMUZwcj2sYwtsTj35nI9453XvMXOOGjiqSVl8T0y2EnPfL1ng17Dy8WL8l19AptyobNLREDo7LL0Bk8NBds7CLzveGGji6vfD7JNo0QXKHcdYcdkVZjuWoJQUn8w3tWJccQsLM3dqbOWoq+ngvEiIsnbWawrRa74u5tpR1MLCzl9+pkSu470hyI8bkDCHgqGeJD+5Wc1Fp1v93owbo0EFNjOX73A2u3C+UUShCIoXsutTLZaNgl9zrpCpnHoAFtqIcnVzB0v0DdJcOIU9LHqWCpqUxhYlbsaNQWsJnyRGZEd9yNkyKvrqJ0l997TkQiLy184sZw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=yVR95slMPVeVhHM6nc6jlrfG95xlCOFBE/tpIAri17w=; b=QskypTJvJflQI9i0ys7n9TsgxPuvFtpTScZYGwnrTG/w4zqcH/bMRKmTsBrNrdndKVcVrTCXUxiPHs155KJX0anrk0gOG1H+Zi5GpyyeYPrGV6ed/ZO5jGukOURFtOyyrYe+cRKfSjc2TusIcQqt/0pVv/yZgQOtKp6pUDsV+fo29ChU91olcLC+mWDAY6He1cnj5PnMu+TaJLaPa1cGABNhJw28esPD8AAHmh1n7qUKgO7Uyz7xIaYVdmHxIkn5NPyLtdvKI8o7Uzxfsu4E5VCFha2LMIDYBLC12S0AsA2/SscVFKTsIhyiZl8xZ/H2k/sG6FA6H2a1ErIJqeKJSg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=redhat.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); 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=yVR95slMPVeVhHM6nc6jlrfG95xlCOFBE/tpIAri17w=; b=x/0o+ov6cP6tBRAc/aR7eiztMzMAr+BWS6Y+SkgiQNWf+WFQtvrGNtyUO3qmvmQlDa1atcDFx5kWFD0tvPqVVizc58ld0El8a9qffTnIlIfAPeWsTzy+mz/aeA6g9LXEGFJEyffWeihqyeIoTBVQo8/eDkwu/2yEGc57zVuTMiw= Received: from BN9PR03CA0457.namprd03.prod.outlook.com (2603:10b6:408:139::12) by CO6PR12MB5428.namprd12.prod.outlook.com (2603:10b6:5:35c::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.28; Tue, 23 May 2023 22:40:23 +0000 Received: from BN8NAM11FT088.eop-nam11.prod.protection.outlook.com (2603:10b6:408:139:cafe::f0) by BN9PR03CA0457.outlook.office365.com (2603:10b6:408:139::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6433.14 via Frontend Transport; Tue, 23 May 2023 22:40:23 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by BN8NAM11FT088.mail.protection.outlook.com (10.13.177.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6411.30 via Frontend Transport; Tue, 23 May 2023 22:40:23 +0000 Received: from SATLEXMB07.amd.com (10.181.41.45) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Tue, 23 May 2023 17:40:22 -0500 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB07.amd.com (10.181.41.45) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Tue, 23 May 2023 15:40:22 -0700 Received: from yuho-dev.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2375.34 via Frontend Transport; Tue, 23 May 2023 17:40:22 -0500 From: Kenny Ho To: David Howells , Marc Dionne , "David S. Miller" , "Eric Dumazet" , Jakub Kicinski , Paolo Abeni , , , , CC: Kenny Ho Subject: [PATCH] Remove hardcoded static string length Date: Tue, 23 May 2023 18:39:44 -0400 Message-ID: <20230523223944.691076-1-Kenny.Ho@amd.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT088:EE_|CO6PR12MB5428:EE_ X-MS-Office365-Filtering-Correlation-Id: e953bc36-e3e4-40ba-5fcd-08db5bdeb212 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DW8nbXNv+FVrgCN6+YauDGcIzzMydhLsQsbheevHhYannlLaY/bEkLqvjoTOM0qqCr42reIzYN67GaDY1nk620B0d0xamI+Jm6xDCRNtFamKUes9Ba0mC9oAPYZrJbmKvvBsxleI8FVy0i6r7GzjqS7ucqPYiYQ933NLayuXOsFjJ99Z0gEjWeXY4QCrSUrlJDUDrNA3aWlGacd0EtnJOgdGOec8paDKBlBkCTsd8yqt+YcBIgEWWEDUbkHKNggx4myimKlZDr2KXUTduatB708YOX1jS8Gk6InOQuTXy0TKfhxkw8imbsXvvFz6SvDzOAOU7mZRE2fhvNRTrw9XZxQMcLRJTlayVPuFLJGMbCG8BayKCbfOdeGGEKSE2E/sXvvHRfhBuJfcN4H3XT53M18xBIB9v+4U9a3L885kSp3OhRZZr2Scz47pBl22AXiadFuL+q4DW/lW4iBInIq9qp2UY/q8kr1aF0xOg61z0LJSEG31xQplkHZtWuifF8CCdj5fW9N5FrklLjogyeBZYB3MeyGJRd5+796VwWMPW42luEKQAga+DTivEn+Iu11MD9+R5IIghkJkoATBvkPM0MA+qIpT/SPfGS76JqLxMulstFbQU4nmmx1vPrI9veBX7bziBJaeqstCsYdpaFyRQctoaYPgHr3Wvj/u4aLIDQTzTljMxPbvR+O/3c0k8WKTi5uA8W8d6j+uaNvfZzZL4ohzy8ojKhI4EG0JqFoFEed7f38TudMkVI0ZB2X3FZjOxtuEypB/W8RqEgn04w0EqWwiStCMocEp106KMdGdyO0= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230028)(4636009)(376002)(39860400002)(396003)(136003)(346002)(451199021)(36840700001)(40470700004)(46966006)(41300700001)(70206006)(70586007)(2906002)(40480700001)(4744005)(186003)(1076003)(478600001)(4326008)(6666004)(7696005)(26005)(316002)(5660300002)(110136005)(7416002)(8936002)(8676002)(36860700001)(40460700003)(81166007)(921005)(356005)(36756003)(47076005)(2616005)(426003)(336012)(83380400001)(82310400005)(86362001)(82740400003)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2023 22:40:23.1004 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e953bc36-e3e4-40ba-5fcd-08db5bdeb212 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT088.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR12MB5428 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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 UTS_RELEASE length can exceed the hardcoded length. This is causing compile error when WERROR is turned on. Signed-off-by: Kenny Ho --- net/rxrpc/local_event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/rxrpc/local_event.c b/net/rxrpc/local_event.c index 19e929c7c38b..61d53ee10784 100644 --- a/net/rxrpc/local_event.c +++ b/net/rxrpc/local_event.c @@ -16,7 +16,7 @@ #include #include "ar-internal.h" -static const char rxrpc_version_string[65] = "linux-" UTS_RELEASE " AF_RXRPC"; +static const char rxrpc_version_string[] = "linux-" UTS_RELEASE " AF_RXRPC"; /* * Reply to a version request -- 2.25.1