Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp16442ybe; Wed, 4 Sep 2019 14:15:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqxt2YzfJzx64/1WJ8DQmetSuODAliY6i/BILJRgWUou5xVN8MLYfpu85hNSNsn64MLcvWWi X-Received: by 2002:a63:fa11:: with SMTP id y17mr122588pgh.267.1567631716467; Wed, 04 Sep 2019 14:15:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567631716; cv=none; d=google.com; s=arc-20160816; b=b8lhdnyeNsCjiiNkk8KT/stTHJUuq2dqZOi2dQIhouW2gmYvyTj801v/rQYk1hX4GQ WUWL3O3tozdB79TuwhJmQYYLErz8eg84rGgdNPk4xs/0YHY8UGuHJBNVecr0yaImz5J5 t2ensVNSuysplkMWQ1F65jDcPiSd8Ss1fKLjxNLCLTMIlvSOfAXS00Wfu8nvy5eH8aWL CEMTHrt0d+W5makizirdzOcidsVbEF+X0LglVpV54gLtLlBuGGQ0zBVJPo4gaLYCaubE D4V6/jDrfSDfUhrad/T9A5f6Cem+u2XFumLRWPvb++ANh8T04J2WBmQ/IQtp19+DRohL 6nRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=sojlowM3I1bvjD3N21AT2Ea7dvM5HIe9W4O/jSpJ21c=; b=DZVwnhtEOkE2ygzHW7sQ0w5gtBOroyLJT0I0AHBoMXD6q2qXvRyWERzuppaQ7bAmDo /HRbfCmd8pCMVjq3h+sitdG79osO0aiR/HbXsBNn7fMsJ9YOnibe1RRZO1uzmKWwOJrK 6JAaN24tc/q6Noa3q1INWbBgZwckRGBcNe9kXxh+hmW7dRldkMra0KouASwTJXwwUA0d +xKg01Sgiwt4w5es4CQvXfn/LzrjbaxQLRcMCB3Ego3wF2a96+ONFAJ5YmgjpLkT6VLb 54cUtAMlbjkANNUEuxvvhmHO1eROP+QmHc1woXrQerUV6fEtakBTFvY0MR+c2OxkqBbc aE1Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i6si165705pjs.13.2019.09.04.14.15.00; Wed, 04 Sep 2019 14:15:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730552AbfIDVMl (ORCPT + 99 others); Wed, 4 Sep 2019 17:12:41 -0400 Received: from sauhun.de ([88.99.104.3]:46200 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730022AbfIDVMl (ORCPT ); Wed, 4 Sep 2019 17:12:41 -0400 Received: from localhost (p54B337F1.dip0.t-ipconnect.de [84.179.55.241]) by pokefinder.org (Postfix) with ESMTPSA id BF8B72C4F2F; Wed, 4 Sep 2019 23:12:39 +0200 (CEST) Date: Wed, 4 Sep 2019 23:12:39 +0200 From: Wolfram Sang To: Nishka Dasgupta Cc: pierre-yves.mordret@st.com, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-i2c@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] i2c: stm32f7: Make structure stm32f7_i2c_algo constant Message-ID: <20190904211239.GC23608@ninjato> References: <20190815055857.1944-1-nishkadg.linux@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="yVhtmJPUSI46BTXb" Content-Disposition: inline In-Reply-To: <20190815055857.1944-1-nishkadg.linux@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --yVhtmJPUSI46BTXb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 15, 2019 at 11:28:57AM +0530, Nishka Dasgupta wrote: > Static structure stm32f7_i2c_algo, of type i2c_algorithm, is used only > when it is assigned to constant field algo of a variable having type > i2c_adapter. As stm32f7_i2c_algo is therefore never modified, make it > const as well to protect it from unintended modification. > Issue found with Coccinelle. >=20 > Signed-off-by: Nishka Dasgupta Applied to for-next, thanks! --yVhtmJPUSI46BTXb Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAl1wKMcACgkQFA3kzBSg KbZtHRAAhUQXfvaGpBOwnt6QQ5sO9+U8ZeiPYL2IqsqOwOBGhLpWReFjilAKXk2o 8x/xXEaituqT7t2Z/ECReg5oTMQESJBVj3hnbknunZX7etJGj9pbQGDsV9Ou0lPn gm4JjLPiC12KM9xv1si8lTrYQJp5K14stjXHSE4YW8Xu1W4SQ9lJSHpm+SvtfFIv 6Ddi2F4XIRhx7JYyN/XDW0ABXpJMd4FayJ6G/N+vtd5N2KT9Ee8FdEcjFKD/7Vec J050E9XXNBYHBfjtvksGwEYxBHdltnsZlmmTOB4fKvmA7L1PqqoTKi4prhGL3Hum BnitzpIhFP1hjIyIHiOCQWGW0CvN7mmlu13vUaGJnvpKkb3vk+HSxGgxVu3kf8Hp MXmysO8ZUUOXe8ZLWSCTiqniNtQjlrFujnmYC5CR9q4KLBKZc18ef1GaGoLmHRom rYo5B4nMZdWntuyVsPK0UzTDJpt3KEFSHqBqJqmBRJGGiIFV8XdyHSmjt0MWLMqz If4rX7JmgShYUnpoCTM10Y/vwDBAEQ2tXqfhH+AfzU/n+bA9f0Hr+Tqy3V+LASxl Gp8jQqL34fs7yXc7gswe0t+PSaXM/SVelCTI3M6YIT1IZ2vVLzaowYdIMoTyFLZr /g0zgz7p8BHKMxnNxi2bhFXKPo6Ary+Do+H+Lx1xOsgIn/UIiR0= =Tqt8 -----END PGP SIGNATURE----- --yVhtmJPUSI46BTXb--