Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1092497pxm; Wed, 23 Feb 2022 17:57:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJzrY8tIbxnWs9RF/wot2C/ADbZbYiMPpnHK7ZAc+4QiuYcAHgnAiaZiawheuXAy50Jcx0+F X-Received: by 2002:a17:902:8497:b0:14f:919:9fdd with SMTP id c23-20020a170902849700b0014f09199fddmr356183plo.52.1645667841245; Wed, 23 Feb 2022 17:57:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645667841; cv=none; d=google.com; s=arc-20160816; b=pNCNX8w5GgJN4s31dinuCKJYaLI/a+ugal8cFRsb4R/GDeBrH7fbhbIcGcb0CQuSGo XThoQTZBUIYfqMdz8+cNrlIB63HPni9gDZhwa9mzuCejkuxvazzNcwTg65plw0PQZUd/ vIN5C++be0IgW56xNo8X+b369aDLL0+JR26rMY2cJ2DnuQ9EK4Gu8f4rDlv3QBqrPmOC wEgPM5f28HtzqYhN3rAzP1gQbFEjKnYaNY/P0+Q5p/Mtv76dz5+N3nIxmm5wzfC99pcq ideB+HxV3Ni7s9ky5aKNTLkEX6xFJir+t5fv+UebGkzNLCzbU4z+7eanWeX7c4DJpRo5 svrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=iwWa9JcbVhEYFFR9LsmnA7bsxJWJbrU0gOV0sfgjYeA=; b=nDnvMYqjcveN7rwauRCBkftpmofHAKhZk75FDWjhiz3Fdxd+IbXXUzyqFKJmD/YTOI 9xsN7q/ojDdk44zbdhapEZzibP/6DFW49g/803iEI61kz9+W1lzIhtgIsYbGrFS8T8yY v/ingAE7khtpz6Dxt+dnSuxNuNYsmC88Ok5fpOxs1UJXgFs3LSydwwq7uAd+uoBLWpWE oVxgYL0c2RGCmAx8L4RKWdRyyt+G5zcvQWA8E1ZmdK0edx5wg0AIJcfnHdmKyhlKo3Qr EynzusUcsRtFMlaFndtlj02RNJ4ibpVfa63F9LZ9voemBQyt8D7mWDwnPvsVeIHcXvXZ 9K/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b="ugMTRqf/"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id y14si1175919pll.376.2022.02.23.17.57.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Feb 2022 17:57:21 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b="ugMTRqf/"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A15C710FCC; Wed, 23 Feb 2022 17:26:35 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239252AbiBWUNo (ORCPT + 99 others); Wed, 23 Feb 2022 15:13:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237733AbiBWUNn (ORCPT ); Wed, 23 Feb 2022 15:13:43 -0500 Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E6864CD40 for ; Wed, 23 Feb 2022 12:13:15 -0800 (PST) Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 0FA143FCAC for ; Wed, 23 Feb 2022 20:13:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1645647191; bh=iwWa9JcbVhEYFFR9LsmnA7bsxJWJbrU0gOV0sfgjYeA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ugMTRqf/dNN2yJ+Fwc559+kKZKSoJSbnlZ5ne6B/VatWfF9i5t1sbH1InHlPw5bHz YTs3Zm0cR9Mv7GNEwCMXffRe+JPs82YVRVREmru5k2Ily+P9+DG2BCTqMWtfhDOaW8 7el9wu/u/uk7LgHbkyPAMAvNodolNY142iADvMc2BsH6K2dPyYccVaj1c+qlxS7JDc L8f6cLeYa26sxTYqTZ1jonyRjA+Q+JnmMU7jTsc40JVWy5iRSBJ1+YqTdRhWhEaOFI ilrpDGsYPEExhmC5zctJffN4DUNWw2IMTfDGbdRS4SPEVQsk2O5rN1xJZ5VGmS4srN Lv/BP0o6X6DRg== Received: by mail-ed1-f71.google.com with SMTP id f9-20020a0564021e8900b00412d0a6ef0dso9142471edf.11 for ; Wed, 23 Feb 2022 12:13:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=iwWa9JcbVhEYFFR9LsmnA7bsxJWJbrU0gOV0sfgjYeA=; b=Ptb9c8rObvvvsDIsw3Fc72ktucZyKG2rgIDHxlhdxDkRbIxR4hPHGy863ypD2IdrTm e1hCzyGl3dTuCDBrJIXN38fvhngppc4rEbgMGmEu2ZSLkMAy4m6819s7xMIZpsctv307 I5kdUO/dr10iNTU+CK2wZMauF0K6YKLqdHKEqhShK786snfpUarIeDgFarbrhrdt4+Ad ka4kTzGekqZmd+CqyXxN9riy7qv2GKTo5Q3MCiTg+Pj5ehg8RpUISloicShys25w7veo IRcc1h08/zCobM5e8MWooo/wvhp+dQidTHOXLXac9ucuFY+7m1RlvYlUM4Dhsr7DryC5 X9LQ== X-Gm-Message-State: AOAM530SiqdNrFJnywM48yvY7lNsrUBSZoapx6wgy5bu1JFx99U07afV VuOy29mausy/4buTkdx/hz/o1WppMid+tIw3Y9vfcFHbCNALNiwk9u6m+uRu0Xj4vApllyyla+z sZgUKJC1jdNwiqWbxd7iElnkH/mT84q165kjW8Ctpbg== X-Received: by 2002:a50:d4d2:0:b0:410:9fa2:60d6 with SMTP id e18-20020a50d4d2000000b004109fa260d6mr1046062edj.35.1645647190015; Wed, 23 Feb 2022 12:13:10 -0800 (PST) X-Received: by 2002:a50:d4d2:0:b0:410:9fa2:60d6 with SMTP id e18-20020a50d4d2000000b004109fa260d6mr1046041edj.35.1645647189826; Wed, 23 Feb 2022 12:13:09 -0800 (PST) Received: from [192.168.0.127] (xdsl-188-155-181-108.adslplus.ch. [188.155.181.108]) by smtp.gmail.com with ESMTPSA id ee30sm359292edb.4.2022.02.23.12.13.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 23 Feb 2022 12:13:09 -0800 (PST) Message-ID: Date: Wed, 23 Feb 2022 21:13:07 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v2 07/11] spi: use helper for safer setting of driver_override Content-Language: en-US To: Mark Brown Cc: Greg Kroah-Hartman , "Rafael J. Wysocki" , Stuart Yoder , Laurentiu Tudor , Abel Vesa , Shawn Guo , Sascha Hauer , Fabio Estevam , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Wei Liu , Dexuan Cui , Bjorn Helgaas , Bjorn Andersson , Mathieu Poirier , Vineeth Vijayan , Peter Oberparleiter , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Andy Gross , Srinivas Kandagatla , "Michael S. Tsirkin" , Jason Wang , linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, NXP Linux Team , linux-arm-kernel@lists.infradead.org, linux-hyperv@vger.kernel.org, linux-pci@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-s390@vger.kernel.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, linux-spi@vger.kernel.org, virtualization@lists.linux-foundation.org, Linus Torvalds , Rasmus Villemoes References: <20220223191310.347669-1-krzysztof.kozlowski@canonical.com> <20220223191441.348109-1-krzysztof.kozlowski@canonical.com> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE 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 On 23/02/2022 21:04, Mark Brown wrote: > On Wed, Feb 23, 2022 at 08:14:37PM +0100, Krzysztof Kozlowski wrote: > >> Remove also "const" from the definition of spi_device.driver_override, >> because it is not correct. The SPI driver already treats it as >> dynamic, not const, memory. > > We don't modify the string do we, we just allocate a new one? Actually you're right - the SPI and VDPA implementations operate on "const char *". The others do not, so I can convert them to "const char *". Thanks! Best regards, Krzysztof