All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Nirujogi, Pratap" <pnirujog@amd.com>
To: "Arnd Bergmann" <arnd@kernel.org>,
	"Hans de Goede" <hansg@kernel.org>,
	"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
	"Pratap Nirujogi" <pratap.nirujogi@amd.com>,
	"Benjamin Chan" <benjamin.chan@amd.com>,
	"Mario Limonciello" <mario.limonciello@amd.com>
Cc: Arnd Bergmann <arnd@arndb.de>, kernel test robot <lkp@intel.com>,
	Armin Wolf <W_Armin@gmx.de>,
	Basavaraj Natikar <Basavaraj.Natikar@amd.com>,
	Suma Hegde <suma.hegde@amd.com>,
	platform-driver-x86@vger.kernel.org,
	linux-kernel@vger.kernel.org, "Chan,
	Benjamin (Koon Pan)" <benjamin.chan@amd.com>,
	Bin Du <bin.du@amd.com>,
	"Rosikopulos, Gjorgji" <gjorgji.rosikopulos@amd.com>,
	"Li, King" <king.li@amd.com>,
	Phil.Jawich@amd.com
Subject: Re: [PATCH] platform/x86/amd_isp4: prevent built-in configuration
Date: Fri, 20 Jun 2025 16:02:54 -0400	[thread overview]
Message-ID: <4e4edb94-e2fc-4e32-bc27-3b0bc5ccd74f@amd.com> (raw)
In-Reply-To: <20250620115448.202425-1-arnd@kernel.org>

Hi Arnd,

Thanks for the patch.

On 6/20/2025 7:54 AM, Arnd Bergmann wrote:
> Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.
> 
> 
> From: Arnd Bergmann <arnd@arndb.de>
> 
> Checking the module owner of the device only works when modules are
> enabled, and the device is created from a module:
> 
> drivers/platform/x86/amd/amd_isp4.c:154:28: error: incomplete definition of type 'struct module'
> 
> Building the driver as a loadable module avoids the build failure,
> though this should probably be fixed in a different way that still
> works if the device was created from built-in code.
> 
> Fixes: 90b85567e457 ("platform/x86: Add AMD ISP platform config for OV05C10")
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202506150313.UHoIoVhR-lkp@intel.com/
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
>   drivers/platform/x86/amd/Kconfig | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/platform/x86/amd/Kconfig b/drivers/platform/x86/amd/Kconfig
> index 63e4bd985699..9e150500e37e 100644
> --- a/drivers/platform/x86/amd/Kconfig
> +++ b/drivers/platform/x86/amd/Kconfig
> @@ -36,6 +36,7 @@ config AMD_WBRF
>   config AMD_ISP_PLATFORM
>          tristate "AMD ISP4 platform driver"
>          depends on I2C && X86_64 && ACPI
> +       depends on m
This issue is reported earlier and the fix has been submitted to replace 
adap->owner->name with adap->name to remove the dependency on 
CONFIG_MODULES. But until the fix is accepted and is available on either 
i2c or pdx86 tree, I think its good to have this fix to avoid the build 
errors.

https://lore.kernel.org/all/20250609155601.1477055-4-pratap.nirujogi@amd.com/

Reviewed-by: Pratap Nirujogi <pratap.nirujogi@amd.com>

Thanks,
Pratap



>          help
>            Platform driver for AMD platforms containing image signal processor
>            gen 4. Provides camera sensor module board information to allow
> --
> 2.39.5
> 


  reply	other threads:[~2025-06-20 20:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-20 11:54 [PATCH] platform/x86/amd_isp4: prevent built-in configuration Arnd Bergmann
2025-06-20 20:02 ` Nirujogi, Pratap [this message]
2025-06-26 15:18 ` Ilpo Järvinen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4e4edb94-e2fc-4e32-bc27-3b0bc5ccd74f@amd.com \
    --to=pnirujog@amd.com \
    --cc=Basavaraj.Natikar@amd.com \
    --cc=Phil.Jawich@amd.com \
    --cc=W_Armin@gmx.de \
    --cc=arnd@arndb.de \
    --cc=arnd@kernel.org \
    --cc=benjamin.chan@amd.com \
    --cc=bin.du@amd.com \
    --cc=gjorgji.rosikopulos@amd.com \
    --cc=hansg@kernel.org \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=king.li@amd.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=mario.limonciello@amd.com \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=pratap.nirujogi@amd.com \
    --cc=suma.hegde@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.