Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2548416rdh; Sun, 26 Nov 2023 10:06:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IFhXqejjnQft8OpbEtU0e6v9LEK8Xz09Wbxmt348YiGZlUo0a2BPsoiya/lqdjQnvk8oYJ8 X-Received: by 2002:a05:6a21:78a3:b0:18c:3ea9:b85d with SMTP id bf35-20020a056a2178a300b0018c3ea9b85dmr7218040pzc.11.1701022018848; Sun, 26 Nov 2023 10:06:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701022018; cv=none; d=google.com; s=arc-20160816; b=PrWTzUuC+JHXRXBTLk9hOpFOZnXE+uja5q/cGkX+Dy+26k6o82sL6pIHbjufKiSOg4 01ibi+rYof4zkYsik4spiBSoyvHF7TnViWkFRZFTfyJ+xJfn4vvashrGrEHL0fuKKEQF MkhdB90j/mMeBoRuDKf5d4nQ0GLxy5noH+fNEsELgcL38nRJsIFRnNdkqooiFnV1BctX 6yTL0IHgFabi80ciLVLq5xxMb41izh5i5VlCBbQDny8Zz1TiUel5MObrMCsMrxOW8NQD lVZL8bIpNRHTEpJU3SNcWwKzo3rQbjAlbCLQSPvyScPWE9Ja+F8DM4om3pubs49T31Ew vUOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=ZLohInKk5daC8pKL+VdlMxY3aK4wV6hU3wHcXYW36G0=; fh=3b/7j9gYoITYBwhKnDxpNvoWo5bnWok4D8ozSe72oO4=; b=MeboQNPtKc7CICqAS/yzrmKSVVq1ZJzXCLw8NFMW45oAsSIgW1cdhRuEeoLWo6uaO6 606U4OiPmS5fjzMrQ3isW+CVJ+paBhJYwjZ2ufZpw68rmKI9PKMjAsNBQt35Uv4gGcDY QgBq6n0Mk/cLov9Cy+gWoXqSpuBFehxO/PsQbVqP6Mr5a4ybmuYkxc6LuzlJ4rcwJT1V ndGtxx+wpr0GBrxJgOHW1apq4HsM702ljNMuDBo3WxXVpao7yHlLnJ3Ef6QWwVv3Wn0c io1tzXJdE4IsYL+78p6dmDkz0YMy1M5da+KW9yHxkDgeiUPX/WrjXHqeaOEzmWU2l/Yv PO4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KChUsiRX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id bi12-20020a056a02024c00b005b958401e4fsi8937442pgb.418.2023.11.26.10.06.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 10:06:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KChUsiRX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 57CCE80B908C; Sun, 26 Nov 2023 10:06:56 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230274AbjKZSGj (ORCPT + 99 others); Sun, 26 Nov 2023 13:06:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbjKZSGi (ORCPT ); Sun, 26 Nov 2023 13:06:38 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AE57C8 for ; Sun, 26 Nov 2023 10:06:45 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51D10C433C8; Sun, 26 Nov 2023 18:06:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701022005; bh=p6pNrvNvpBYQrf6KyXpLpX8bFfn2jNLT6e4Wi7PEf04=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=KChUsiRXHl3vEPXtjrHXhvJwnz3eCN19O6H9V8Kw5H/LTNuOJZTpB8vbot6SfSXyf L254+AfwdIYObskHu0ji4rHe+gYnSyZfbn0nprzJYdOBAK/aFR9mEntxwyXquhNiS5 sWyoPNjFx5xsZ5k9iI8NRO+0vZOrjATlb5Snqj7O/hbTMgmGgljLLQ03BMBRh6YPkp SQTi8dm2oLtKqaDQpXqfD8ABjVj+gUCTPOMuUOE/AH3Xv/wPXdZT+1+bxeWuSNd0CE 7XBFb44H6ieAWdwUp8miQMME67c9Wy8ogOKtdFcAX0uJ9InLlQPS7nLsZV0VjzKbZw ajftHtjpRyysw== Date: Sun, 26 Nov 2023 18:06:37 +0000 From: Jonathan Cameron To: Jagath Jog J Cc: andriy.shevchenko@linux.intel.com, oe-kbuild-all@lists.linux.dev, lkp@intel.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] iio: imu: bmi323: Make the local structures static Message-ID: <20231126180637.1a832574@jic23-huawei> In-Reply-To: <20231108035831.5889-1-jagathjog1996@gmail.com> References: <20231108035831.5889-1-jagathjog1996@gmail.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Sun, 26 Nov 2023 10:06:56 -0800 (PST) On Wed, 8 Nov 2023 09:28:31 +0530 Jagath Jog J wrote: > Make the local structures static within their respective driver files. > > Reported-by: kernel test robot > Closes: https://lore.kernel.org/oe-kbuild-all/202311070530.qKhLTz1Y-lkp@intel.com/ > Fixes: b512c767e7bc ("iio: imu: Add driver for BMI323 IMU") Applied to the togreg branch of iio.git but I dropped this fixes tag because it's already wrong due to a rebase and that may well happen again. Probably better to just not have one in this case :( Jonathan > Signed-off-by: Jagath Jog J > --- > drivers/iio/imu/bmi323/bmi323_i2c.c | 2 +- > drivers/iio/imu/bmi323/bmi323_spi.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/iio/imu/bmi323/bmi323_i2c.c b/drivers/iio/imu/bmi323/bmi323_i2c.c > index 0008e186367d..20a8001b9956 100644 > --- a/drivers/iio/imu/bmi323/bmi323_i2c.c > +++ b/drivers/iio/imu/bmi323/bmi323_i2c.c > @@ -66,7 +66,7 @@ static struct regmap_bus bmi323_regmap_bus = { > .write = bmi323_regmap_i2c_write, > }; > > -const struct regmap_config bmi323_i2c_regmap_config = { > +static const struct regmap_config bmi323_i2c_regmap_config = { > .reg_bits = 8, > .val_bits = 16, > .max_register = BMI323_CFG_RES_REG, > diff --git a/drivers/iio/imu/bmi323/bmi323_spi.c b/drivers/iio/imu/bmi323/bmi323_spi.c > index 6dc3352dd714..7b1e8127d0dd 100644 > --- a/drivers/iio/imu/bmi323/bmi323_spi.c > +++ b/drivers/iio/imu/bmi323/bmi323_spi.c > @@ -41,7 +41,7 @@ static struct regmap_bus bmi323_regmap_bus = { > .write = bmi323_regmap_spi_write, > }; > > -const struct regmap_config bmi323_spi_regmap_config = { > +static const struct regmap_config bmi323_spi_regmap_config = { > .reg_bits = 8, > .val_bits = 16, > .pad_bits = 8,