Centos-kernel-stream-9/drivers/macintosh
Mika Penttilä 5386ed535a of: device: make of_device_uevent_modalias() take a const device *
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2160456
Upstream Status: v6.3-rc1

commit a77ad4bf792652340ab334956e69b46ec2fdaefb
Author:     Greg Kroah-Hartman <gregkh@linuxfoundation.org>
AuthorDate: Wed Jan 11 12:30:03 2023 +0100
Commit:     Greg Kroah-Hartman <gregkh@linuxfoundation.org>
CommitDate: Fri Jan 27 13:45:28 2023 +0100

    of_device_uevent_modalias() does not modify the device pointer passed to
    it, so mark it constant.  In order to properly do this, a number of
    busses need to have a modalias function added as they were attempting to
    just point to of_device_uevent_modalias instead of their bus-specific
    modalias function.  This is fine except if the prototype for a bus and
    device type modalias function diverges and then problems could happen.  To
    prevent all of that, just wrap the call to of_device_uevent_modalias()
    directly for each bus and device type individually.

    Cc: Michael Ellerman <mpe@ellerman.id.au>
    Cc: Nicholas Piggin <npiggin@gmail.com>
    Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
    Cc: Chen-Yu Tsai <wens@csie.org>
    Cc: Jernej Skrabec <jernej.skrabec@gmail.com>
    Cc: Samuel Holland <samuel@sholland.org>
    Cc: David Airlie <airlied@gmail.com>
    Cc: Daniel Vetter <daniel@ffwll.ch>
    Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
    Cc: Rob Herring <robh+dt@kernel.org>
    Cc: Frank Rowand <frowand.list@gmail.com>
    Cc: Liang He <windhl@126.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
    Cc: Thomas Zimmermann <tzimmermann@suse.de>
    Cc: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
    Cc: Douglas Anderson <dianders@chromium.org>
    Cc: Lyude Paul <lyude@redhat.com>
    Cc: Corentin Labbe <clabbe@baylibre.com>
    Cc: Zou Wei <zou_wei@huawei.com>
    Cc: linuxppc-dev@lists.ozlabs.org
    Cc: linux-kernel@vger.kernel.org
    Cc: linux-arm-kernel@lists.infradead.org
    Cc: linux-sunxi@lists.linux.dev
    Cc: dri-devel@lists.freedesktop.org
    Cc: devicetree@vger.kernel.org
    Acked-by: Hans de Goede <hdegoede@redhat.com>
    Link: https://lore.kernel.org/r/20230111113018.459199-2-gregkh@linuxfoundation.org
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Signed-off-by: Mika Penttilä <mpenttil@redhat.com>
2023-04-07 16:04:01 +03:00
..
ams
Kconfig
Makefile
adb-iop.c
adb.c
adbhid.c
ans-lcd.c
ans-lcd.h
apm_emu.c
mac_hid.c
macio-adb.c isystem: trim/fixup stdarg.h and other headers 2022-04-19 15:52:25 +02:00
macio_asic.c of: device: make of_device_uevent_modalias() take a const device * 2023-04-07 16:04:01 +03:00
macio_sysfs.c
mediabay.c
rack-meter.c
smu.c memblock: use memblock_free for freeing virtual pointers 2022-07-01 17:07:00 -06:00
therm_adt746x.c
therm_windtunnel.c
via-cuda.c
via-macii.c isystem: trim/fixup stdarg.h and other headers 2022-04-19 15:52:25 +02:00
via-pmu-backlight.c
via-pmu-event.c
via-pmu-event.h
via-pmu-led.c
via-pmu.c
windfarm.h
windfarm_ad7417_sensor.c
windfarm_core.c
windfarm_cpufreq_clamp.c
windfarm_fcu_controls.c
windfarm_lm75_sensor.c
windfarm_lm87_sensor.c
windfarm_max6690_sensor.c
windfarm_mpu.h
windfarm_pid.c
windfarm_pid.h
windfarm_pm72.c
windfarm_pm81.c
windfarm_pm91.c
windfarm_pm112.c
windfarm_pm121.c
windfarm_rm31.c
windfarm_smu_controls.c
windfarm_smu_sat.c
windfarm_smu_sensors.c